motioneye-project/motioneye
View on GitHubmotioneye service fails to start properly after reboot with mjpg on raspbian buster
Open
#2,183 opened on Sep 2, 2021
help wantedquestiontroubleshooting
Description
Hi,
I'm using motioneye on a rasbian pi4 as a frontend for motioneyeos pi zero cameras on fast camera mode.
Using systemd service file provided in the doc, when rebooting the main raspberry I have: "ERROR: mjpg client timed out receiving data for camera 1 on port 8081" and no videos.
Works fine after a manual ssh "systemctl restart motioneye"
After searching, for /usr/local/share/motioneye/extra/motioneye.systemd-unit-local and then /etc/systemd/system/motioneye.service : [Unit] needs: After=network-online.target
[Install] would probably need: After=network-online.target
Strange mjpg is not retrying properly when network fails or not ready...