Bug 1287970 - Random delay on shutdown/reboot
Summary: Random delay on shutdown/reboot
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 23
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-03 07:57 UTC by Saurav Sg
Modified: 2016-01-14 09:38 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-13 13:54:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Shutdown log as requested in comment #3 (1014.12 KB, text/plain)
2015-12-12 11:15 UTC, Saurav Sg
no flags Details

Description Saurav Sg 2015-12-03 07:57:34 UTC
Description of problem:
There is a sometimes a delay of several seconds when attempting a shutdown/reboot from GNOME (3.18). The occurrence is totally random, the Plymouth splash screen sometimes appears while at other times the screen goes blank with just a text-mode cursor visible, and no messages appear. No key presses respond, including Esc (for Plymouth messages) and Ctrl+Alt+Fx (for virtual terminals). There are no messages of "stop job is running" as was the case for a bug earlier. A "watchdog did not stop" message has appeared on a few occasions, but it has also appeared on some occasions when the delay did not occur. A hard reset is not required, however; the system shuts down (apparently properly) after the inexplicable delay. I do not know which component is causing this. My kernel version is 4.2.6-301 as of this writing. I am facing the issue since a few days ago; I encountered no such problem earlier since the release of Fedora 23. There has been no change to the system that I am aware of, except the regular software updates, and no updates from testing repositories.

Version-Release number of selected component (if applicable):


How reproducible:
Random

Comment 1 Kevin Fenzi 2015-12-05 02:34:42 UTC
Moving over to systemd folks for comment...

Comment 2 Saurav Sg 2015-12-05 09:06:29 UTC
If any messages appear at all (e.g., "watchdog did not stop" or "going down for reboot" or "rebooting"), they always appear after the delay. That is, if I see any messages, I know that the delay is over and the system will power down or reboot now.

Comment 3 Michal Sekletar 2015-12-05 10:02:13 UTC
Please follow instructions at [1] (paragraph "Shutdown Completes Eventually") and attach obtained shutdown log.

[1] http://freedesktop.org/wiki/Software/systemd/Debugging/

Comment 4 Saurav Sg 2015-12-05 10:19:56 UTC
(In reply to Michal Sekletar from comment #3)
> Please follow instructions at [1] (paragraph "Shutdown Completes
> Eventually") and attach obtained shutdown log.
> 
> [1] http://freedesktop.org/wiki/Software/systemd/Debugging/

I have set my system up according to the instructions, but because the problem is random and infrequent, I will have to wait until it occurs again. Should I attach only the log obtained after a delayed shutdown or the one obtained in any case?

Comment 5 Lukáš Nykrýn 2015-12-07 11:17:25 UTC
Just for the delayed shutdown.

Comment 6 Saurav Sg 2015-12-12 11:15:11 UTC
Created attachment 1105005 [details]
Shutdown log as requested in comment #3

Attached the shutdown log for a delayed reboot.

Comment 7 Saurav Sg 2015-12-13 14:02:41 UTC
I have got another shutdown log from a delayed shutdown (power down). Please let me know if it is required.

Comment 8 Jan Synacek 2016-01-11 08:34:45 UTC
Please, also specify the systemd version you are using.

How frequently does this problem occur? I can't reproduce this, but I could backport some watchdog patches and provide you with the packages. Would you be willing to test those?

Comment 9 Jan Synacek 2016-01-11 09:33:49 UTC
One more thing you can do.

1) Enable debug shell (systemctl enable debug-shell.service).
2) When the shutdown hangs, switch to tty9 and execute "systemctl list-jobs" and attach the output to this bugzilla.
3) Disable debug shell.

Comment 10 Saurav Sg 2016-01-12 09:57:18 UTC
(In reply to Jan Synacek from comment #8)
> Please, also specify the systemd version you are using.

Unfortunately, I did not note the version number. I think I have had two regular upgrades to systemd since then, which were 222-11 and 222-12, so the version which was installed when I reported the bug was probably 222-10.

> How frequently does this problem occur? I can't reproduce this, but I could
> backport some watchdog patches and provide you with the packages. Would you
> be willing to test those?

The problem has always occurred randomly, sometimes twice in a row, sometimes not even once in several days. However, ever since the upgrade to 222-11, I have not experienced the problem, but I can't know if it is gone for good. I don't know what the proper procedure is in such cases; perhaps the bug could be closed and later reopened if the problem occurs again?

Comment 11 Jan Synacek 2016-01-13 13:54:50 UTC
Ok, I'm closing this bug now. If it happens again, please also attach the output of "systemctl list-jobs" (described in comment 9).


Note You need to log in before you can comment on or make changes to this bug.