ZMNinja Video issues // version mismatch ?

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
schroejahr
Posts: 6
Joined: Wed Nov 20, 2019 8:03 pm

ZMNinja Video issues // version mismatch ?

Post by schroejahr »

Hi !
Im relativeley new to ZM Ninja Zoneminder.

My problem is, that i cant view the live view / play event videos in zmninja.
But i think the problem will maybe on my site.

- Web ist working
- ZMNinja Mac is working - but no videos (live, montage, events)
- ZMNinja IOS is working (notification with images, too) - but no videos (live, montage, events)

My Setup:
ZM 1.33.14
ZM Ninja Mac: 1.3.8.2
ZM Ninja IOS: 1.3.082

Config:
- ssl certs: installed (letsencrypt, working)
- Auth relay is set to hashed
- Api Enabled
- Legacy Api deactivated (of course tested with activated, too)
- Auth Hashs enabled

I do not see relevant console logs, but sometimes from the Component web.php:

Code: Select all

Socket /var/run/zm/zms-020940s.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.
Can someone point me into the right direction ?
Do my Versions not Match ? ZM / ZMNinja ?
Any other suggestions, maybe a link to a topic ?
I could not find help in the faq and or this forum, if i did not see something, please point me onto it.

Thank you very much !
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja Video issues // version mismatch ?

Post by asker »

If the summary if your issue is you can't see live or recorded videos on all zmNinja platforms then its highly likely your cgi-bin is wrong. Please make sure you read the FAQ and the streaming entries. Note that the wizard tries to discover URLs but may fail (even though it says "all good")

https://zmninja.readthedocs.io/en/lates ... s/FAQ.html
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
schroejahr
Posts: 6
Joined: Wed Nov 20, 2019 8:03 pm

Re: ZMNinja Video issues // version mismatch ?

Post by schroejahr »

thank you! , i will check this.
schroejahr
Posts: 6
Joined: Wed Nov 20, 2019 8:03 pm

Re: ZMNinja Video issues // version mismatch ?

Post by schroejahr »

Hi, i took a look at the api, everything looks fine.

Code: Select all

{"version":"1.33.14","apiversion":"2.0"}
- No errors in the source at version / events / monitors
- No special Characters in the camera names

i have attached a screenshot of zmninja on mac here (ios looks the same): https://1drv.ms/u/s!ArXr2mEf7Wq6gZsdZ1x ... w?e=VwMX97 ( have scrolled down half of the screen)

- ports are open the machine is set to exposed host for testing purposes. But ive also testet wit hthe intern ip, but im not sure about ssl issues wenn accessed directly.

Code: Select all

udo lsof -i -P -n | grep LISTEN
docker-pr 20505            root    4u  IPv6 690968      0t0  TCP *:9000 (LISTEN)
docker-pr 20519            root    4u  IPv6 687928      0t0  TCP *:443 (LISTEN)
docker-pr 20533            root    4u  IPv6 691032      0t0  TCP *:80 (LISTEN)
This is the host machine - in the docker container they are open as well.

I get some errors in the ZMNinja log:

Code: Select all

EventServer.js:326 WebSocket connection to 'wss://home.myDomain.com:9000/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Im not sure if it matters, but for information purposes here is my dns setup:

A Record: *.mydomain.com -> IP
CNAME: home -> myDynDns.com

Nmap:

Code: Select all

❰schroejahr❙~❱✔≻ nmap home.myDomain.com                                                                          07:19:39

Starting Nmap 6.47 ( http://nmap.org ) at 2019-11-21 07:19 CET
Nmap scan report for home.myDomain.com (95.x.x.x)
Host is up (0.050s latency).
rDNS record for 95.x.x.x: ip-95-x-x-x.hsi16.myInternetProvider.com
Not shown: 987 closed ports
PORT      STATE    SERVICE
9/tcp     filtered discard
22/tcp    open     ssh
80/tcp    open     http
135/tcp   filtered msrpc
139/tcp   filtered netbios-ssn
443/tcp   open     https
445/tcp   filtered microsoft-ds
1024/tcp  filtered kdm
5060/tcp  open     sip
9000/tcp  open     cslistener
50001/tcp filtered unknown
50002/tcp filtered iiimsf
50300/tcp filtered unknown
Zoneminder Webinterface is working as mentioned in my first post.


Any more ideas ?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja Video issues // version mismatch ?

Post by asker »

You haven't mentioned if your cgi-bin is correct as I wrote above.
Please compare the zmNinja cgi-bin url to what you see in zoneminder when you do inspect source
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
schroejahr
Posts: 6
Joined: Wed Nov 20, 2019 8:03 pm

Re: ZMNinja Video issues // version mismatch ?

Post by schroejahr »

Hi, thanks you for the reply.

I looked up the cgi bin path. In ZM Monitor view the link is:

Code: Select all

<img id="liveStream1" src="/zm/cgi-bin/nph-zms?scale=50&amp;width=640px&amp;height=360px&amp;mode=jpeg&amp;maxfps=30&amp;monitor=1&amp;connkey=428814&amp;rand=1574402604" alt="Garten" style="width:640px; height:360px;">
in ZMNinja it is set to:

Code: Select all

https://home.myDomain.com/zm/cgi-bin
i think that should match.

i switched over to wss to ws for testing and now the websocket error in the previost has gone away.
I will switch to http in general for testing purposes.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja Video issues // version mismatch ?

Post by asker »

Yup that seems right.
Are you able to see streams now? Is the problem with https?

If possible, I'd like to get a test account in your ZM system to see what is going on, if you continue having issues. You can send me an email if that is possible (assuming you are still having view issues). pliablepixels at 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
schroejahr
Posts: 6
Joined: Wed Nov 20, 2019 8:03 pm

Re: ZMNinja Video issues // version mismatch ?

Post by schroejahr »

Hi,
yes i still have these issues.

i was not at home, i will switch back to http and test today and investigate further.

If that doesnt work i will take a snap of teh container and send you the access data.
If thats the case, should i throw an sshd in the container for you ?

I appreciate your help.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja Video issues // version mismatch ?

Post by asker »

Yes, sure. I am out all of this week (back on Thu), so I may not be able to access it immediately.
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
schroejahr
Posts: 6
Joined: Wed Nov 20, 2019 8:03 pm

Re: ZMNinja Video issues // version mismatch ?

Post by schroejahr »

It works now.

If someone get the same problem:


I disabled WEB_USE_OBJECT_TAGS (Config -> Web)
And i disabled OPT_USE_AUTH (Config -> System)

After that it started working -> i have re enabled it, and ist still works. So i cant figure out a reason.
If i get more information in the next days ill post an update. But for now it works.

Thank you for your help @ asker
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMNinja Video issues // version mismatch ?

Post by asker »

glad you got it working
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
Post Reply