Page 1 of 1

Playback issues

Posted: Tue Apr 26, 2022 6:16 am
by MatzR
Hi,

I encountering a lot of issues with playing recorded events.
Especially since upgrading to 1.36 this became very unstable for me. I am running ZM 1.36.14 on a Debian 11 bullseye machine (amongst other services on that server). Live view works without any problem. But when opening an event some play back without any issues and for some I am not getting shown one frame.
The logfile shows errors like these:

Code: Select all

"2022-04-26 08:08:24",web_js,,1060452,ERR,"getCmdResponse stream error: Socket /run/zm/zms-384631s.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. - checkStreamForErrors()",?view=event&eid=201596&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+day&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5B,'-
"2022-04-26 08:08:24",web_php,,1060452,ERR,"Socket /run/zm/zms-384631s.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.",/usr/share/zoneminder/www/includes/functions.php,1904
"2022-04-26 08:08:19",web_js,,1060452,ERR,"getCmdResponse stream error: Socket /run/zm/zms-384631s.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. - checkStreamForErrors()",?view=event&eid=201596&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+day&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5B,'-
"2022-04-26 08:08:19",web_php,,1060452,ERR,"Socket /run/zm/zms-384631s.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.",/usr/share/zoneminder/www/includes/functions.php,1904
"2022-04-26 08:07:59",zmc_m3,,1026944,INF,"Atrium: 4409000 - Analysing at 19.99 fps from 4408984 - 4407984=1000 / 1650953279.963573 - 1650953229.944773 = 50.018800",zm_monitor.cpp,1715
But sometimes I can playback an event without any issue.
Please guide me where to dig in as this is really frustrating, especially after using ZM for several years now...

Re: Playback issues

Posted: Wed Apr 27, 2022 1:14 pm
by MatzR
Maybe this helps?

I see this error in my apache2/error.log

Code: Select all

[Wed Apr 27 14:45:19.780501 2022] [cgi:warn] [pid 1137627] [client 10.0.1.50:57243] AH01220: Timeout waiting for output from CGI script /usr/lib/zoneminder/cgi-bin/zms, referer: http://10.0.1.10/zm/index.php?view=event&eid=202781&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+day&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=2&filter%5BQuery%5D%5Bsort_asc%5D=0&filter%5BQuery%5D%5Bsort_field%5D=StartDateTime&filter%5BQuery%5D%5Blimit%5D=0&sort_field=StartDateTime&sort_asc=0&page=1

Re: Playback issues

Posted: Sun May 15, 2022 5:10 pm
by Pfotzer
I had this problem.

I installed via apt-get install.

All my path settings in the config files were OK as-installed, permissions on cgi-related directories all set correctly.

I followed the instructions on easy-way install in the docs, at this link https://zoneminder.readthedocs.io/en/la ... ebian.html

The only thing missing that I had to do was to add this line to the "Step 7: Tweak Apache configuration" section:

a2enmod cgi

Which enables the cgi module on Apache.

All good after that.

Really nice product, thanks to the development team and all the folks supporting it. Well done!!