Zoneminder crashing and taking down apache on signal loss
Posted: Fri Oct 16, 2015 1:52 am
Hi, after a lot of struggle I was able to get zoneminder working on Gentoo Linux. The biggest problem I am facing at the moment is that for some strange reason when the signal is lost to the camera (whether it is due to use of the microwave, the cable getting unpluged, having to reset the connection or the camera, etc) most of the time the single monitor stream of the camera turns into a blue screen and then never recovers on its own.
Worse yet I have to issue "systemctl restart apache2" and "systemctl restart zoneminder" as everything is pretty much hosed. As you can imagine this isn't very reliable and is a pretty big annoyance. Does anyone have any suggestions or things to check? Of course this is using WiFi and going ethernet isn't an option unfortunately (and even then I often reset the router for work reasons).
Note that I am not seeing anything in the apache2 logs. I do however see in zoneminder it appears to keep trying to find a socket which does not exist.
Here is some log output (I believe) from when this occured:
Also memory and cpu usage seems fine when this occurs.
Thank you.
Worse yet I have to issue "systemctl restart apache2" and "systemctl restart zoneminder" as everything is pretty much hosed. As you can imagine this isn't very reliable and is a pretty big annoyance. Does anyone have any suggestions or things to check? Of course this is using WiFi and going ethernet isn't an option unfortunately (and even then I often reset the router for work reasons).
Note that I am not seeing anything in the apache2 logs. I do however see in zoneminder it appears to keep trying to find a socket which does not exist.
Here is some log output (I believe) from when this occured:
Code: Select all
2015-10-15 21:23:48.099230 zmpkg 13859 INF Command: start zmpkg.pl
2015-10-15 21:17:24.282643 web_php 13246 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:17:14.196413 web_php 13655 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:17:04.122844 web_php 13244 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:16:52.839320 web_php 13244 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:16:42.762830 web_php 13244 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:16:32.683320 web_php 13655 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:16:21.017978 web_php 13246 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:16:10.870200 web_php 13244 ERR socket_sendto( /run/zm/zms-741615s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2330
2015-10-15 21:16:02.757560 zmdc 13313 INF 'zmc -m 1' exited normally zmdc.pl
2015-10-15 21:16:02.657630 zmdc 13313 INF 'zmupdate.pl -c' exited, signal 14 zmdc.pl
2015-10-15 21:16:02.630049 zmc_m1 13651 INF Terminating Logger /var/tmp/portage/www-misc/zoneminder-1.28.1/work/ZoneMinder-1.28.1/src/zm_logger.cpp 235
2015-10-15 21:16:02.549270 zmdc 13313 INF 'zma -m 1' exited normally zmdc.pl
2015-10-15 21:16:02.490885 zmc_m1 13651 ERR Unable to get response /var/tmp/portage/www-misc/zoneminder-1.28.1/work/ZoneMinder-1.28.1/src/zm_remote_camera_http.cpp 1176
2015-10-15 21:16:02.432690 zmdc 13313 INF 'zmwatch.pl ' exited, signal 14 zmdc.pl
2015-10-15 21:16:02.374186 zmc_m1 13651 ERR Unable to read content /var/tmp/portage/www-misc/zoneminder-1.28.1/work/ZoneMinder-1.28.1/src/zm_remote_camera_http.cpp 1053
Thank you.