ZMNinja-Red question marks

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
kkrofft
Posts: 41
Joined: Sun Mar 16, 2014 9:55 pm

ZMNinja-Red question marks

Post by kkrofft »

Working with desktop version prior to purchase of mobile apps.

Everything else appears to work correctly but I can't see monitor output or review events. Just get the dreaded red question marks.
cgi-bin path is https://<server>/zm/cgi-bin/zm/nph-zms which matches Zoneminder's. Log file attached.
zmNinja-logs.zip
(1.53 KiB) Downloaded 310 times
Can anyone provide a list of prerequisites needed for the streams to work?
We know about the cgi-bin path but what other packages/versions are needed?
What config edits are required?
What files need specific permissions?
Thanks,
KK
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja-Red question marks

Post by asker »

kkrofft wrote:Working with desktop version prior to purchase of mobile apps.

Everything else appears to work correctly but I can't see monitor output or review events. Just get the dreaded red question marks.
cgi-bin path is https://<server>/zm/cgi-bin/zm/nph-zms which matches Zoneminder's. Log file attached.
zmNinja-logs.zip
Can anyone provide a list of prerequisites needed for the streams to work?
We know about the cgi-bin path but what other packages/versions are needed?
What config edits are required?
What files need specific permissions?
Thanks,
KK
It needs to be https://<server>/zm/cgi-bin/zm/ (did you try to use the wizard?).

Pre-requisites:
The user you are trying to configure must have view permissions to monitor streams to view the montage.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
kkrofft
Posts: 41
Joined: Sun Mar 16, 2014 9:55 pm

Re: ZMNinja-Red question marks

Post by kkrofft »

With or without the nph-zm the result is the same. I am using basic auth with users defined in apache. Current testing is within my home network
where it is configured as no auth required. So any family member can access Zoneminder console from any machine in the house. We can all do that without issue.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja-Red question marks

Post by asker »

kkrofft wrote:With or without the nph-zm the result is the same. I am using basic auth with users defined in apache. Current testing is within my home network
where it is configured as no auth required. So any family member can access Zoneminder console from any machine in the house. We can all do that without issue.
https://github.com/pliablepixels/zmNinja/wiki/FAQ

There are a few reasons why ? marks show up:

