FS#47734 - [systemd] Shutdown or reboot from DE lead to the "A stop job is running for Login Service" message
Attached to Project:
Arch Linux
Opened by viktor (dviktor) - Wednesday, 13 January 2016, 06:34 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 18 June 2016, 13:08 GMT
Opened by viktor (dviktor) - Wednesday, 13 January 2016, 06:34 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 18 June 2016, 13:08 GMT
|
Details
Description: when trying to reboot or power down laptop from
DE (XFCE) shutdown process loops with the next message on
the screen: "A stop job is running for Login Service"
followed by some timer information. Only forced-poweroff via
pressing power button helps but after that filesystems are
marked unclean and fsck recovery process on next boot will
appear. If first to simply log out from DE, switch to the
tty2 (or another where no X started after login) and then
manually `shutdown` or `reboot` then all works fine.
The problem appeared after installing so long-waited update kernel 4.3.3-2 from `core`. Additional info: * package version(s) Kernel 4.3.3-2, XFCE 4.12, Xorg 1.18.0-4, xf86-video-ati 1:7.6.1-1, xf86-video-intel 1:2.99.917+519+g8229390-1 * config and/or log files etc. journalctl entries after forced-shutdown are here (http://pastebin.com/DtCxPtY7) [viktor ~]$ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Robson CE [Radeon HD 6370M/7370M] (rev ff) Steps to reproduce: 1) Boot up your PC/laptop/whatever 2) log in to your xfce session 3) try to shutdown or reboot your computer. You'll receive so annoying "A stop job is running..." message however clean shutdown/reboot should occur. |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 18 June 2016, 13:08 GMT
Reason for closing: Upstream
Additional comments about closing: This is probably roughly WAI, but as comments show, mileage varies with DM. The right thing to do is to ensure user processes are killed on logout.
Saturday, 18 June 2016, 13:08 GMT
Reason for closing: Upstream
Additional comments about closing: This is probably roughly WAI, but as comments show, mileage varies with DM. The right thing to do is to ensure user processes are killed on logout.
My graphics card configuration is as follows:
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars XTX [Radeon HD 8790M] (rev ff)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] (rev ff)
https://bugs.freedesktop.org/show_bug.cgi?id=93592
...
Fatal server error:
[214298.186] (EE) systemd-logind disappeared (stopped/restarted?)
...
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] (rev ff)
Perhaps it's related to the graphics driver and the compositing, something that is preventing gdm or session from stop, although the shutdown process seems to stop in the unmount step.
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] BeaverCreek [Radeon HD 6620G]
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7550M/7570M/7650M] (rev ff)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 640] (rev a1)
05:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 640] (rev a1)
06:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 640] (rev a1)
For what it’s worth:
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars XTX [Radeon HD 8790M] (rev ff)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus PRO [Radeon HD 8850M / R9 M265X] (rev ff)
http://i74.fastpic.ru/big/2016/0203/3a/f1f16cebec8d4190ea27270bdf86db3a.jpg
Seems like you're experiencing another kind of problem but similar to the current
Also try to decrease stop limit timer in /etc/systemd/system.conf
DefaultTimeoutStopSec=15s
for me not
please anyone else check on Kernel 4.4.1-1
http://postimg.org/image/myyfvqxn3/
Related forum posts: https://bbs.archlinux.org/viewtopic.php?id=207096&p=2 and https://bbs.archlinux.org/viewtopic.php?id=200542
Considering that, it clearly seems to be packaging-related, as the first 4.4.1 version packaged worked, and the sources haven’t changed since.
No problem with LTS 4.1.17-1 though.
Feb 18 20:13:24 home1 systemd[1]: Stopped target Network.
Feb 18 20:14:53 home1 systemd[589]: dbus.service: State 'stop-final-sigterm' timed out. Killing.
Feb 18 20:14:53 home1 systemd[1]: user@1000.service: State 'stop-sigterm' timed out. Killing.
Feb 18 20:14:53 home1 systemd[1]: Stopped User Manager for UID 1000.
Feb 18 20:14:53 home1 systemd[1]: user@1000.service: Unit entered failed state.
Feb 18 20:14:53 home1 systemd[1]: user@1000.service: Failed with result 'timeout'.
Feb 18 20:14:53 home1 systemd[1]: Removed slice User Slice of mike.
Feb 18 20:14:53 home1 systemd[1]: Stopping Login Service...
Feb 18 20:14:53 home1 systemd[1]: Stopping Permit User Sessions...
Feb 18 20:14:53 home1 systemd[1]: Stopped Permit User Sessions.
Feb 18 20:14:53 home1 systemd[1]: Stopped target Remote File Systems.
Feb 18 20:14:53 home1 systemd[1]: Stopped Login Service.
Feb 18 20:14:53 home1 systemd[1]: Stopped target Basic System.
and again from today:
Feb 19 15:45:36 home1 systemd[1]: Stopped Simple Desktop Display Manager.
Feb 19 15:47:01 home1 systemd[599]: dbus.service: State 'stop-final-sigterm' timed out. Killing.
Feb 19 15:47:01 home1 systemd[1]: user@1000.service: State 'stop-sigterm' timed out. Killing.
Feb 19 15:47:01 home1 systemd[1]: Stopped User Manager for UID 1000.
Feb 19 15:47:01 home1 systemd[1]: user@1000.service: Unit entered failed state.
Feb 19 15:47:01 home1 systemd[1]: user@1000.service: Failed with result 'timeout'.
Feb 19 15:47:01 home1 systemd[1]: Removed slice User Slice of mike.
Feb 19 15:47:01 home1 systemd[1]: Stopping Login Service...
Feb 19 15:47:01 home1 systemd[1]: Stopping Permit User Sessions...
Feb 19 15:47:01 home1 systemd[1]: Stopped Permit User Sessions.
Once the shutdown stop job delay has ended the shutdown then completes rapidly.
which seems to be a dbus related shutdown delay with the 90 seconds wait period seen in the timestamps above. I also installed systemd 229-3 from testing but this does not help the issue.
Possibly these reports are related:
https://github.com/systemd/systemd/issues/1615
https://lists.freedesktop.org/archives/systemd-devel/2016-January/035619.html
Can anyone else quote journal log lines showing what the systemd unit that forcibly closed after the delay on shutdown? In my case it is dbus.service and user@1000.service.
In my case if I log out of the plasma desktop, then click the reboot icon at the top right of the sddm greeter screen, then the reboot/shutdown delay does not occur. The 90 second stop job delay only occurs if I reboot by right clicking the plasma desktop and selecting "Leave" and choosing to shutdown or reboot.
(I'm using startx+Fluxbox+nVidia on two computers)
Reverted to systemd 228-4 for now.
With gdm I had success only with linux-lts 4.1.18-1
also I do not found any dependency on systemd version