Page 1 of 1

Unable to view live stream

Posted: Mon Jul 06, 2020 6:24 am
by Rob6587
Hi,

I'm new in Zoneminder.
I install Zoneminder official plugin on FreeNas 11.3.
But I have a problem. I can't view stream of my camera. I juste see a broken picture.

Here is an error message i have
"getStreamCmdResponse stream error: Socket /var/run/zm/zms-244637s.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() "

It works on the zmNinja app

Can someone help me?

I read some other post but nothing help me.

I change the PATH_TO_ZMS to /zm/cgi-bin-zm/nph-zms.

Thank you for help.

Re: Unable to view live stream

Posted: Tue Jul 07, 2020 12:58 am
by iconnor
the PATH_TO_ZMS is almost certainly wrong.

It is typically either /zm/cgi-bin/nph-zms or /cgi-bin/npg-zms

Re: Unable to view live stream

Posted: Tue Jul 07, 2020 2:03 am
by davew
I have the same problem. my details are in my post...

viewtopic.php?f=40&t=29689#p116310

I set the path to /etc/zm/conf.d/01-system-paths.conf

Code: Select all

# ZoneMinder url path to the zms streaming server
#ZM_PATH_ZMS=/zm/cgi-bin/nph-zms
ZM_PATH_ZMS=/cgi-bin/nph-zms
and it doesn't work.

I think it's a problem with my nginx location block and how it declares location for cgi-bin and api

Re: Unable to view live stream

Posted: Tue Jul 07, 2020 10:17 am
by Rob6587
Finally live view works but I still have the same error message. BUT it works 😁

I change PATH_TO_ZMS to /cgi-bin/nph-zms
And I run this command
adduser www-data video

Re: Unable to view live stream

Posted: Sun Sep 13, 2020 1:15 am
by davew
can you elaborate on the adduser

www-data video

Wont't that add 2 users instead of one

1. www-data
2. video

Re: Unable to view live stream

Posted: Sun Sep 13, 2020 2:04 am
by davew
Rob6587 wrote: Tue Jul 07, 2020 10:17 am Finally live view works but I still have the same error message. BUT it works 😁

I change PATH_TO_ZMS to /cgi-bin/nph-zms
And I run this command
adduser www-data video
Are you sure it's PATH_TO_ZMS

The defaults I've read all had this at ZM_PATH_ZMS

please check your syntax.

Re: Unable to view live stream

Posted: Fri Dec 22, 2023 7:50 pm
by chibi
davew wrote: Sun Sep 13, 2020 1:15 am can you elaborate on the adduser www-data video
Wont't that add 2 users instead of one
1. www-data
2. video
FYI: that format is adduser [USER] [GROUP]
If you try it twice, it gives the helpful error message below.
The user `www-data' is already a member of `video'.