DietPi needs regular cold reboots

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
baremetaloctopus
Posts: 24
Joined: Wed Sep 23, 2020 8:22 pm

DietPi needs regular cold reboots

Post by baremetaloctopus »

Regularly, every other day or so, I need to cold reboot my headless DietPi because it has stopped responding to ping.

I use it very lightly and infrequently for Jackett, VNC, and I also have the Discord webapp set as my Firefox homepage, autorefreshing and random intervals between 2 and 4 hours. Before setting up the webapp and learning a regular Discord install was not possible I did try installing Discord via flatpak and some other options, so there may be some extra bloat on my system.

Can you please tell if there is a log file that I can check after the next time I have to cold reboot, or even if there is one I can check now? I cold rebooted within the last two hours.
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi needs regular cold reboots

Post by Joulinar »

Hi,

you could try to setup persistence log files, that can be checked after next freeze/reboot

Code: Select all

dietpi-software uninstall 103
mkdir -p /var/log/journal
# then after crash, the following shows logs from before the crash as well
Journalctl
following files could be checked as well. /var/log/syslog and /var/log/kern.log
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baremetaloctopus
Posts: 24
Joined: Wed Sep 23, 2020 8:22 pm

Re: DietPi needs regular cold reboots

Post by baremetaloctopus »

Joulinar wrote: Tue Jun 29, 2021 9:31 pm Hi,

you could try to setup persistence log files, that can be checked after next freeze/reboot

Code: Select all

dietpi-software uninstall 103
mkdir -p /var/log/journal
# then after crash, the following shows logs from before the crash as well
Journalctl
following files could be checked as well. /var/log/syslog and /var/log/kern.log
After find DietPi not responding to ping today I checked for the directory created using the mkdir command after you posted and it was not there, so I recreated it.

I also checked for /var/log/syslog and /var/log/kern.log but they do not exist.

In addition to the uninstall 103 command, is there anything else I need to do here please?

Here is a pastebin of journalctl: https://pastebin.ubuntu.com/p/KZnvk8vkH8/
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi needs regular cold reboots

Post by Joulinar »

did you performed the uninstall command after todays freeze or before?

Basically the log is describing the restart you performed. There is nothing from the situation before.

More an observation. Your system doesn't seems to sync system time correctly on reboot.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baremetaloctopus
Posts: 24
Joined: Wed Sep 23, 2020 8:22 pm

Re: DietPi needs regular cold reboots

Post by baremetaloctopus »

I first performed it when you posted the command but on discovering the journal dir was missing despite being created at the same time, I input the mkdir and uninstall command again.

Is there any way to fix the issue with the system time?

You helped me with other issues recently that made you suspect a possible issue with the card - do you think I should just do a clean install of DietPi?
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi needs regular cold reboots

Post by Joulinar »

it depends on the effort needed to perform a new installation. If this is something that could be done quickly, why not. Probably you have a spare SD card. This way you could keep the original system. Just in case ...
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply