FS#37007 - [systemd] 207 hangs a few minutes on shutdown/reboot, 204 doesn't
Attached to Project:
Arch Linux
Opened by cju (cju) - Saturday, 21 September 2013, 07:42 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 05 November 2013, 18:39 GMT
Opened by cju (cju) - Saturday, 21 September 2013, 07:42 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 05 November 2013, 18:39 GMT
|
Details
Description:
Every time since upgrading to systemd 207-3, Arch hangs on shutdown/reboot for a few minutes on my systems. On one machine (a VBox), there's the following message displayed: > A job is running for User Manager for 1002 On another actually pretty fresh machine (also VBox), the screen just stays black for that amount of time, and so does Arch (a real system) on my laptop. Additional info: This happens only with systemd 207, downgrading to 204 solves this problem entirely! Besides, it doesn't seem to matter which shutdown/reboot command I use; I tried them all and didn't observe any differences... Steps to reproduce: Upgrade to systemd 207-3 an try to shutdown/reboot. |
This task depends upon
Closed by Dave Reisner (falconindy)
Tuesday, 05 November 2013, 18:39 GMT
Reason for closing: Upstream
Tuesday, 05 November 2013, 18:39 GMT
Reason for closing: Upstream
http://lists.freedesktop.org/archives/systemd-devel/2013-September/013334.html
So... all I can do now is staying with systemd 204 until this patch gets appliyed, right?
I'll absolutely try this, but since I'm not used to the whole patching-thing, how long does it usually take until a comparable patch hit at least the systemd git repo so one could use therefor the corresponding aur-package?
I'm not so familiar with systemd's internals or else I'd review and merge the patch myself. The linux plumbers conference ended yesterday and we're all heading home so there may be a bit of a lag until someone more familiar looks at it.
I tested both my own one and that one built w/ Dave's source package, same behaviour in either case; so for the moment, I "learned" at least something useful after all. ;)
Sep 22 10:30:56 archbox systemd[1370]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or directory
I can not find any logs to indicate any error though.
14:51:31 arch systemd[1]: user@0.service stopping timed out. Killing.
I found the above info on my box(VBox). You can find this
FS#36266through searching `user@0.service`. If you stop the service via`systemctl stop user@0` manually, the reboot goes smoothly.So I doubt that the upstream bug did not fixed properply yet.
I've built the last 204 from arch's svn and that version doesn't have this problem.
Also, this problem occurs for me only if I have any console spawned - when using a DM and no consoles, the shutdown sequence is normal.
See http://lists.freedesktop.org/archives/systemd-devel/2013-September/013330.html for more.
On my x86_64 workstation, it crashes the system including the f9 debug console.
When shutting down the system was stuck at stopping the Transmission daemon service, and trying to stop it with systemctl also made it hang.
I was blaming Transmission until I saw this ticket. I downgraded to 204 and it stopped happening.
I will happily delete any further comments which are not additive in a meaningful way.
It is true that this should be taken upstream though.
For the time being I maintain a patched version at https://repo.pierre-schmitz.com/
http://cgit.freedesktop.org/systemd/systemd/commit/?id=7400b9d2e99938d17b281d7df43680eade18666e
The message "Failed to open private bus connection: Failed to connect to socket /run/user/<uid>/dbus/user_bus_socket: No such file or directory" appears still so this seems to be a separate issue (if it's an issue at all).