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

 

 

 

Stretch hangs at shutdown && acces to shutdown logs

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
bleda2
Posts: 3
Joined: 2017-02-20 16:27

Stretch hangs at shutdown && acces to shutdown logs

#1 Post by bleda2 »

Hey everyone

My debian started to hang again for about 90 seconds with only a white _ blinking in the top right corner before shutting down. I had this problem on the same machine before already and it went away after I reinstalled. I did not really change a thing in the last days, so I dont know what the source of the problem could be.

I checked immediately after reboot
/var/log/debug
/var/log/syslog (will be pretty full and may be harder to browse)
/var/log/user.log
/var/log/kern.log
/var/log/boot
/var/log/messages
but I am too unexperienced to be able to understand anything there.
last -x shutdown reboot says nothing usefull

I changed grub settings in /etc/default/grub from quiet to verbose via RUB_CMDLINE_LINUX_DEFAULT=""
but this has only an effect on booting up.

First question: How can I check the logs? Secon quesiton "how to solve the main problem" will follow, when we have the according logs.

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: Stretch hangs at shutdown && acces to shutdown logs

#2 Post by Head_on_a_Stick »

bleda2 wrote:How can I check the logs?
Set the systemd journal to persistent with

Code: Select all

# mkdir /var/log/journal
Then view the logs from the previous boot in reverse order with

Code: Select all

journalctl -b -1 -r
Check the man page for more filtering options.

EDIT: most people who post problems like this have broken their Debian stable system by adding testing/unstable or Ubuntu sources, is that the case here?

https://wiki.debian.org/DontBreakDebian
deadbang

Ynot
Posts: 16
Joined: 2019-01-11 18:39

Re: Stretch hangs at shutdown && acces to shutdown logs

#3 Post by Ynot »

bleda2 wrote:My debian started to hang again for about 90 seconds with only a white _ blinking in the top right corner before shutting down. ...
What was the exact shutdown command you typed? You might want to repeat the shutdown command after making note of the time you hit the enter key, and then search /var/log/syslog for that time.

bleda2
Posts: 3
Joined: 2017-02-20 16:27

Re: Stretch hangs at shutdown && acces to shutdown logs

#4 Post by bleda2 »

Thanks for your answers. Sry for late reply. I thought I get a mail notification.
No testing/unstable in my repos. I rebooted before with

Code: Select all

sudo telinit 6 
However the problem disapeared again. So I don't know if I should post the logs?

Post Reply