Motion was running stabily, weeks at a time without a hickup,
now the pogopig is running as a bridge, it is unstable, connecting to the port returns one frame and it falls over
.
it is started as a service and systemctl -l status motion.service returns
$this->bbcode_second_pass_code('', '>
systemctl -l status motion.service
● motion.service - motion camera
Loaded: loaded (/etc/systemd/system/motion.service; enabled)
Active: failed (Result: signal) since Fri 2014-05-23 10:22:31 BST; 22min ago
Process: 340 ExecStart=/usr/bin/motion (code=exited, status=0/SUCCESS)
Process: 334 ExecStartPre=/usr/bin/fswebcam -r 320x240 -d /dev/video0 -v /dev/null (code=exited, status=0/SUCCESS)
Main PID: 342 (code=killed, signal=SEGV)
May 23 10:20:35 Pogopig motion[342]: [1] 2 length=614400
May 23 10:20:35 Pogopig motion[342]: [1] 3 length=614400
May 23 10:20:35 Pogopig motion[342]: [1] Resizing pre_capture buffer to 1 items
May 23 10:21:00 Pogopig motion[342]: [1] Started stream webcam server in port 7661
May 23 10:21:30 Pogopig motion[342]: [0] Thread 1 - Watchdog timeout, trying to do a graceful restart
May 23 10:22:30 Pogopig motion[342]: [0] Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
May 23 10:22:30 Pogopig motion[342]: [0] Calling vid_close() from motion_cleanup
May 23 10:22:30 Pogopig motion[342]: [0] Closing video device /dev/video0
May 23 10:22:31 Pogopig systemd[1]: motion.service: main process exited, code=killed, status=11/SEGV
May 23 10:22:31 Pogopig systemd[1]: Unit motion.service entered failed state.
May 23 10:22:31 Pogopig systemd-coredump[358]: Process 342 (motion) dumped core.
')
rebooted a few times and tried it from the nearest computer to the pogopig,
Again you get one frame, then after a while the reported connection gets reset by the server.
again running :-
$this->bbcode_second_pass_code('', '
systemctl -l status motion.service
● motion.service - motion camera
Loaded: loaded (/etc/systemd/system/motion.service; enabled)
Active: active (running) since Fri 2014-05-23 11:05:19 BST; 3min 19s ago
Process: 398 ExecStart=/usr/bin/motion (code=exited, status=0/SUCCESS)
Process: 392 ExecStartPre=/usr/bin/fswebcam -r 320x240 -d /dev/video0 -v /dev/null (code=exited, status=0/SUCCESS)
Main PID: 400 (motion)
CGroup: /system.slice/motion.service
└─400 /usr/bin/motion
May 23 11:07:17 Pogopig motion[400]: [1] found control 0x00980913, "Gain", range 0,255
May 23 11:07:17 Pogopig motion[400]: [1] "Gain", default 0, current 16
May 23 11:07:17 Pogopig motion[400]: [1] mmap information:
May 23 11:07:17 Pogopig motion[400]: [1] frames=4
May 23 11:07:17 Pogopig motion[400]: [1] 0 length=614400
May 23 11:07:17 Pogopig motion[400]: [1] 1 length=614400
May 23 11:07:17 Pogopig motion[400]: [1] 2 length=614400
May 23 11:07:17 Pogopig motion[400]: [1] 3 length=614400
May 23 11:07:17 Pogopig motion[400]: [1] Resizing pre_capture buffer to 1 items
May 23 11:07:39 Pogopig motion[400]: [1] Started stream webcam server in port 7661
')
I know it s just one frame as its got the real time clock in the bottom corner
any ideas where to look to see why it looks like the webstream server is stopping and why motion keeps crashing ?
TIA