Random diet-Pi crashes -> reboot -> not coming back

Having issues with your DietPi installation or found a bug? Post it here.
psychoquaker
Posts: 10
Joined: Tue Jun 15, 2021 7:41 am

Random diet-Pi crashes -> reboot -> not coming back

Post by psychoquaker »

Hi,

I've got a strange behaviour with my dietpi running on a Pi Zero (with external USB adapter): The sytem crashes randomly after 1-5 days of operation.
In the syslog I can see, that there was a reboot happening but somehow the system does not really come back and I lose my LAN connection.

Do you have any ideas what could be the reason?
I tried to exchange the power supply - this did not solve the problem.
Attached you can find the syslog before the crash.

I saw in this forum, that this happend to other users a well, but I'm not sure, if it was solved:
viewtopic.php?t=8224

I hope you can help me...
Attachments
syslog.txt
(65.06 KiB) Downloaded 12 times
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by Joulinar »

Hi,

there is nothing in the logs indicating a crash. It simply seems to stop at 10:40am Jun 14th and got rebooted this morning around 06:39am

did you already activated full log mode? As well you could have a look for critical kernel messages. But it will show messages since the reboot only

Code: Select all

dmesg -l err,crit,alert,emerg
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
psychoquaker
Posts: 10
Joined: Tue Jun 15, 2021 7:41 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by psychoquaker »

Hi,

if the system stops at 10:40 I would call this a crash :D
The leds were still on, but there was no SSH connection over LAN possible.
This I why I did a reboot today in the morning by removing the power supply.


Full log mode is active. Do you need any specific file?
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by MichaIng »

/var/log/syslog and /var/log/kern.log should be the most interesting ones.
psychoquaker
Posts: 10
Joined: Tue Jun 15, 2021 7:41 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by psychoquaker »

The syslog is already above.
Here comes the kern.log
Attachments
kern.log.txt
(420 Bytes) Downloaded 9 times
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by Joulinar »

hmm some messages from the ethernet adapter. Maybe this leads to connection loss and the system become unavailable. :?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
psychoquaker
Posts: 10
Joined: Tue Jun 15, 2021 7:41 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by psychoquaker »

first i also thought so, but I had a logging tool running and this stopped as well. also you can see in the syslog, that there are no entries anymore. so for me this rather looks like a system stop/crash...
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by Joulinar »

well there is nothing in the logs giving an indication why your system stop.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by MichaIng »

Check also daemon.log and cron.log. It might just double with syslog, not sure currently. Also pinging the Pi doesn't work anymore after the crash, right?

And please also run vcgencmd get_throttled by times, to check whether there happened any voltage or temperature related CPU throttling. If the output is throttled=0x0, then all is fine, else some throttling happened.
psychoquaker
Posts: 10
Joined: Tue Jun 15, 2021 7:41 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by psychoquaker »

Here's the daemon log. The cron log is not existing.
In the daemon log there is an entry just before the system stopped:

Code: Select all

Jun 14 10:39:01 DietPi systemd[1]: Starting Clean php session files...
Jun 14 10:39:02 DietPi systemd[1]: phpsessionclean.service: Succeeded.
Jun 14 10:39:02 DietPi systemd[1]: Started Clean php session files.
Is this something critical?


Concerning the vcgencmd get_throttled:
How low is this status valid? Do you have a script that could write a log?
Attachments
daemon.zip
(16.08 KiB) Downloaded 7 times
Post Reply