Infinite Race: /var/run/zm/zms-307984w.sock does not exist / already in use
Posted: Fri Apr 28, 2017 12:28 pm
Issue is I'm getting infinite repeating errors in the log even though my camera is working (video shows when clicking it's name in zm gui).
I've noticed that /var/run/zm/zms-307984w.sock keeps appearing and disappearing.
www/ajax/stream.php is a place to start looking...
= Repeating Errors =
cgi is enabled and I've changed Options->PATH_ZMS=/zm/cgi-bin/nph-zms which matches ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin" in /etc/apache2/conf-enabled/zoneminder.conf (the default PATH_ZMS was /cgi-bin/nph-zms and I did NOT get video with this path)
= Install Details =
ZoneMinder 1.30.2, Ubuntu Server 16.04.2 LTS (Xenial Xerus) (issue also happens on my CentOS install).
Used the "easy" way: http://zoneminder.readthedocs.io/en/sta ... buntu.html
Hikivision DS-2CD2032-I firmware V5.2.5 build 14120, tested rscp path in vlc, works great there.
Had to use general->ffmpeg/sourcePath->rtsp after 1.5 days of failing to get general->remote/source->Remote Method->rscp to work.
If anyone knows the (EXACT Screenshot) settings to make remote/rscp work let me know. After some googling it seems the boxes in the gui have changed quite a bit between versions of zoneminder or do they vary per camera firmwares?
As a first time user of zoneminder, I wish:
1: the default config worked without changing PATH_ZMS.
2: there was a clearer error is gui when camera settings were incorrect
3: #2 would save time being confused by possibly unrelated repeating errors (subject of this post)
I've noticed that /var/run/zm/zms-307984w.sock keeps appearing and disappearing.
www/ajax/stream.php is a place to start looking...
= Repeating Errors =
= Things I have already tried that don't help =2017-04-28 06:34:45.320737 web_php 826 ERR Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. /usr/share/zoneminder/www/includes/functions.php 2031
2017-04-28 06:34:45.309201 web_js 829 ERR getStreamCmdResponse stream error: socket_bind( /var/run/zm/zms-307984w.sock ) failed: Address already in use - checkStreamForErrors() ?view=watch
2017-04-28 06:34:45.304287 web_php 829 ERR socket_bind( /var/run/zm/zms-307984w.sock ) failed: Address already in use /usr/share/zoneminder/www/includes/functions.php 2031
2017-04-28 06:34:42.317222 web_js 826 ERR getStreamCmdResponse stream error: Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. - checkStreamForErrors() ?view=watch
cgi is enabled and I've changed Options->PATH_ZMS=/zm/cgi-bin/nph-zms which matches ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin" in /etc/apache2/conf-enabled/zoneminder.conf (the default PATH_ZMS was /cgi-bin/nph-zms and I did NOT get video with this path)
= Install Details =
ZoneMinder 1.30.2, Ubuntu Server 16.04.2 LTS (Xenial Xerus) (issue also happens on my CentOS install).
Used the "easy" way: http://zoneminder.readthedocs.io/en/sta ... buntu.html
Hikivision DS-2CD2032-I firmware V5.2.5 build 14120, tested rscp path in vlc, works great there.
Had to use general->ffmpeg/sourcePath->rtsp after 1.5 days of failing to get general->remote/source->Remote Method->rscp to work.
If anyone knows the (EXACT Screenshot) settings to make remote/rscp work let me know. After some googling it seems the boxes in the gui have changed quite a bit between versions of zoneminder or do they vary per camera firmwares?
As a first time user of zoneminder, I wish:
1: the default config worked without changing PATH_ZMS.
2: there was a clearer error is gui when camera settings were incorrect
3: #2 would save time being confused by possibly unrelated repeating errors (subject of this post)