Manisch wrote: ↑
Tue Jul 09, 2019 1:48 pm
Hmm, I'm not sure, wheater or not it's just the camera or the whole Pi that's rebooting. Is there some sort of log that's writing down such events?
Well, there are lots of logs, but without knowing more about the symptoms, it's hard to know where to point you.
/var/log has most of the system logs. The syslog
, and messages
files in the /var/log directory may have important info if the Pi is crashing. The Linux command dmesg
may also give you useful info.
The Linux command uptime
will tell you when the system was last rebooted, which may help you figure out what exactly is crashing.
If it's directly related to the camera, scheduleLog.txt
in the /var/www/html (or wherever you have installed RPiCWI) may contain useful info.
One important thing to note - the Pi doesn't have a real-time clock, which means that immediately after booting, the time will be off until the system can synchronize the time from the internet. This can lead you astray when using log files for debugging purposes - if you see a big time jump, you might assume that's when the Pi rebooted. In reality that's when the time was synchronized. If your Pi crashes at 10:00 and you reboot it at 11:00, the Pi is still going to think it's 10:00 for most of the boot process. So if you're looking for the cause of a crash, it may not
be whatever happened right before the time jump.
Can you SSH into the Pi (or access the terminal with a screen, keyboard and mouse) after it has "crashed"?