[SOLVED]Multiserver setup generating errors when viewing saved events
Posted: Tue Mar 12, 2024 5:58 pm
I'm running ZoneMinder 1.36.33 from the Debian Bullseye repositories and I have two servers set up. One is running the database and some cameras while the other provides storage and runs some cameras. I'll refer to them as A and B.
Here is the scenario:
A is database and runs cameras and is the main one being logged into to view streams and events.
B is storage and runs cameras and isn't meant for users to log into.
Any time I want to view saved events using the webui on A from cameras run on B I get errors like this:
getCmdResponse stream error: Socket /var/run/zm/zms-xxxxxx.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/lat ... window-etc for more information. - checkStreamForErrors()
I get the same problem if I attempt to use the webui from B to view events from cameras managed by A.
If I'm viewing cameras managed by A using the webui from A it is completely fine and if I'm using webui on B to view cameras managed by B it is fine.
It seems to me that the zms-*.sock file under /var/run/zm/ is being produced on the server managing the cameras and those files might not be accessible to the other servers since they are local only.
Any ideas on how to resolve this problem?
Here is the scenario:
A is database and runs cameras and is the main one being logged into to view streams and events.
B is storage and runs cameras and isn't meant for users to log into.
Any time I want to view saved events using the webui on A from cameras run on B I get errors like this:
getCmdResponse stream error: Socket /var/run/zm/zms-xxxxxx.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/lat ... window-etc for more information. - checkStreamForErrors()
I get the same problem if I attempt to use the webui from B to view events from cameras managed by A.
If I'm viewing cameras managed by A using the webui from A it is completely fine and if I'm using webui on B to view cameras managed by B it is fine.
It seems to me that the zms-*.sock file under /var/run/zm/ is being produced on the server managing the cameras and those files might not be accessible to the other servers since they are local only.
Any ideas on how to resolve this problem?