I have a problem where my Pi hangs on reboot.
It only happens on some Pi's after about a month of running scripts. There's a script that resets the Pi every morning and it's on one of these resets that the Pi hanged.
After manually turning it off and back on it works fine.
I can't tell if it hangs during shutdown or booting up.
This what the end of syslog
looks like:
May 15 03:00:24 raspberrypi CRON[620]: (root) CMD (/usr/bin/python /home/pi/steora/cleanup.py > /dev/null 2>&1)
May 15 03:00:24 raspberrypi systemd[1]: Started Turns off Raspberry Pi display backlight on shutdown/reboot.
May 15 03:00:24 raspberrypi systemd[1]: Starting Synchronise Hardware Clock to System Clock...
May 15 03:00:24 raspberrypi systemd[1]: Stopping system-ifup.slice.
May 15 03:00:24 raspberrypi systemd[1]: Removed slice system-ifup.slice.
May 15 03:00:24 raspberrypi systemd[1]: Stopping system-systemd\x2dfsck.slice.
May 15 03:00:24 raspberrypi systemd[1]: Removed slice system-systemd\x2dfsck.slice.
May 15 03:00:24 raspberrypi systemd[1]: Stopped Update UTMP about System Runlevel Changes.
May 15 03:00:24 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="409" x-info="http://www.rsyslog.com"] exiting on signal 15.`
I can't replicate this problem it just happens sometimes on some Pi's.
UPDATE: I left one raspberry during the weekend to run normally except it resets every 5min, just to see what happens. The same problem occurred after 15 hours and 30 minutes (cca. 186 resets)
EDIT: What can cause such a problem and how to eliminate it? Is reseting RPI every day a bad idea? Could a watch dog timer help in this case?