zmNinja windows client blank live feeds

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
token
Posts: 5
Joined: Sat Apr 25, 2020 10:26 pm

zmNinja windows client blank live feeds

Post by token »

Hello, in preparation to get the app I followed guidance to test-drive via the windows.exe first.

ZM setup:
FreeNAS: 11.3-U3.1
ZomeMinder plug-in: v1.34.9

I get through the wizard and the Montage screen is black, as well as live feeds.

The Events list populates with the thumbnails/pictures of the event, but playing them is black/blank.

Is there a preferential way of posting the log? Of interest earlier in startup up is:

Hmm I found an error {"result":"Error","message":"Socket /var/run/zm/zms-229072s.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."}

But logs later after start-up look pretty good, example:

Jul 17, 2020 05:43:58 PM DEBUG TimelineCtrl/drawGraph: graphLoaded is false
Jul 17, 2020 05:43:58 PM INFO Graph items to draw is 2000
Jul 17, 2020 05:43:58 PM INFO Returning pre-loaded list of 5 monitors
Jul 17, 2020 05:43:55 PM DEBUG inside drag items:doing the jiggle and dance...
Jul 17, 2020 05:43:55 PM DEBUG inside drag items:doing the jiggle and dance...
Jul 17, 2020 05:43:54 PM DEBUG All images loaded, doing image layout
Jul 17, 2020 05:43:54 PM INFO Arranging as per packery grid
Jul 17, 2020 05:43:54 PM DEBUG All images loaded, but some broke, switching to snapshot...
Jul 17, 2020 05:43:54 PM DEBUG All images loaded, doing image layout
Jul 17, 2020 05:43:54 PM INFO Arranging as per packery grid
Jul 17, 2020 05:43:54 PM DEBUG All images loaded, switching to snapshot...
Jul 17, 2020 05:43:54 PM INFO Monitors that are active and not DOM hidden: 5 while grid has 5
Jul 17, 2020 05:43:54 PM DEBUG obfuscate: original:11652 obfuscated:2734 scheme:lzs
Jul 17, 2020 05:43:52 PM DEBUG resize/orient: 984(w) * 669(h)
Jul 17, 2020 05:43:43 PM DEBUG inside drag items:doing the jiggle and dance...
Jul 17, 2020 05:43:43 PM DEBUG All images loaded, doing image layout


Maybe this is an issue?

Jul 17, 2020 05:48:34 PM DEBUG Groups Association API is marked as unsupported, not invoking
Jul 17, 2020 05:48:34 PM DEBUG Loading hidden/unhidden status for profile:
Jul 17, 2020 05:48:34 PM DEBUG Storing streaming=http://192.168.1.148/zm/cgi-bin recording=http://192.168.1.148/zm
Jul 17, 2020 05:48:34 PM DEBUG No servers matched, filling defaults...
Jul 17, 2020 05:48:34 PM DEBUG Storing streaming=http://192.168.1.148/zm/cgi-bin recording=http://192.168.1.148/zm
Jul 17, 2020 05:48:34 PM DEBUG No servers matched, filling defaults...
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja windows client blank live feeds

Post by 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
token
Posts: 5
Joined: Sat Apr 25, 2020 10:26 pm

Re: zmNinja windows client blank live feeds

Post by token »

my cgi path had /zm/ in it, got rid of that, but still no live feed. Changed some other settings mentioned like turning off 'enable csrf magic'.

The part:
"You think your APIs are working, but they are really not. If you open a browser and type in https://yourserver/zm/api/monitors.json and you see some text on top followed by monitor data, your APIs are not working. You need to search the forums and figure out how to get rid of that text."

I must be really dense, I do not understand this. Should it be a blank white page? Specific format? 404? I have about 9 lines of text, assuming monitor data. So if any text = bad? What is = good? White screen?

Additional testing, I spun up another zoneminder on CentOS 7 in Xen using someone's super helpful script on Reddit. Re-input information in zm-Ninja (windows), so both FreeNAS and CentOS, cannot get live feed.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja windows client blank live feeds

