Socket /var/lib/zoneminder/sock/zms-482603s.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. 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/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.

There's a lot packed into that log message. So let's start from the top.

...either zms did not run, or zms exited early.

To check this I replaced the zms and nph-zms binaries will shell scripts that logged to /tmp/{nph-,}zms.log every time they were invoked. After attempting to view the console I didn't see any entries in those files. So it seems zms is not being invoked.

Please check your zms logs

I went to the Options >> Logging tab and turned on debug logging for the target "_zms". Nothing of interest has appeared in /var/log/zoneminder/. For a short while I had debug logging turned on for the web interface as well but it didn't provide any additional information so I turned it off. It at least confirmed that the log directory is writable.

I installed zoneminder via the zoneminder-git AUR package. The PKGBUILD is pretty broken, so I did make some minor adjustments to update a dependency and set some paths. Maybe this is where I went wrong. Prior to fixing the configuration directory path in the PKGBUILD I got errors in Apache's error_log saying there were undefined constants. The constants aligned with the ones in /etc/conf.d/*, which I fixed to be /etc/zm/conf.d/*. Those have all gone away now so I believe I have that setup correctly.

I switched the ZMS_PATH to be pointing to just 'zms' instead of 'nph-zms' and restarted both Apache and ZM, to no avail. No new entries in the /tmp/{nph-,}zms files, suggesting they're not even being invoked.

Last edited by vitus on Thu Sep 12, 2019 3:25 am, edited 1 time in total.

Which matches the dump from the ZM Config table and what I've manually configured in the camera. I've tried configuring the camera at 1FPS, 15 FPS, and 24 FPS to see if that helped ZM at all. Even at 1FPS the same thing happens, so I don't think it's a "keeping up with the analysis" issue.

can you see snapshots of the camera stream? So to say stills from the camera? I notice you do mention it...what happens if you look at a camera's zone settings? can you see anything? are all the permissions correct? can you reach the /cgi-bin via URL in the browser?

Both the Monitor live view and the zone view do not show an image. The live view refreshes the page once a second, each time producing the error from the OP in the logs.

I had not checked the access to /cgi-bin yet, and that looks like it's the issue. The root directory listing in Apache shows three directories, /zonemanager, /recordings (where I've set up storage) and /cgi-bin. I can access the first two just fine. The /cgi-bin gives me a 403 error.

That AllowOverride None is preventing the mixin from taking effect. I removed that whole block and now it's working fine. Not sure if this is something worth opening a bug report about. Either ZM needs to document this and the user has to modify the Apache configuration manually or ZM needs to provide whatever authentication Apache is requesting.