Reboot hangs on Debian: gnome-session-manager@gnome.service: Failed with result 'timeout'
I run Debian 11 with systemd (247.3-6)
and I experience services timeouts after inatalling nVidia drivers from the debian repos (not the nVidia installer) very often (details follow).
I think Debian uses gnome-session in version 3.38.
When nVidia is uninstalled it seems these delays are gone (I cannot test for a whole day but I tested shutdowns/reboots a few times)
The message shown when delaying ocurrs is A stop job is running for user manager for UID 1001
(1001 - a guest user)
journalctl
shows a lot as usual, but I think this part is related:
Dez 07 20:28:34 tobias-pc systemd[798]: pulseaudio.service: Succeeded.
Dez 07 20:28:34 tobias-pc systemd[798]: Stopped Sound Service.
Dez 07 20:28:34 tobias-pc tracker-miner-fs[840]: OK
Dez 07 20:28:34 tobias-pc systemd[798]: tracker-miner-fs.service: Succeeded.
Dez 07 20:28:34 tobias-pc systemd[798]: Stopped Tracker file system data miner.
Dez 07 20:28:34 tobias-pc systemd[798]: tracker-miner-fs.service: Consumed 2.214s CPU time.
Dez 07 20:30:04 tobias-pc systemd[798]: gnome-session-manager@gnome.service: State 'final-sigterm' timed out. Killing.
Dez 07 20:30:04 tobias-pc systemd[798]: gnome-session-manager@gnome.service: Killing process 1535 (kodi.bin) with signal SIGKILL.
Dez 07 20:30:04 tobias-pc systemd[798]: gnome-session-manager@gnome.service: Killing process 1663 (Lirc) with signal SIGKILL.
Dez 07 20:30:04 tobias-pc systemd[798]: gnome-session-manager@gnome.service: Failed with result 'timeout'.
Dez 07 20:30:04 tobias-pc systemd[798]: Stopped GNOME Session Manager (session: gnome).
Dez 07 20:30:04 tobias-pc systemd[798]: gnome-session-manager@gnome.service: Triggering OnFailure= dependencies.
Dez 07 20:30:04 tobias-pc systemd[798]: gnome-session-manager@gnome.service: Consumed 1min 35.212s CPU time.
Dez 07 20:30:04 tobias-pc systemd[798]: Removed slice app-gnome\x2dsession\x2dmanager.slice.
Dez 07 20:30:04 tobias-pc systemd[798]: app-gnome\x2dsession\x2dmanager.slice: Consumed 1min 35.212s CPU time.
Dez 07 20:30:04 tobias-pc systemd[798]: Stopped target Tasks to be run before GNOME Session starts.
Dez 07 20:30:04 tobias-pc systemd[798]: Stopped target Session services which should run early before the graphical session is brought up.
Dez 07 20:30:04 tobias-pc systemd[798]: Stopped target Basic System.
Dez 07 20:30:04 tobias-pc systemd[798]: Reached target Shutdown running GNOME Session.
Dez 07 20:30:04 tobias-pc systemd[798]: Stopped target Paths.
See tobias-pc systemd[795]: gnome-session-manager@gnome.service: Failed with result 'timeout'.
The delay happens nearly everytime when I reboot from Kodi (use reboot command in Kodi). When rebooting from GNOME menu the delay is not always there. Shutting down from Kodi also works fine mostly in contrast to a reboot. I saw this delay also happen when only lutris was left open before shutting down (so kodi was closed) or rebooting from GNOME menu. So it is not Kodi alone that triggers it.
Again: With nouveau drivers it seems completely gone.
I cannot determine if it is a gnome-session-manager issue or not myself and thats why I ask for help. If it is not related I will ask for help at Debian team.
Addionally I got some logs journalctl
with a lot of gnome-session-manager
debug messages in it after changing gnome-session-manager
to debug mode.
I saved the attached log file using journalctl -b -1 > filename.log
. (So it should contain the last boot / reboot
reboot_with_two_second_delay_journalctl.log
I made a version of the same boot with the gnome-session
unit only:
reboot_with_two_second_delay_journalctl_gnome_session_only.log
Thanks for help.