Unable to view live stream

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Rob6587
Posts: 2
Joined: Mon Jul 06, 2020 6:17 am

Unable to view live stream

Post 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.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unable to view live stream

Post by iconnor »

the PATH_TO_ZMS is almost certainly wrong.

It is typically either /zm/cgi-bin/nph-zms or /cgi-bin/npg-zms
davew
Posts: 8
Joined: Sat Jul 04, 2020 5:33 am

Re: Unable to view live stream

Post 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
Rob6587
Posts: 2
Joined: Mon Jul 06, 2020 6:17 am

Re: Unable to view live stream

Post 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
davew
Posts: 8
Joined: Sat Jul 04, 2020 5:33 am

Re: Unable to view live stream

Post 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
davew
Posts: 8
Joined: Sat Jul 04, 2020 5:33 am

Re: Unable to view live stream

Post 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.
chibi
Posts: 6
Joined: Thu Mar 05, 2020 6:32 pm

Re: Unable to view live stream

Post 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'.
Post Reply