Stretch hangs at shutdown && acces to shutdown logs

Kernels & Hardware, configuring network, installing services

Stretch hangs at shutdown && acces to shutdown logs

Postby bleda2 » 2019-01-24 12:49

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.
bleda2
 
Posts: 3
Joined: 2017-02-20 16:27

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

Postby Head_on_a_Stick » 2019-01-24 17:56

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
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby Ynot » 2019-01-24 23:50

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.
Ynot
 
Posts: 16
Joined: 2019-01-11 18:39

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

Postby bleda2 » 2019-01-28 19:39

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?
bleda2
 
Posts: 3
Joined: 2017-02-20 16:27


Return to System configuration

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable