iconnor wrote: ↑Sat Apr 27, 2019 2:55 pm
When viewing a .mp4 we just send the .mp4 to the browser. WHen viewing jpegs we use the cgi program zms. If your cgi paths are not correct in apache config, then zms doesn't get run and you don't get to view the event. This is literally reported every day here. Which is why we have such a long detailed error message which every still doesn't read.
There should be a line in your apache config for zoneminder /etc/apache2/conf-enabled/zoneminder.conf ? That says
ScriptAlias "/zm/cgi-bin/" "/usr/lib/zoneminder/cgi-bin/"
If you are not using the /zm at the end of the url you can add another
ScriptAlias /cgi-bin /usr/lib/zoneminder/cgi-bin/
Hello,
I am experiencing the similar experience from this forum after migrating from ZM 1.29 on Debian 8 to ZM 1.32 on Debian 10 set on the ARM board Orange Pi plus together with the H264DVR ONVIF camera. I've also dumped 1,29 database and moved it's content together with the events jpeg's to the new setup.
I installed the ZM 1.32 several times both from the Multimedia repository as well as the Debian's SID repository.
After checking configuration files and reinstalling several times, I understand, that the issue is related to ZM.
When I choose the event, populated with jpeg's, the ZMS error occurs :
Aug 29 22:34:22 opiplus web_php[2733]: ERR [Socket /run/zm/zms-004826s.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.
The error message is quite contradictory, as the "/run/zm/zms-004826s.sock" does exist :
# ls -al /run/zm/
total 8
drwxr-xr-x 2 www-data www-data 380 Aug 29 22:34 .
drwxr-xr-x 23 root root 720 Aug 29 19:13 ..
-rw-r--r-- 1 www-data www-data 4 Aug 29 19:14 zm.pid
-rw-r--r-- 1 www-data www-data 4 Aug 29 22:05 zmaudit.pid
srwxr-xr-x 1 www-data www-data 0 Aug 29 19:14 zmdc.sock
-rw------- 1 www-data www-data 0 Aug 29 22:34 zms-004826.lock
srwxr-xr-x 1 www-data www-data 0 Aug 29 22:34 zms-004826s.sock
I can't see jpeg's streaming from zm's console.
- jpegs.replay.err.console.1.jpg (92.12 KiB) Viewed 9078 times
If I click the stop button and play afterwards, the errors produce:
Aug 29 22:39:51 opiplus web_php[1660]: ERR [socket_sendto( /run/zm/zms-004826s.sock ) failed: Connection refused]
Aug 29 22:39:51 opiplus web_php[1660]: ERR [getCmdResponse stream error: socket_sendto( /run/zm/zms-004826s.sock ) failed: Connection refused - checkStreamForErrors()]
Aug 29 22:39:52 opiplus web_php[1660]: ERR [socket_sendto( /run/zm/zms-004826s.sock ) failed: Connection refused]
Aug 29 22:39:52 opiplus web_php[1660]: ERR [getCmdResponse stream error: socket_sendto( /run/zm/zms-004826s.sock ) failed: Connection refused - checkStreamForErrors()]
On the contrary, if I click the "STILLS" menu and move the slide bar, than the individual jpeg images appear.
I can also change the camera settings in the storage tab, disabling the "Save JPEGs" and setting "Video Writer" to "H264 camera passthroug". The events are saved as "xxxx-video.mp4". The events saved as mp4 could be viewed as normal.
Anyway, for compatibility with the archive under ZM 1.29, I am seeking to stream the jpeg-saved events naturally, without converting them to mp4.
Is there a bug fix, or a missing library to achieve this task?
Thanks in advance.