motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.93k stars 653 forks source link

Motion detection occasionally stops in running docker container #1480

Open JBS5 opened 4 years ago

JBS5 commented 4 years ago

At the moment I am running 0.41 in docker on a NUC using Ubuntu. Some days ago, motion detection has stopped working without any apparent reason. I am not able to get the motion detection to work. Restarting the container did not fix it. The camera stream is available in motioneye, only the motion detection part is not working anymore.

When logging in into the docker container en tailing motion.log, this is what I see:

root@motioneye:/var/log# tail motion.log
[1:ml1] [WRN] [ALL] mlp_retry: Retrying until successful connection with camera
[1:ml1] [ERR] [NET] netcam_rtsp_open_context: Normal resolution: Unable to open camera((null)): Connection refused
[1:ml1] [ERR] [VID] vid_start: Netcam RTSP failed to open
[1:ml1] [ERR] [NET] netcam_rtsp_open_context: Normal resolution: Unable to open camera((null)): Connection refused
[1:ml1] [ERR] [VID] vid_start: Netcam RTSP failed to open
[1:ml1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
[1:ml1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1] [WRN] [ALL] mlp_retry: Retrying until successful connection with camera
[1:ml1] [ERR] [NET] netcam_rtsp_open_context: Normal resolution: Unable to open camera((null)): Connection refused
[1:ml1] [ERR] [VID] vid_start: Netcam RTSP failed to open

After restarting the docker container, the log in docker tells me:

    INFO: hello! this is motionEye server 0.41
    INFO: cleanup started
    INFO: wsswitch started
    INFO: tasks started
    INFO: mjpg client garbage collector started
    INFO: server started

Any clue what's happening?

JBS5 commented 4 years ago

Motion detecting has stopped again without any reason (not that I know off). Does anyone recognize this?

JBS5 commented 4 years ago

Installed motionEye on my NUC this way https://github.com/ccrisan/motioneye/wiki/Install-On-Ubuntu instead of using the docker, and motion detection is still working..