I'm trying to run my Pi Zero W as a motion detecting camera using RPI cam web interface but it keeps hanging after a few hours at most. Before it hangs, it can record motion detect videos and upload them to google drive using rclone. I left it running in my office over the weekend, and now that I've come back it's happened again.
Without pulling the plug, I can observe the following:
- Activity light is solid green
- It's not connected to wifi
My questions are:
- Without a hard power cycle, is there any way I can check if the whole system is hanging or just the wifi?
- If I do pull the plug and plug it in again, where can I look for clues as to the cause of this issue?
Pi Zero W, Raspian Stretch 4.14.98+
sudo crontab -e. After the system fails take a look at that log to see if there's a memory leak.