Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSystem hangs at reboot/shutdown - Arch Linux #1615
Comments
|
Now i get two jobs, that are waiting to stop at shutdown: |
|
If your session is not stopped at shutdown, it's very likely due to a program in your session being stuck. Please try logging out of your session and then check via a different user which programs are still running in that session. The systemd-cgls tool might come in handy. |
|
Here is my output of systemd-cgls command: https://drive.google.com/file/d/0B7IVEEF2578ra2xGUFlzSDVmbkE/view?usp=sharing |
|
Apparently I'm not the only one with this issue. I ran into it too. See also http://lists.freedesktop.org/archives/systemd-devel/2016-January/035619.html Hope it gets resolved soon. |
|
I have the same bug, a message "A stop job is running for Session c2 for user...." and a delay of 90 seconds, I use archlinux, systemd 229-3 |
|
Same as @Potomac here. Ver. 229-3 |
|
Same problem here on systemd 229 (archlinux) |
|
I have the same problem, systemd 229-3, arch linux. How can we check what program hangs? |
|
@nagyf I don't think it's about a program refuses to terminate but systemd guys screwed user services things so that the user daemon of systemd fails to shutdown properly. |
|
I approve, have similar problem on Arch with systemd 229-3. It's definately not connected with desktop manager but only systemd :( I'm waiting for fix couse right now almost every shutdown seems to be the weakest part of my system. |
|
I have same problem on Archlinux |
|
I can also confirm the issue with systemd 229-3 on Arch Linux |
|
Confirm this |
|
I have the same issue periodically (not each time). So i confirm this issue. |
|
I confirm the issue too |
|
Confirm this issue too. |
|
Confirmed Archlinux. Something about "Session c1 of user" and hangs without shutting down properly. I can still Ctrl-Alt-F but otherwise unresponsive. |
|
I have this issue too, but only on my desktop. Version 229-3 Arch Linux. Happens randomely at reboot/shutdown. "Session c2 of user" and i get a 90 sec timeout. Any way we can help or provide more info on this ? |
|
I'm using systemd 229-3 Arch and I can confirm this. Its already continuing hanging on shutdown for about 2 weeks now. EDIT: A workaround here. I'm using Gnome, loging out current seesion before reboot/shutdown works for me. But it still doesn't remedy the problem. |
|
+1 on Arch Linux. |
|
I can confirm it. In fact, i have this for a long time - Arch linux. What is strange, i don't have it on laptop machine and netbook machine. On all of them, i have nearly exacly the same programs, and apps but only on desktop i have conky. BTW - this "bug" is not only true for 229-3. I had previous version with the same bug. Edit: after yesterday updates, my laptop and netbook machines have the same behaviour during shutdown. |
|
I have done an analyze here #2691 (comment) And I think I found the root cause of the problem. The solution is not that easy, I have got an idea how to solve the problem (but I don't like it), I thing @poettering will have a better idea |
|
there is a workaround found by Ebiggers : just create a file "/etc/sysctl.d/50-coredump.conf" with the following contents: kernel.core_pattern=core then after a reboot this bug will never occur |
|
Same issue here |
|
despite the workaround found by Ebiggers I still have the bug ( "a stop job for session C2 user" ) it's a random bug, for example it can occur after 10 reboots ( that's why I thought it was solved, we need to test with a lot of reboot/shutdown, the bug will be considered as solved only when no bug occurs after at least 10~15 reboots ) |
|
Yes, random. Sometime reboot now, sometime reboot wait 90 sec. I kill plasmashell and other processes change DM (lightdm, sddm, slim) - this not solved problem. |
|
Hi all, |
|
Thank you very much! ISamsung NC10 and Acer Aspire 7739 - and in both Arch Linux Kernel 4.4 |
|
Systemd 215-17, Debian Jessie: confirm this. |
|
I have this problem with Mint 18.1. It's driving me crazy. I've tried all sorts of workaround and none of them - at least fully - work. For I still have the problem, at least when using ethernet as against wifi. The problem means I have to hard reset my machine, which can't be good for it. This problem takes us back to the bad old days of Linux when basically nothing worked without hacks and prayer. EDIT: It seems no-one is assigned to this bug. Why? |
|
I have similar issue on ArchLinux (linux 4.11.2-1-ARCH, systemd 232-8, plamsa-desktop 5.9.5-1, sddm 0.14.0-2). It seems that either
See also FS#46585 (Arch bugtracker) |
|
My system with Openbox/Tint2 on kernel 4.11.2-1_ARCH just freezes when doing reboot from terminal. If I roll back to 4.10.17 it is able to reboot fine. |
|
There are many reasons why a system might hang during reboot/shutdown. It is a symptom, not a cause. If you do not have evidence that the root cause of your system hang is the same as the root cause of the system hang experienced by the initial reporter of this issue, then please do not reply to this issue. If you see the same symptom for a different reason, then nothing that has been said on this issue report is going to help you, and anything you say on this issue report is just going to make it even more confusing to a reader. Please contact your distribution vendor (Arch Linux, Ubuntu/Canonical, Mint, etc.) for initial support. If you have evidence that your issue is caused by systemd (not to be confused with a bug merely involving systemd) then you can report that as a separate bug, with a more specific description based on that evidence. For example, the details provided by @grossws seem to indicate a bug in either kded5, sddm, or the systemd units provided with sddm. That is probably not a bug in systemd and will probably not be fixed by changing systemd, so this is the wrong place to ask for a solution.
Here are some reasons why assigning a developer to work on this issue would be counterproductive:
|
|
Dear @smcv
|
|
got the same thing happening here, every time shut down my laptop. Running Arch 4.11.7-1-ARCH |
|
@audiomuze Please contact your distribution vendor (in your case Arch Linux?) for initial support. If there is evidence that your issue is caused by systemd (and not a result of a bug in some other component), please open a separate bug report with full details of the symptoms and evidence, including relevant log messages and version numbers. The title of this issue is a symptom, not a cause; there are many things that could be causing it (some of them would be systemd bugs, and some of them would not). If everyone whose system hangs during shutdown keeps adding comments to this closed issue report, then we are never going to be able to disentangle which bug reporter was suffering that symptom as a result of which root cause. @poettering, perhaps it would be worthwhile to close the comments on this issue? |
|
@poettering, perhaps it would be worthwhile to close the comments on this issue? Uh, I am a bit afraid of the reddit firestorm this would likely result in... |
the problem of slow shutdowns, even though Xorg is one possible culprit (systemd/systemd#1615). This reverts commits b2d25eb and a71d7cd.
seconds to 8 seconds. Xorg is one of the (many?) processes that may sometimes get confused when receiving HUP and TERM close to each other, and does not die until KILL, slowing shut down. See systemd/systemd#1615 for description. Closes #264.
|
@smcv So basically you hear hoofbeats and think zebras |
|
@smcv If several people, many of whome are tech-savy enough to have installed and working with archlinux, and wait and read the message they see on their screen, and then come back and search for the issue tying to report/fix/help in that regard, are commenting on the same issue here because of the same "symptom" they observe, maybe you should open an issue for your piece of software to give a more helpful message. |
|
Same problem on a current Arch laptop (since ages, I think), i.e., it is waiting for a stop job of User Manager for UID 1000 (which is my user). But now I had the time to debug the issue. After my user (with uid 1000) logged out, I checked
So do I see it correctly that in my case, GNOME's desktop search (Tracker) is the faulty process which doesn't properly terminate when being sent a SIGTERM followed by a SIGHUP and I should report a bug for that? |
|
This is caused by a kernel driver failing on shutdown. If you have custom drivers on the system, the shutdown script for that driver system should contain lines to modprobe -r the drivers used prior to shutdown or reboot. This ensures the bad driver is unloaded before shutdown. It may be good to somehow get test of what driver is currently being closed/called for debug purposes. Anyone know if that possible with kernel debugging enabled? |
|
@tsdh thanks for this. I have the exact same thing showing up when running systemd-cgls after logging out with user uid 1000. |
|
@kareliot Nope, nothing new from my side. Didn't have the time to debug any more, and since the issue is just on one machine, it hasn't bothered me enough. |
|
I have same problem on Archlinux |
|
I have opened a bug report about the tracker.store.system issue in the gnome bug tracker: |
|
I have the same problem - but on Linux Mint. |
|
For me (Arch Linux, Gnome desktop) the issue resolves whenever I deactivate |
|
Thanks stueja, but my own workaround is to allow my Internet connection to persist after log off. |
|
Still happens on Debian Testing |
|
@kevinxucs It seems to be related to dleyna-renderer, I found the following on my shutdown log:
Also found the following bug reports: You could try to uninstall dleyna-renderer and see if the problem goes away. EDIT: at shutdown the message shown in screen is "Stopping User Manager for...", the message "Stopped User Manager..." is shown after systemd kills dleyna-renderer. |
|
@FabianInostroza Thanks for pointing me the bug, but I am not sure I have dleyna-render installed. The solution for me is to switch from gdm to lightdm, so I guess something related with gdm for my case |
|
In my case, this problem was caused by a service that was not required. Here's how I fixed it. Maybe it can help someone:
|
Hi.
When i try to shutdown/reboot arch linux, my system hangs to cca 90 seconds and then shutdown or reboot.
I have created bug report at arch's bugzilla, but there is no one, who can find the problem.
It looks like there is problem with systemd, because after update to v227 issue is fixed for few reboots, then is back.
PLEASE take a look at my logs in bug report. Maybe you will find problem:
https://bugs.archlinux.org/task/46709