Unexpected reboot, logging configuration

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
AndrewZ
Posts: 19
Joined: Mon May 01, 2017 4:34 pm

Unexpected reboot, logging configuration

Post by AndrewZ »

DietPi v6.28.0 on Odroid HC2

It looks like the server rebooted again approximately at the same time when my Internet access was down for short period of time. Cannot guess what is the correlation.

Unfortunately I was not able to see what happened right before the reboot as all the current logs are brand new and old log files like messages.1 and syslog.1 are empty. I checked the logging configuration in dietpi-software - I still have 'Full' there which "Mounts /var/log to DISK".
However, mount shows

Code: Select all

tmpfs on /var/log type tmpfs (rw,nosuid,nodev,noatime,size=307200k)
Any idea how to troubleshoot those issues?
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: Unexpected reboot, logging configuration

Post by Joulinar »

Hi,

many thanks for your report. If log mode is still set to Full but /var/log is mounted to tmpfs means, your logging doesn't seems to work correctly.I guess you would need to reactivate the Full log mode by switching to RamLog and back to Full afterwards.

However this will not help to investigate why you system crashed. And without logs, it will be hard to investigate at all. Probably a small power outage at your home?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AndrewZ
Posts: 19
Joined: Mon May 01, 2017 4:34 pm

Re: Unexpected reboot, logging configuration

Post by AndrewZ »

Joulinar wrote: Tue Apr 28, 2020 1:00 am Probably a small power outage at your home?
That would be too easy ;) Power is protected by UPS, other equipment is running fine from the same source.
Will try to catch the reason next time.
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: Unexpected reboot, logging configuration

Post by Joulinar »

I guess I would need an USP as well. Had 2 sec outage last week causing my whole IT to reboot last week. Very nice if you are working from home and being in a conf call :cry:
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply