You are not logged in.

#1 2012-10-19 23:46:40

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

[SOLVED] Shutdown Reboot Halt Never Finish

I was in the process of switching over to systemd per the guide:
https://wiki.archlinux.org/index.php/Systemd
Prior to attempting the switch over, reboot and shutdown worked fine. I did a sanity check reboot before modifying the kernel command line to use systemd for the init. And I noticed that reboot did not happen.  It simply hung at "sd 2:0:0:0 Syncronizing SCSI Cache", forever (I let it sit for 30minutes).

Per the troubleshooting guide, I modified the kernel command line to use serial debugger:
http://freedesktop.org/wiki/Software/sy … al_Console

I did not see much of anything useful, and reboot/shutdown halts one line further than the above: "sd 2:0:0:0 stopping disk".

I also added the kernel command line "debug" but I still don't see anything good.

I can hear the harddisk spindown, but it just hangs forever. 

The only way I was able to get a reboot to occur was using:
#echo 1 > /proc/sys/kernel/sysrq
#echo b > /proc/sysrq-trigger

I'm pretty well out of ideas to try. 

Any ideas? Help?

Thanks,
Jeremy

Last edited by jdkdonk (2013-01-17 21:47:17)

Offline

#2 2012-10-20 06:21:13

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Shutdown Reboot Halt Never Finish

By forever, do you mean you waited quite a while, or it was a minute and that was long enough!  I ask because there have been a couple times where my system just decided to hang for about two minutes on shutdown.  Thankfully it hasn't happened for a long time, but it was annoying, even only happening a couple times.

Did you also try the debug shell?

You may want to try the "Sutdown completes eventually" part on that page as well, on the off change that it might actually be getting that far...

Offline

#3 2012-10-21 01:23:15

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

Re: [SOLVED] Shutdown Reboot Halt Never Finish

I gave it 30 minutes while I went to a meeting, but It never finished.  Just sitting in the same spot.

Not sure what you mean by "debug shell".  I did add "debug" to the kernel command line when I booted, but I didn't get additional helpful messages.

Maybe you are referring to adding the file: /lib/systemd/system-shutdown/debug.sh. I did not try this, because my system never shut down.

I did try the section above that one with these commands:

sync && reboot -f
sync && poweroff -f

But these failed to work as well.

I'll try the debug.sh section anyway when I get back to work on Tuesday.

Thanks,
  Jeremy

Offline

#4 2012-10-21 01:56:08

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Shutdown Reboot Halt Never Finish

Yeah, I see no reason not to try the debug.sh as you apparently do not know how far your system is actually getting in the shutdown process.  The page you referenced also mentions that the debug shell is available in both early boot and late shutdown, so that might be a possibility as well.

I think what you should do absolutely first though, is enable persistent logging and then try again.  Then you will have logs at least until the debug.sh would be useful.  Then you can determine whether or not to use it. 

I think that until you gather more information, it is going to be next to impossible to determine what is going on here. 

Oh yeah, one more thing, there was a systemd update (194-4) that was pushed to core just yesterday(?), I think... recently anyways.  Maybe that might bring some magic to the situation.

Offline

#5 2012-10-23 21:03:33

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

Re: [SOLVED] Shutdown Reboot Halt Never Finish

Unfortunately, I already have the latest systemd update.

I'm not convinced it is a systemd issue anyway, as it won't shutdown in using legacy init-scripts boot either.

Also, "poweroff -f" fails to shutdown and according to this page:
http://freedesktop.org/wiki/Software/sy … n_Problems
That means its a kernel bug.  Bug where do I go to debug this?  I got no more ideas.

I think I'm looking at having to do a fresh install. sad

Offline

#6 2012-10-23 21:05:25

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

Re: [SOLVED] Shutdown Reboot Halt Never Finish

Oh, fyi, debug shell and and the "shutdown-log" did not yield any clues that I can see.

Offline

#7 2012-11-05 12:05:42

tommykr
Member
From: Poland
Registered: 2009-03-15
Posts: 51

Re: [SOLVED] Shutdown Reboot Halt Never Finish

jdkdonk wrote:

I did try the section above that one with these commands:

sync && reboot -f
sync && poweroff -f

But these failed to work as well.

I had the same problem. Try:

shutdown -P now
shutdown -r now

Works for me.

Offline

#8 2012-12-06 16:32:59

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

Re: [SOLVED] Shutdown Reboot Halt Never Finish

FYI,

This appears to be an Arch specific issue.

I installed a new base system on a new hard drive, and still have the same issue. I installed Linux Mint (ick) on the same drive for a sanity check and it shuts down immediately.  I know this doesn't have the same kernel version etc, but it works no problem.

I'm all out of ideas on this.

Offline

#9 2012-12-06 16:37:10

browntown
Member
From: Salem, OR USA
Registered: 2012-11-20
Posts: 63

Re: [SOLVED] Shutdown Reboot Halt Never Finish

my acer netbook shuts down fine, but on reboot, it dumps everything, screen goes  black but the power button is still lit and it never works.

I'm sadly just in the habit of shutting down and restarting.  subscribed.

Offline

#10 2013-01-01 08:42:20

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: [SOLVED] Shutdown Reboot Halt Never Finish

some times I have same problem on poweroff command

I view in journal:

dic 31 23:06:41 arch64 systemd[1]: Stopped D-Bus System Message Bus.
dic 31 23:06:41 arch64 systemd[1]: systemd-logind.service: main process exited, code=exited,
status=1/FAILURE
dic 31 23:06:41 arch64 systemd[1]: Stopped Login Service.
dic 31 23:06:41 arch64 systemd[1]: Unit systemd-logind.service entered failed state


thanks

Offline

#11 2013-01-01 08:55:39

browntown
Member
From: Salem, OR USA
Registered: 2012-11-20
Posts: 63

Re: [SOLVED] Shutdown Reboot Halt Never Finish

oddly reboot is working after my last -Syu

Don't know why

Offline

#12 2013-01-02 08:15:01

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: [SOLVED] Shutdown Reboot Halt Never Finish

yesterday... in this case... with:

poweroff -f

it stop system OK

Last edited by sacarde (2013-01-02 08:15:19)

Offline

#13 2013-01-17 21:46:32

jdkdonk
Member
Registered: 2009-11-23
Posts: 23

Re: [SOLVED] Shutdown Reboot Halt Never Finish

Finally figured out the problem here, just lucked into the solution while attempting to fix another problem with my sound card.  This turns out to be a kernel bug in the i82975x_edac kernel driver.  Blacklisting it fixes my sound card, and my reboot problems. 

Thanks to Zmann for the fix:

https://bbs.archlinux.org/viewtopic.php?id=148033

Offline

Board footer

Powered by FluxBB