FS#68852 - Systemd hangs on GNOME reboot/shutdown
Attached to Project:
Arch Linux
Opened by General Poxter (GeneralPoxter) - Friday, 04 December 2020, 16:43 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 30 December 2020, 07:38 GMT
Opened by General Poxter (GeneralPoxter) - Friday, 04 December 2020, 16:43 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 30 December 2020, 07:38 GMT
|
Details
Description:
After upgrading from 246.6-1 to 247.1-1, rebooting or shutting down takes an indefinite period of time. I have waited for as long as 60-90 seconds, before giving up and powering off my computer by hand. This has not occurred consistently, as sometimes, booting and then immediately rebooting works fine. I have found that the longer time I spend on a boot, the more certain it is that rebooting/shutting down will hang. Downgrading systemd 247.1-1 back to 246.6-1 is the only solution I could find. Additional info: * systemd 247.1-1 * Relevant output of "journalctl -p 3 -xb": Failed to enqueue exit.target job: Transaction for exit.target/start is destructive (gnome-session-restart-dbus.service has 'start' job queued, but 'stop' is included in transaction). Steps to reproduce: Reboot or shutdown on GNOME |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Wednesday, 30 December 2020, 07:38 GMT
Reason for closing: Fixed
Additional comments about closing: gnome-session 3.38.0+14+g87d92fec-1
Wednesday, 30 December 2020, 07:38 GMT
Reason for closing: Fixed
Additional comments about closing: gnome-session 3.38.0+14+g87d92fec-1
https://bugs.freedesktop.org/show_bug.cgi?id=70593#c19
That solved problem on my machines.
Unfortunately, that did not solve the problem for me. After re-upgrading systemd to the current version, implementing the changes to systemd-exit.service, and reloading the daemon, my system still takes around 1-2 minutes to reboot/shut down. I did have more patience this time though, and can confirm that my system is eventually able to restart.
https://gitlab.gnome.org/GNOME/gnome-session/-/commit/9de6e40f12e8878f524f8d429d85724c156a0517
I can confirm that the fix works for me.
@GeneralPoxter
You don't have to rebuild the package. Just edit the file /usr/lib/systemd/user/gnome-session-restart-dbus.service as root and insert the following line at the end:
Slice=-.slice
Thanks for the suggestion. I don't know what I was thinking at the time, but it turns out the commit isn't too difficult to carry out independently. I can confirm as well that the fix to the gnome-session-restart-dbus.service fixes the problem for me. I will be requesting closure of the issue.
mkdir -p /etc/systemd/user/gnome-session-restart-dbus.service.d
print '[Service]\nSlice=-.slice' > /etc/systemd/user/gnome-session-restart-dbus.service.d/override.conf
(sudo systemctl --global edit gnome-session-restart-dbus.service doesn't work because of 'no bus').
FS#68989is another duplicate.