This is the weirdest problem I have ever ever faced! I am using Raspberry PI (running Raspbian Wheezy) with Logitech C310 webcam for home monitoring, with motion detection and recording enabled. It records videos to a hard-disk attached to raspberry. Its more than a month I have this setup up and running 24 hours.
Things were running flawlessly until a week before. Since last 6 days I am seeing a very strange behavior. The motion daemon kills itself every evening between 6pm to 6:30pm and if I restart it it kills itself between 7am to 7:30am in the morning! I am pulling my hair to fix this and find out why this happens only during a certain time period in morning and evening?
- Is it because of some change in daylight the camera is unable to handle?
- Is it because change in temperature?
- How was it working fine until a week before and now suddenly showing this issue?
- Is there an intrusion? Does not look like as I checked most logs/history and basic sanity.
- Some software update caused this?
- What should be my next step to debug this?
The syslog around the time when it kills itself are -
Feb 27 18:14:20 raspberrypi motion: [1] 3 length=614400
Feb 27 18:14:20 raspberrypi motion: [1] Resizing pre_capture buffer to 1 items
Feb 27 18:14:21 raspberrypi motion: [1] Started stream webcam server in port XXXX
Feb 27 18:14:25 raspberrypi motion: [1] Resizing pre_capture buffer to 2 items
Feb 27 18:15:38 raspberrypi motion: [0] Thread 1 - Watchdog timeout, trying to do a graceful restart
Feb 27 18:15:57 raspberrypi motion: [1] Calling vid_close() from motion_cleanup
Feb 27 18:15:57 raspberrypi motion: [1] Closing video device /dev/video0
Feb 27 18:15:57 raspberrypi motion: [0] Motion thread 1 restart
Feb 27 18:15:57 raspberrypi motion: [1] Thread 1 started
Feb 27 18:15:57 raspberrypi motion: [1] cap.driver: "uvcvideo"
Feb 27 18:15:57 raspberrypi motion: [1] cap.card: "UVC Camera (046d:081b)"
Feb 27 18:15:57 raspberrypi motion: [1] cap.bus_info: "usb-bcm2708_usb-1.2.1"
Feb 27 18:15:57 raspberrypi motion: [1] cap.capabilities=0x84000001
Feb 27 18:15:57 raspberrypi motion: [1] - VIDEO_CAPTURE
Feb 27 18:15:57 raspberrypi motion: [1] - STREAMING
Feb 27 18:15:57 raspberrypi motion: [1] Config palette index 8 (YU12) doesn't work.
Feb 27 18:15:57 raspberrypi motion: [1] Supported palettes:
Feb 27 18:15:57 raspberrypi motion: [1] 0: YUYV (YUV 4:2:2 (YUYV))
Feb 27 18:15:57 raspberrypi motion: [1] 1: MJPG (MJPEG)
Feb 27 18:15:57 raspberrypi motion: [1] Selected palette YUYV
Feb 27 18:15:57 raspberrypi motion: [1] Test palette YUYV (640x480)
Feb 27 18:15:57 raspberrypi motion: [1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000008
Feb 27 18:15:57 raspberrypi motion: [1] found control 0x00980900, "Brightness", range 0,255
Feb 27 18:15:57 raspberrypi motion: [1] #011"Brightness", default -8193, current 128
Feb 27 18:15:57 raspberrypi motion: [1] found control 0x00980901, "Contrast", range 0,255
Feb 27 18:15:57 raspberrypi motion: [1] #011"Contrast", default 57343, current 32
Feb 27 18:15:57 raspberrypi motion: [1] found control 0x00980902, "Saturation", range 0,255
Feb 27 18:15:57 raspberrypi motion: [1] #011"Saturation", default 57343, current 32
Feb 27 18:15:57 raspberrypi motion: [1] found control 0x00980913, "Gain", range 0,255
Feb 27 18:15:57 raspberrypi motion: [1] #011"Gain", default 57343, current 64
Feb 27 18:15:57 raspberrypi motion: [1] mmap information:
Feb 27 18:15:57 raspberrypi motion: [1] frames=4
Feb 27 18:15:57 raspberrypi motion: [1] 0 length=614400
Feb 27 18:15:57 raspberrypi motion: [1] 1 length=614400
Feb 27 18:15:57 raspberrypi motion: [1] 2 length=614400
Feb 27 18:15:57 raspberrypi motion: [1] 3 length=614400
Feb 27 18:15:57 raspberrypi motion: [1] Resizing pre_capture buffer to 1 items
Feb 27 18:16:05 raspberrypi motion: [1] Started stream webcam server in port XXXX
Feb 27 18:16:05 raspberrypi motion: [1] Resizing pre_capture buffer to 2 items
Feb 27 18:36:47 raspberrypi motion: [0] Thread 1 - Watchdog timeout, trying to do a graceful restart
Feb 27 18:37:47 raspberrypi motion: [0] Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
Feb 27 18:37:47 raspberrypi motion: [0] Calling vid_close() from motion_cleanup
Feb 27 18:37:47 raspberrypi motion: [0] Closing video device /dev/video0