I am trying to determine the cause of this error. Once in a while there will be a power outage or a circuit breaker will trip and my RPi Zero W will stall on the next boot when power comes back up. It seems the only way I can fix the problem is to unplug it and plug it back in.
I've looked through the logs and haven't found the reason (syslog) but perhaps I don't know where to look. I've determined it stalls somewhere after the default GPIO is setup and connection to the network is established. The boot process is normal and everything is updated and upgraded. It doesn't have anything special installed, just LAMP. The pi mounts a network drive that should be available (most of the time unless the pi with the network drive loses power too). There is a possibility that this is the problem, but how would I go about tracking that down?
I added a sleep 20 in my rc.local file before sudo mount -a to give the server pi some time to get booted and make the drive available.