1.30.3 and Web page feeds

Forum for questions and support relating to the 1.30.x releases only.
Locked
stevewrightnz1
Posts: 55
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

1.30.3 and Web page feeds

Post by stevewrightnz1 »

Hi guy's

Just successfully upgraded to 1.30.3 but have lost my camera live feeds that displayed on my web pages. An image embedded on my web page with :-

Code: Select all

 
<img src="https://example.com/zm/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=25&buffer=1000&user=******&pass=***********" alt="Front Door">
used to work really well with 1.30.2.

Any ideas where they may have gone?

Steve
stevewrightnz1
Posts: 55
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: 1.30.3 and Web page feeds

Post by stevewrightnz1 »

A bit more investigation.....
I have a zoneminder user "user" with a password of "password" and the following permissions specifically for viewing the camera streams:-

Username Language Enabled Stream Events Control Monitors Groups System Bandwidth
user en_us Yes View None None None None None High

This used to work fine for viewing the stream

The zm log now gives the following error when I view my web page:-

2017-05-03 19:55:09.077671 zms 7258 ERR Unable to authenticate user zms.cpp 225

There are 4 cameras and the log produces 40 entries when logging in from my home network so I'm guessing 10 attempts for each camera on the page?
When I log in from my phone I only get 8 so 2 per camera?

There are 4 of these statements for monitors 1-4:-

Code: Select all

 
<img src="https://example.com/zm/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=25&buffer=1000&user=user&pass=password" alt="Front Door">
NB: I can log in manually to ZoneMinder using the web-page credentials just fine.

Any ideas what I need to change to allow the user user to authenticate properly from the web?

Steve
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: 1.30.3 and Web page feeds

Post by bbunge »

Linux distro and version please
stevewrightnz1
Posts: 55
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: 1.30.3 and Web page feeds

Post by stevewrightnz1 »

uname -a = Linux zm 4.4.0-77-generic #98-Ubuntu SMP Wed Apr 26 0834:34:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Apache2 - v = Apache/4.4.18 (Ubuntu)

As far as I know its all up to date with apt-get update & apt-get dist-upgrade

Steve
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: 1.30.3 and Web page feeds

Post by fennec »

Same problem on ubuntu 16.04
Zmninja now give api problem
Ipcamviewer pro is ok

Thanks for your help
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: 1.30.3 and Web page feeds

Post by bbunge »

Working on a fix for the API issue on 16.04. Testing an install now. See the WIKI for the fix to 14.04 with ZM 1.30.3
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: 1.30.3 and Web page feeds

Post by fennec »

Fix after
all update
apt install php-apcu-bc cakephp

reload zoneminder apache2
stevewrightnz1
Posts: 55
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: 1.30.3 and Web page feeds

Post by stevewrightnz1 »

Is that worth trying to solve my issue???

Steve
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: 1.30.3 and Web page feeds

Post by rockedge »

install php-apcu and activate the module in PHP then restart Apache. This should bring the API into working condition. For embedding a stream into a web page using the method:

Code: Select all

<img src="https://example.com/zm/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=25&buffer=1000&user=******&pass=***********" alt="Front Door">
you can try to change Option->System->AUTH_RELAY to "none" and make the url like :

Code: Select all

<img src="https://example.com/zm/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=25&buffer=1000&user=****** alt="Front Door">
and see if that will work.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: 1.30.3 and Web page feeds

Post by PacoLM »

bbunge wrote: Wed May 03, 2017 8:56 pm Working on a fix for the API issue on 16.04. Testing an install now. See the WIKI for the fix to 14.04 with ZM 1.30.3
Hi Bill,

My system with Ubuntu 14.04 also broke the capacity of watching live feeds in both zone view and monitor view. I tried everything I have read, but I could not find the wiki page you referred to. Could you post the link, please?

Regards & thanks,
PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: 1.30.3 and Web page feeds

Post by rockedge »

WIKI for the fix to 14.04 with ZM 1.30.3
https://wiki.zoneminder.com/Common_Issu ... PA_version
stevewrightnz1
Posts: 55
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: 1.30.3 and Web page feeds

Post by stevewrightnz1 »

@rockedge

Second option worked thanks. The cameras are behind a hashed htaccess so AUTH_RELAY = none is probably OK for now.

Ta
Steve
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: 1.30.3 and Web page feeds

Post by PacoLM »

rockedge wrote: Fri May 05, 2017 7:07 pm WIKI for the fix to 14.04 with ZM 1.30.3
https://wiki.zoneminder.com/Common_Issu ... PA_version
Hi rockedge,

Followed the instructions and still not working. Will take a look to the logs and check what's really happenning.

Regards,
PacoLM

EDITED: Fixed changing AUTH_RELAY from plain to none. Thanks a lot!

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
stevewrightnz1
Posts: 55
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: 1.30.3 and Web page feeds

Post by stevewrightnz1 »

Hi guys
1.30.4 seems to have solved my issue. AUTH_RELAY = hashed is now working for me.
Locked