a) Your cgi-bin path is incorrect in zmNinja
b) You are missing some libraries in ZM for image scaling (ZM doesn't always use it, but zmNinja does to save bandwidth)

IF you are absolutely sure your path is right (and which is why I recommend you use the wizard, not manual entry), then while zmNinja is showing the montage, check your apache error logs to see if its throwing errors.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
kkrofft
Posts: 41
Joined: Sun Mar 16, 2014 9:55 pm

Re: ZMNinja-Red question marks

Post by kkrofft »

Asker -

I used the wizard on initial setup. Only manually modified after it did not work.

The ssl error log shows "File does not exist: /usr/share/zoneminder/www/cgi-bin

The zoneminder.conf file has:

Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
SSLRequireSSL
Options -Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
# The code unfortunately uses short tags in many places
php_value short_open_tag 1

</Directory>

ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
SSLRequireSSL
AllowOverride All
Options ExecCGI FollowSymLinks
Order allow,deny
Allow from all
</Directory>

<Directory "/usr/share/zoneminder/www/api">
#SSLRequireSSL
AllowOverride All
</Directory>

This looks OK to me but I may not quite have the syntax down.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja-Red question marks

Post by asker »

The ssl error log shows "File does not exist: /usr/share/zoneminder/www/cgi-bin
I'm confused. Are you saying you are able to view everything correctly in web console but can't in zmninja with this error?
Its easiest if you can give me temporary access to a limited account with maybe one camera so I can tell you exactly what to set in zmNinja. Hard to guess
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
kkrofft
Posts: 41
Joined: Sun Mar 16, 2014 9:55 pm

Re: ZMNinja-Red question marks

Post by kkrofft »

The ssl error log shows "File does not exist: /usr/share/zoneminder/www/cgi-bin
I'm confused. Are you saying you are able to view everything correctly in web console but can't in zmninja with this error?
Its easiest if you can give me temporary access to a limited account with maybe one camera so I can tell you exactly what to set in zmNinja. Hard to guess. With the error above, your ZM Web console should also not be working when it comes to showing events and live view
Yes. I can access all normal ZM Console features in web browsers. Inside the home network and via DDNS.
I'll see what I can do to give you access and PM you the details.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja-Red question marks

Post by asker »

sounds good - please email to pliablepixels@gmail
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja-Red question marks

Post by asker »

problem resolved, I hope - it was a cgi-bin path setting issue
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
kkrofft
Posts: 41
Joined: Sun Mar 16, 2014 9:55 pm

(Resolved) - Re: ZMNinja-Red question marks

Post by kkrofft »

Thanks asker!

In my case we found that the proper cgi-bin path was https://<server>/cgi-bin/zm.
.wm.
Posts: 5
Joined: Mon Jan 09, 2017 2:53 pm

Re: ZMNinja-Red question marks

Post by .wm. »

Unfortunately I have the same problem (on v1.30.0).
One might think it should be easy to solve because it worked beautifully already, but no.
I converted my zoneminder to two servers setup, and zmNinja showed me red question marks immediately.
Of course it did it at the end, when finally I got it right. Earlier when the two server zoneminder worked only partially and there were problems, zmNinja had none.

I have two servers:

seen from outside as
zm1.domain:66/zm
zm2.domain:67/zm

inside
zm1.private_domain:66/zm
zm2.private_domain:67/zm

in /etc/zm/zm.conf there are ZM_SERVER_HOST=zm1 and ZM_SERVER_HOST=zm2 respectively, both convert to proper (private) IPs.

And everything works: timeline, events - except montage.Montage doesn't work even inside, using the private addresses. Desktop version or mobile apps - no difference.

The paths are correct, I even tried /cgi-bin/zm, zmNinja said it was wrong.

Thanks for any tips...
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja-Red question marks

Post by asker »

It's hard to help without logs, but lets make sure I understand what your issue is
One might think it should be easy to solve because it worked beautifully already, but no.
I converted my zoneminder to two servers setup, and zmNinja showed me red question marks immediately.
So zmNinja worked before, but after you converted to your 2 server setup it doesn't?
And everything works: timeline, events - except montage.Montage doesn't work even inside, using the private addresses. Desktop version or mobile apps - no difference.
1. So images show up correctly in zmNinja for timeline and events ?
2. How about event montage?
3. How above live monitor streaming?
4. Does Montage work in ZoneMinder console ? (not zmNinja)

Finally,
look at your apache error and access logs when you are in zmNinja montage - what do you see?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
.wm.
Posts: 5
Joined: Mon Jan 09, 2017 2:53 pm

Re: ZMNinja-Red question marks

Post by .wm. »

Thanks for the fast response :)

Yes, the conversion did it.

timeline works, with pictures, with videos.
event montage works perfectly, showing videos and timelines.
montage, live streaming: red marks.
zoneminder (in Chromium) works perfectly, including montage and live streaming.

in logs many:

ERR [socket_sendto( /var/run/zm/zms-555592s.sock ) failed: No such file or directory]
WAR [file:// is not found in servers list.]

it seems only zmNinja generates them, ZoneMinder doesn't.
event.jpg
event.jpg (103.93 KiB) Viewed 8626 times
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja-Red question marks

Post by asker »

can you come onto the Zoneminder IRC forum - will be easier to debug and chat in real time
irc.freenode.net #zoneminder

my handle is asker
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
.wm.
Posts: 5
Joined: Mon Jan 09, 2017 2:53 pm

Re: ZMNinja-Red question marks

Post by .wm. »

Thanks, I will do that :) .
Unfortunately yesterday I was distracted by some boring nonsense.
Post Reply