motioneye-project/motioneye

motioneye service fails to start properly after reboot with mjpg on raspbian buster

Open

#2,183 opened on 2021年9月2日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Python (636 forks)batch import
help wantedquestiontroubleshooting

Repository metrics

Stars
 (3,533 stars)
PR merge metrics
 (平均マージ 16d 14h) (30d で 33 merged PRs)

説明

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...

コントリビューターガイド