I've been using ZM for years on Ubuntu. I recently upgraded from Ubuntu 16.10 and ZM 1.30.0 to Ubuntu 17.10, and ZM 1.30.4. ZM appears to be working capturing events: i.e. I get email notifications when there's an event. However I now see two problems in the ZM web console: The status is permanently "Stopped", and if I try and view an event, no video is displayed and I get the following errors in the log:
Code: Select all
2017-11-18 19:40:09.326619 web_js 2210 ERR getCmdResponse stream error: socket_bind( /tmp/zm/zms-127346w.sock ) failed: No such file or directory - checkStreamForErrors() ?view=event
2017-11-18 19:40:09.304777 web_php 2210 ERR socket_bind( /tmp/zm/zms-127346w.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2033
2017-11-18 19:40:08.913968 zms 10232 FAT Can't bind: No such file or directory zm_stream.cpp 337
2017-11-18 19:40:08.910721 zms 10232 ERR Unable to open sock lock file /tmp/zm/zms-127346.lock: No such file or directory zm_stream.cpp 303
Research mostly points to there being an issue with PATH_ZMS or the Apache configuration, but after reading numerous posts with similar symptoms, everything on my system appears to be set up correctly.
In the ZM web options PATH_ZMS = /zm/cgi-bin/nph-zms
This agrees with ScriptAlias in the Apache config which looks like this:
Code: Select all
# Remember to enable cgi mod (i.e. "a2enmod cgi").
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory /usr/share/zoneminder/www/api>
AllowOverride All
</Directory>
In apache CGI is enabled
Code: Select all
sudo a2enmod cgi
Module cgi already enabled
In the Apache error log I see an error like this:
Code: Select all
[Sat Nov 18 19:40:09.307438 2017] [php7:notice] [pid 2210] [client 192.168.0.1:39902] ERR [socket_bind( /tmp/zm/zms-127346w.sock ) failed: No such file or directory], referer: https://mythbox.local/zm/index.php?view=event&eid=121587&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&sort_field=StartTime&sort_asc=1&page=1
The second issue is that the ZM console constantly shows that ZM is Stopped and as a result I can't view live video. If I try to change the state to Start, the console just reloads in the Stopped state again. As previously said, in all respects apart from the console, ZM appears to be running as I see new events in the events folder and I receive notification emails. Also:
Code: Select all
sudo zmdc.pl check
running
Any help in what else I should try will be much appreciated.