Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

System hard lockup during shutdown

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
cronomorfo
Posts: 13
Joined: 2019-02-21 18:53

System hard lockup during shutdown

#1 Post by cronomorfo »

Hello.
This is my first real foray into Linux. I'm running Debian 9 Stable.

A month or so ago I installed the OS, but recently I realized that the system never shut down completely unless I turned off the device by pressing the hardware power button. I've seen a couple of error messages in the shutdown sequence but I don't know how to recover them.

My impression is that this might be a firmware issue, yet I'm a bit over my head in technical terms trying to solve this issue alone, that's why I'm coming here to the Beginners. I don't even know where should I be looking inside the hood of Debian in order to give appropiate info on how to proceed.
Cronomorfo.
ESL and new Linux user, finding my bearings here. Please be patient.

Bulkley
Posts: 6387
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: System hard lockup during shutdown

#2 Post by Bulkley »

Yeah, I've seen that. There's a black screen and you can hear the fan running. No clues. Linux has a soft shutdown procedure.

Code: Select all

SysRq REISUO
See here. For reboot use

Code: Select all

SysRq REISUB
Test it to make sure it's working on your system.

I assume you are shutting down using the provided GUI. As a test try doing in a terminal

Code: Select all

shutdown -h now
Watch for errors.

I'm thinking that when you have this problem you have left a program running and the shutdown process is having trouble closing it. A browser maybe?

User avatar
sunrat
Administrator
Administrator
Posts: 6495
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 476 times

Re: System hard lockup during shutdown

#3 Post by sunrat »

This will be much easier to diagnose by reading journal logs.
Enable persistent journal by creating a directory as root or sudo:

Code: Select all

mkdir -p /var/log/journal
Then you can read the journal after the next boot with

Code: Select all

journalctl -b -1 -p 3
-b -1 means show for the previous boot
-p 3 means only show error messages with priority 3

Post the results here.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: System hard lockup during shutdown

#4 Post by Head_on_a_Stick »

http://forums.debian.net/viewtopic.php?f=10&t=140648

Please search the boards before posting.
deadbang

cronomorfo
Posts: 13
Joined: 2019-02-21 18:53

Re: System hard lockup during shutdown

#5 Post by cronomorfo »

Thanks for your feedback. I'm not aware of what I did but the behavior seems to have stopped. I remember unchecking a box for journal saving in the GUI settings and I guess that did the trick.

Sorry for missing that out, Head_on_a_Stick, I thought that the most reasonable path for solving this issue was actually asking for diagnostic tools/commands instead of going around mindlessly changing settings.
Cronomorfo.
ESL and new Linux user, finding my bearings here. Please be patient.

Post Reply