You are not logged in.

#1 2012-07-18 16:34:15

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

[SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

I'm having trouble shutting down my system, sometimes. When I click shutdown in mate-panel (running full mate desktop) it will simply logout and go to LightDM allowing me to login again. Tried these commands in both a terminal window and several tty's:

sudo halt
sudo shutdown -h now
# halt
# shutdown -h now
# /sbin/init 3 && /sbin/init 6

All will post the usual message (The system is going down for system halt NOW!) and sit there, doing nothing. If I press enter, I find I can still enter commands as normal. Even changing init to runlevel 6 fails! I think that switching tty's might stop working after this, but I'm not sure. In the end I have no choice but to hard reset which just feels awful everytime. Any clues where to look?

System info: Mate desktop environment, 3 hdds (various partitions) with 2 joined with mhhdfs, runs samba, minidlna and ps3mediaserver to share files to several other devices on the network, deluge with web interface for torrents.

The worst part is it only happens sometimes so it's hard to diagnose.

Last edited by MisterAnderson (2012-07-26 16:16:06)


D:

Offline

#2 2012-07-23 06:36:57

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

This is now urgent as I've upgraded from grub to grub2 today, and this has decided to occur so I can't be sure the files have been written to disk properly. Any help is appreciated. Please tell me which logs you want to see, I will post them.


D:

Offline

#3 2012-07-24 09:27:03

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

Well, with no replies I had to leave the computer running, then a blackout today turned it off. Grub managed to boot although udev took a crazy long time to complete (almost ten minutes I think) before it booted happily. I'm yet to reboot to see if this continues, I doubt it.

Please, if ANYONE has ANY suggestion just throw it at me, I have zero clue where to start looking, not many people have trouble turning their computers off, usually the other way around. The only problem I could find by searching the net that was similar was people getting all the way to [Powering off] and it just sitting there, but that seems to be an unrelated problem.

This is my family's media server for everyone to watch our movies from (stops people losing the dvd's >:| ) so I don't really want to experiment on it, but with no suggestions so far I'm going to try installing systemd and see if that helps, since maybe it's an init related problem. I'll post back the results but as it doesn't happen every time I'll not know if anything is solved for a while.


D:

Offline

#4 2012-07-24 09:34:11

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

Does the usual list of daemons shutting and other stuff show up?

Try alt + sysrq + reisuo and see if it manages to shut down the computer.

Last edited by x33a (2012-07-24 09:34:27)

Offline

#5 2012-07-24 10:30:09

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

No, nothing would come up, just a beep from the PC speaker, the usual system is shutting down now message, and everything running normally as before the command. I tried stopping all daemons before shutdown then running the command (didn't help) but I saw a message that hadn't come up before:

INFO: task shutdown:3305 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

I guess something is block shutdown, no clue what though. If you want log files just ask, I'll post. I'll hold off systemd for now to see if there's an answer to this that will help everyone.
EDIT: will try that sysreq command if I can get it to fail shutting down again. I assume you hold the two super keys, plus each of those letters at the same time?

Last edited by MisterAnderson (2012-07-24 10:31:00)


D:

Offline

#6 2012-07-24 10:54:00

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

Ok, it's failing to shutdown again at the moment. I've noticed a thread in htop running that is using over 100% CPU, I think it only starts after running shutdown but can't be too sure, maybe it only rises then (just checked and been running 1h02:19, uptime is 1:17:52), but it's continuing to run that high. It's

mount -t auto -o uhelper=udisks2,nodev,nosuid /dev/fd0 /run/media/greg/disk

I don't even HAVE a floppy drive, let alone one addressed in fstab. Doing sudo kill 1235 also fails (doesn't seem to do anything, no errors). BTW, tried that keyboard command, opened thousands of mate-screenshot instances.


D:

Offline

#7 2012-07-24 12:24:18

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

For the sysrq key, take a look here:

https://wiki.archlinux.org/index.php/Ke … uts#Kernel

As for the mount line, seeing that it is mounted under /run/media/ I would assume it is done by a file manager. Do you have any external storage attached to the machine?

Offline

#8 2012-07-24 12:36:30

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

Ok found something that might be relevant in your case

https://bbs.archlinux.org/viewtopic.php … 9#p1125209

Last edited by x33a (2012-07-24 12:37:07)

Offline

#9 2012-07-25 12:43:38

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

Thank you so much, that link solved the problem of the process. I threw a floppy drive in a few months ago then took it out but didn't change the bios back to none. Transcoding performance for pms has been suffering especially. No idea if this will solve the main issue, but I'll post back in a day or two to let you know if it seems to have stopped or not.

EDIT: Wrote "through" instead of "threw" *facepalm*

Last edited by MisterAnderson (2012-07-25 12:44:15)


D:

Offline

#10 2012-07-26 16:13:34

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [SOLVED] Shutdown ignored, system keeps running, /sbin/init 6 fails

Just posting back to say that everything appears to have been fixed by turning floppy drive to [none] in bios. Thanks for your help! Can't believe something so simple caused such a serious problem.


D:

Offline

Board footer

Powered by FluxBB