Post by asker »

I must be really dense, I do not understand this. Should it be a blank white page? Specific format? 404? I have about 9 lines of text, assuming monitor data. So if any text = bad? What is = good? White screen?
Good data = JSON formatted data. Bad data = anything that doesn't look like JSON.
my cgi path had /zm/ in it, got rid of that, but still no live feed. Changed some other settings mentioned like turning off 'enable csrf magic'.
This part needs to be specific. /Changed some other settings/ doesn't help me understand what you did. I'd recommend you go through each step in the live streaming part and confirm if you fully followed the step and if the output is as described.

Also, does streaming work in ZoneMinder, if you loaded the web console from a browser on the same device zmNinja is on?
Additional testing, I spun up another zoneminder on CentOS 7 in Xen using someone's super helpful script on Reddit. Re-input information in zm-Ninja (windows), so both FreeNAS and CentOS, cannot get live feed.
You should be following the official ZM install guide to make sure your install is correct, if there is an official guide available for your OS (I think it is, for CentOS). I have no idea what issues /some random script on reddit/ may result in, post installation.
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
token
Posts: 5
Joined: Sat Apr 25, 2020 10:26 pm

Re: zmNinja windows client blank live feeds

Post by token »

I can see the monitors on the web, both Chrome and Firefox (both having the limit of 4 streams, I have 5 cameras- so I guess Chrome changed the stream limit from 6 making the documentation outdated?). I see these streams from both my FreeNAS and CentOS builds. CentOS is far snappier which is interesting (hardware very similar between the two).

CentOS script is posted at bottom if anyone is curious.

Short of posting a lengthy reply of each step, my adherence to it, and result- I followed all the steps in that link, taking note of, "Please be diligent in reviewing this list. You’d be surprised how many times I’ve had users tell me ‘they have checked this list’ only to find out later they skimmed details."

Nothing stands out in the log to me. I am going to email the log to the specified email.

I'm tempted to buy the Android app and see if this a windows issue, but without being able to get a refund I'm quick to jump on this idea. I might try the compile form source route, it would be a first for me.


#!/bin/bash
yum -y install mariadb mariadb-server mod_ssl php-mbstring php php-mysql httpd wget
yum -y install epel-release
wget https://download1.rpmfusion.org/free/el ... noarch.rpm
yum -y install rpmfusion-free-release-7.noarch.rpm
yum -y install zoneminder

setenforce 0
sed -i --follow-symlinks 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux

systemctl start mariadb
mysql < /usr/share/zoneminder/db/zm_create.sql
mysql -e "GRANT ALL ON zm.* to 'zmuser'@localhost identified by 'zmpass';"
mysql -e "FLUSH PRIVILEGES;"

pushd /etc/httpd/conf.d
ln -s /etc/zm/www/zoneminder.httpd.conf
sed -i --follow-symlinks 's/;date.timezone =/date.timezone = America\/Los_Angeles/g' /etc/php.ini
popd

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --reload

yum -y update

systemctl enable mariadb
systemctl enable httpd
systemctl enable zoneminder

reboot
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja windows client blank live feeds

Post by asker »

Don’t buy the android app yet. Get the desktop port working.
Easiest thing is if i can get access to your ZM console with a test user and one monitor enabled (need system view perms too).
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
token
Posts: 5
Joined: Sat Apr 25, 2020 10:26 pm

Re: zmNinja windows client blank live feeds

Post by token »

OK friends, so besides learning how to post trouble threads in a Linux admin way of clear, concise fashion like a dev/admin, don't do this stuff late at night exhausted.

Looking at page source again this morning I am seeing "/cgi-bin-zm". Changed that parameter in app settings > path to cgi-bin and now I have a live feed.

@asker thanks for the prompt replies, sorry for the novice posting, I'm not an admin or dev, just a hobbyist not much better than a newb posting "its broke, why no work?"
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja windows client blank live feeds

Post by asker »

Glad you got it to work!
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