I have a Pi Zero W running Raspbian Stretch Lite (June 2018). I'm using it to turn the crank on an automatic cat feeder. I've barely changed the base configuration: apt-get-installed git and samba, used Python's pip to install wiringpi and psutil, and scheduled my Python script to run at 7AM and 7PM using crontab -e.
In the mornings I've been finding the pi shut down and missed the 7AM feeding. Unplug/replug brings it back up. I set up a ping test from my desktop and discovered for the last three days that the system shuts down at exactly 11:23 in the evening (eastern daylight time).
I've confirmed that there is no cron job for the pi user or the super user for that time (or at any time, other than the feedings.) I'm pretty new to Linux. What could be causing this?
Update 2:
I stayed up tonight and observed the issue. Sure enough, the LED switched off at 11:23 and my SSH session went dead. Interesting twist: I powered it up again right away, and it shut down again about 1 minute later! This pattern repeated until around 11:28, after which point it has stayed up no problem.
Here is a gist with the /var/log/messages for the whole affair. What's strange is that the system appears to boot up at 11:17, although I didn't shut it down and my ping test didn't report an outage.
https://gist.github.com/buzzcola/6ea029d7d496d8852b4c7a062945937b