Hanging on reboot

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Hanging on reboot

Post by Burgess85 »

If I do sudo reboot I loose access to SSH and the machine doesn't shutdown and I have to force switch off with power button. How can I find out why it doesn't reboot?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Hanging on reboot

Post by Joulinar »

first share some more details on your system. Are you able to attach a screen to check what happen?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Hanging on reboot

Post by Burgess85 »

Joulinar wrote: Mon Aug 23, 2021 9:34 pm first share some more details on your system. Are you able to attach a screen to check what happen?
Just type sudo reboot and SSH disconnects but doesn't reboot just hangs

Using 7.5.2
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Hanging on reboot

Post by Joulinar »

SBC? Are you able to attach a screen?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Hanging on reboot

Post by Burgess85 »

Joulinar wrote: Mon Aug 23, 2021 9:42 pm SBC? Are you able to attach a screen?
No screen just SSH
User avatar
MichaIng
Site Admin
Posts: 3216
Joined: Sat Nov 18, 2017 6:21 pm

Re: Hanging on reboot

Post by MichaIng »

Attaching a screen and keyboard would be easiest to debug. Else you can enable persistent system logs:

Code: Select all

dietpi-software uninstall 103
reboot
# after reboot, or power cicle
mkdir /var/log/journal
systemctl restart systemd-journald
From then on RAM logging is disabled and you instead have persistent system logs. So when you then try another reboot, it hangs, you power circle, afterwards you can run journalctl to check for logs from the shutdown process.
Post Reply