motion.log being spammed in motioneye docker environment #1337

Open
opened 2026-02-28 00:41:16 -05:00 by deekerman · 0 comments
Owner

Originally created by @tr1plus on GitHub (Aug 28, 2019).

Dear

I recently saw that the motion.log file was taking 12gb of drive space. Looking into it I saw that I keep having the same piece of log repeated every second or so:

[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length 19198
[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:nc3:LivingRoom] [DBG] [NET] Above message repeats 1 times
[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_type: Content-type image/jpeg
[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:nc3:LivingRoom] [DBG] [NET] netcam_read_next_header: Found image header record
[2:nc3:LivingRoom] [DBG] [NET] netcam_read_html_jpeg: Potential split boundary - 1447 chars flushed, 1 re-positioned
[2:ml2:LivingRoom] [DBG] [NET] netcam_proc_jpeg: processing jpeg image - content length 19198
[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length 19152
[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:nc3:LivingRoom] [DBG] [NET] Above message repeats 1 times
[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_type: Content-type image/jpeg
[2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:nc3:LivingRoom] [DBG] [NET] netcam_read_next_header: Found image header record

This is the first piece of info I get on the "livingroom" camera.

[2:ml2:LivingRoom] [INF] [NET] netcam_start: Netcam_http parameter 'off' converts to flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[2:ml2:LivingRoom] [INF] [NET] netcam_start: now calling netcam_setup_html()
[2:ml2:LivingRoom] [INF] [NET] netcam_http_build_url: Netcam has flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[2:ml2:LivingRoom] [INF] [NET] netcam_http_request: about to try to connect, time #0
[2:ml2:LivingRoom] [INF] [NET] netcam_connect: disconnecting netcam since keep-alive not set.
[2:ml2:LivingRoom] [INF] [NET] netcam_connect: with no keepalive, new socket created fd 7
[2:ml2:LivingRoom] [INF] [NET] netcam_connect: re-using socket 7 since keepalive is set.
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('HTTP/1.0 200 OK')
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Server: Streamd,50C7BF0A592A')
[2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Date: Wed, 28 Aug 2019 20:11:34 UTC')
[2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Content-Type: multipart/x-mixed-replace;boundary=data-boundary--')
[2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_type: Content-type multipart/x-mixed-replace
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Streaming camera
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Boundary string [data-boundary--]
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Pragma: no-cache')
[2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Cache-Control: no-cache')
[2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Content-Length: -1')
[2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Connection: close')
[2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1
[2:ml2:LivingRoom] [NTC] [NET] netcam_read_first_header: Found Conn: close header ('Connection: close')
[2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('')

in motion.conf the log_level 6
in motioneye.conf the log_level info

The config in for my camera is the below (done via motioneye, but generated this config file):

stream_quality 85
threshold 1999
noise_level 31
smart_mask_speed 0
pre_capture 1
movie_codec mp4:h264_omx
noise_tune on
stream_maxrate 5
netcam_url http://192.168.1.123:8080/stream/video/mjpeg?resolution=VGA&&Username=admin&&Password=xxxxx
stream_localhost off
text_changes off
movie_filename %Y-%m-%d/%H-%M-%S
movie_max_time 0
lightswitch_percent 0
auto_brightness off
stream_port 8084
rotate 0
stream_auth_method 0
framerate 2
emulate_motion off
movie_output off
picture_quality 85
snapshot_filename
despeckle_filter
snapshot_interval 0
minimum_motion_frames 20
stream_motion off
target_dir /var/lib/motioneye/Camera4
movie_output_motion off
post_capture 1
stream_authentication user:
on_picture_save /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" picture_save %t %f
on_movie_end /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" movie_end %t %f
text_left LivingRoom
picture_output_motion off
picture_filename
text_scale 1
locate_motion_style redbox
locate_motion_mode off
netcam_keepalive off
movie_quality 75
picture_output off
on_event_end /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" stop %t
text_right %Y-%m-%d\n%T
on_event_start /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" start %t
camera_name LivingRoom
event_gap 30
netcam_tolerant_check on
mask_file

It's weird that my log levels are not on debug, but I still get debug log messages...

Thanks!

Originally created by @tr1plus on GitHub (Aug 28, 2019). Dear I recently saw that the motion.log file was taking 12gb of drive space. Looking into it I saw that I keep having the same piece of log repeated every second or so: > [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length 19198 [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:nc3:LivingRoom] [DBG] [NET] Above message repeats 1 times [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_type: Content-type image/jpeg [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:nc3:LivingRoom] [DBG] [NET] netcam_read_next_header: Found image header record [2:nc3:LivingRoom] [DBG] [NET] netcam_read_html_jpeg: Potential split boundary - 1447 chars flushed, 1 re-positioned [2:ml2:LivingRoom] [DBG] [NET] netcam_proc_jpeg: processing jpeg image - content length 19198 [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length 19152 [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:nc3:LivingRoom] [DBG] [NET] Above message repeats 1 times [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_type: Content-type image/jpeg [2:nc3:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:nc3:LivingRoom] [DBG] [NET] netcam_read_next_header: Found image header record This is the first piece of info I get on the "livingroom" camera. > [2:ml2:LivingRoom] [INF] [NET] netcam_start: Netcam_http parameter 'off' converts to flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF. [2:ml2:LivingRoom] [INF] [NET] netcam_start: now calling netcam_setup_html() [2:ml2:LivingRoom] [INF] [NET] netcam_http_build_url: Netcam has flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF. [2:ml2:LivingRoom] [INF] [NET] netcam_http_request: about to try to connect, time #0 [2:ml2:LivingRoom] [INF] [NET] netcam_connect: disconnecting netcam since keep-alive not set. [2:ml2:LivingRoom] [INF] [NET] netcam_connect: with no keepalive, new socket created fd 7 [2:ml2:LivingRoom] [INF] [NET] netcam_connect: re-using socket 7 since keepalive is set. [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('HTTP/1.0 200 OK') [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Server: Streamd,50C7BF0A592A') [2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Date: Wed, 28 Aug 2019 20:11:34 UTC') [2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Content-Type: multipart/x-mixed-replace;boundary=data-boundary--') [2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_type: Content-type multipart/x-mixed-replace [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Streaming camera [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Boundary string [data-boundary--] [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Pragma: no-cache') [2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Cache-Control: no-cache') [2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Content-Length: -1') [2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('Connection: close') [2:ml2:LivingRoom] [DBG] [NET] netcam_check_content_length: Content-Length -1 [2:ml2:LivingRoom] [NTC] [NET] netcam_read_first_header: Found Conn: close header ('Connection: close') [2:ml2:LivingRoom] [DBG] [NET] netcam_read_first_header: Received first header ('') in motion.conf the log_level 6 in motioneye.conf the log_level info The config in for my camera is the below (done via motioneye, but generated this config file): > stream_quality 85 threshold 1999 noise_level 31 smart_mask_speed 0 pre_capture 1 movie_codec mp4:h264_omx noise_tune on stream_maxrate 5 netcam_url http://192.168.1.123:8080/stream/video/mjpeg?resolution=VGA&&Username=admin&&Password=xxxxx stream_localhost off text_changes off movie_filename %Y-%m-%d/%H-%M-%S movie_max_time 0 lightswitch_percent 0 auto_brightness off stream_port 8084 rotate 0 stream_auth_method 0 framerate 2 emulate_motion off movie_output off picture_quality 85 snapshot_filename despeckle_filter snapshot_interval 0 minimum_motion_frames 20 stream_motion off target_dir /var/lib/motioneye/Camera4 movie_output_motion off post_capture 1 stream_authentication user: on_picture_save /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" picture_save %t %f on_movie_end /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" movie_end %t %f text_left LivingRoom picture_output_motion off picture_filename text_scale 1 locate_motion_style redbox locate_motion_mode off netcam_keepalive off movie_quality 75 picture_output off on_event_end /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" stop %t text_right %Y-%m-%d\n%T on_event_start /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" start %t camera_name LivingRoom event_gap 30 netcam_tolerant_check on mask_file It's weird that my log levels are not on debug, but I still get debug log messages... Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/motioneye#1337
No description provided.