I am at a loss here.
Does ZM use different socks paths for motion detection and forced alarms? I am troubleshooting no alarms recorded. I have forced an alarm and I can see it recorded frames as expected but just before it I can see in the logs some errors. I am trying to narrow down from logs differences in forced alarms and ones from detected motion:
After forcing the alarm:
Code: Select all
2022-01-04 12:06:19 web_php 87761 ERR Socket /var/run/zm/zms-371320s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early
2022-01-04 12:06:17 zms_m2 101753 WAR Unable to send stream frame: Broken pipe
2022-01-04 12:06:12 zmc_m2 101902 ERR Error writing trailer Error number 200 occurred
2022-01-04 12:06:00 zmc_m2 101626 INF Front: 10931 - Gone into alarm state PreAlarmCount: 0 > AlarmFrameCount:1 Cause:Forced Web
Just before forcing it and I'm wondering if this is a sign why no motion is recorded:
Code: Select all
2022-01-04 12:05:57 web_php 2253 ERR Socket /var/run/zm/zms-689409s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.
2022-01-04 12:05:55 zms_m2 101673 WAR Unable to send stream frame: Broken pipe
I am most confused as the logs suggest the same path for both. The .sock files do exist. Where do I need to look for more clues please? My config settings:
/usr/local/etc/zoneminder/01-system-paths.conf
/usr/local/etc/nginx/nginx.conf
Code: Select all
location /cgi-bin/nph-zms {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
} location /zm {
alias /usr/local/www/zoneminder;
location ~ \.php$ {
if (!-f $request_filename) {return 404; }
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php-fpm.sock;
/usr/local/etc/php-fpm.conf
Code: Select all
listen = /var/run/php-fpm.sock
listen.owner = www
listen.group = www
listen.mode = 0660
env[PATH] = /usr/local/bin:/usr/bin:/bin
I'm watching for clues. I just had a lot of people in front of a camera. An alarmed event should have occurred. There is only one zone like the default, all area, with preset best.
Front UI had no alarm recorded. Going to that monitor by selecting from there showed the state as idle. Going to the Logs it shows State: alarm. First clue that is perhaps trying to record alarms. But loads of errors. These seems to be the relevant:
Code: Select all
2022-01-04 13:36:31 web_php 67742 ERR Socket /var/run/zm/zms-691989s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.
2022-01-04 13:36:31 web_php 67743 ERR Socket /var/run/zm/zms-691989s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.
2022-01-04 13:36:31 web_php 76382 ERR Socket /var/run/zm/zms-691989s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.
2022-01-04 13:36:29 web_php 76349 ERR socket_bind( /var/run/zm/zms-691989w.sock ) failed: Address already in use
2022-01-04 13:36:29 web_php 76349 WAR sock file /var/run/zm/zms-691989w.sock already exists?! Is someone else talking to zms?
2022-01-04 13:36:29 web_php 73123 ERR Socket /var/run/zm/zms-691989s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early
2022-01-04 13:36:29 web_php 67742 ERR socket_bind( /var/run/zm/zms-691989w.sock ) failed: Address already in use
2022-01-04 13:36:28 web_php 67742 WAR sock file /var/run/zm/zms-691989w.sock already exists?! Is someone else talking to zms?
2022-01-04 13:36:11 zms_m1 101663 WAR Unable to send stream frame: Broken pipe
2022-01-04 13:36:11 zms_m1 101774 WAR Unable to send stream frame: Broken pipe
2022-01-04 13:35:56 zms_m1 101663 WAR Unable to send stream frame: Broken pipe
2022-01-04 13:35:46 zms_m1 101648 WAR Unable to send stream frame: Broken pipe
Please help with what to look at. Live view and thumbnails work fine. System rebooted earlier today .