ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.01k stars 268 forks source link

zmninja Montage not owrking/blank screen, monitors work and stream, montage blank, monitors enabled #982

Closed gstlouisgit closed 4 years ago

gstlouisgit commented 4 years ago

Before you create an issue, please make sure you have read the FAQ. Common questions on API, no image etc are covered there. Please also read HOWTO REPORT ISSUES

The version of zmNinja you are reporting:

1.4.9

The version and OS of ZoneMinder you are using:

Centos7 
ZM v1.34.20

Platform zmNinja is running on

MAC Desktop and tried windows 7 desktop

Did you build the package from source code yourself? N downloaded the desktop version from https://github.com/pliablepixels/zmNinja/releases

Describe the bug In ZMninja the montage view just show a blank screen. On the first install I was able to see 2 of my 4 cameras in Montage, so I started troubleshooting. I think I screwed things up by running the wizard several times. The CGI path started being a problem after wizard. I finally fixed this by looking at /etc/httpd/conf.d/zoneminder.conf and seeing the CGI ScriptAlias was /cgi-bin-zm. Updated the CGI path and in settings->monitors I can see the camera views no problem. But when doing settings->montage I still have a blank screen. An initial isntall on a winddows 7 box I had a blank montage immediately, updating the CGI path the monitors worked but the montage is still just a blank screen.

I tried looking error logs in zoneminder and logs in zmninja but nothing indicates anything I can work with from my knowledge anyways.

I do want to point out screenhot shared below screenshot. When it was working, on my mac desktop, in this screenshot on the right, those circle checkmarks were green. Now they are just grey, again the monitors work but I don't see them in montage. An I know there is an eye, clicked on that and remove the not allowed slash so they look to be enabled. When I would refresh they would often cross themselves out but with the new CGI path I gave it it looks fine always enabled. But montage is just blank. Zoneminder in a web browser works great.

UPDATE I just did a settings->Clear API cache and in monitors the checkmark is now green for all. But I still get blank in montage. damit, thought I had it!!!

Debug logs


Sep 17, 2020 08:47:02 AM DEBUG reporting status of monitors from multi-server API
Sep 17, 2020 08:47:02 AM DEBUG Groups Association API is marked as unsupported, not invoking
Sep 17, 2020 08:47:02 AM DEBUG Loading hidden/unhidden status for profile:
Sep 17, 2020 08:47:02 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:47:02 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:47:02 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:47:02 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:47:02 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:47:02 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:47:02 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:47:02 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:47:02 AM DEBUG default multi-server protocol will be:https://
Sep 17, 2020 08:47:02 AM DEBUG Portal scheme is https, will use https for any multi-server without a protocol
Sep 17, 2020 08:47:02 AM INFO multi server list loaded
Sep 17, 2020 08:47:02 AM DEBUG deobfuscate: before:265 after:498 scheme:lzs
Sep 17, 2020 08:47:02 AM DEBUG CACHE: decryption requested
Sep 17, 2020 08:47:02 AM DEBUG CACHE: cached value for key:cached_multi_servers is good as 3435 <86400
Sep 17, 2020 08:47:02 AM DEBUG CACHE: found for key: cached_multi_servers with expiry of:86400s
Sep 17, 2020 08:47:02 AM INFO Monitor load was successful, loaded 4 monitors
Sep 17, 2020 08:47:02 AM DEBUG Now trying to get multi-server data, if present
Sep 17, 2020 08:47:02 AM DEBUG Inside getMonitors, will also regen connkeys
Sep 17, 2020 08:47:02 AM DEBUG Loading hidden/unhidden status for profile:
Sep 17, 2020 08:47:02 AM DEBUG After duplicate processing, we have: 4 monitors
Sep 17, 2020 08:47:02 AM DEBUG Before duplicate processing, we have: 4 monitors
Sep 17, 2020 08:47:02 AM DEBUG deobfuscate: before:2399 after:9295 scheme:lzs
Sep 17, 2020 08:47:02 AM DEBUG CACHE: decryption requested
Sep 17, 2020 08:47:02 AM DEBUG CACHE: cached value for key:cached_monitors is good as 3436 <86400
Sep 17, 2020 08:47:02 AM DEBUG CACHE: found for key: cached_monitors with expiry of:86400s
Sep 17, 2020 08:47:02 AM DEBUG Monitor URL to fetch is:https://192.168.10.229/zm/api/monitors/index/Type !=:WebSite.json?&token=<removed>
Sep 17, 2020 08:47:02 AM DEBUG ZMS Multiport reported: 0
Sep 17, 2020 08:47:02 AM INFO sending stored ZM_MIN_STREAMING_PORT 0
Sep 17, 2020 08:47:02 AM INFO getMonitors:Force reloading all monitors
Sep 17, 2020 08:47:02 AM DEBUG Monitor Control afterEnter
Sep 17, 2020 08:46:55 AM DEBUG All images loaded, switching to snapshot...
Sep 17, 2020 08:46:55 AM INFO Monitors that are active and not DOM hidden: 0 while grid has 0
Sep 17, 2020 08:46:55 AM DEBUG obfuscate: original:15523 obfuscated:3594 scheme:lzs
Sep 17, 2020 08:46:54 AM DEBUG obfuscate: original:15523 obfuscated:3594 scheme:lzs
Sep 17, 2020 08:46:54 AM DEBUG Saving monitor hide/unhide
Sep 17, 2020 08:46:44 AM DEBUG resize/orient: 1707(w) * 916(h)
Sep 17, 2020 08:27:59 AM DEBUG All images loaded, switching to snapshot...
Sep 17, 2020 08:27:59 AM INFO Monitors that are active and not DOM hidden: 0 while grid has 0
Sep 17, 2020 08:27:59 AM DEBUG obfuscate: original:15523 obfuscated:3594 scheme:lzs
Sep 17, 2020 08:27:58 AM DEBUG obfuscate: original:15523 obfuscated:3594 scheme:lzs
Sep 17, 2020 08:27:58 AM DEBUG Saving monitor hide/unhide
Sep 17, 2020 08:27:48 AM DEBUG resize/orient: 1707(w) * 916(h)
Sep 17, 2020 08:27:32 AM DEBUG All images loaded, switching to snapshot...
Sep 17, 2020 08:27:32 AM INFO Monitors that are active and not DOM hidden: 0 while grid has 0
Sep 17, 2020 08:27:32 AM DEBUG obfuscate: original:15523 obfuscated:3594 scheme:lzs
Sep 17, 2020 08:27:32 AM DEBUG obfuscate: original:15523 obfuscated:3594 scheme:lzs
Sep 17, 2020 08:27:32 AM DEBUG Saving monitor hide/unhide
Sep 17, 2020 08:27:30 AM DEBUG index 3 is now show
Sep 17, 2020 08:27:28 AM DEBUG resize/orient: 1707(w) * 916(h)
Sep 17, 2020 08:22:56 AM INFO ---> Hacked up waked detection...
Sep 17, 2020 08:22:56 AM INFO --------->Setting up global key handler...
Sep 17, 2020 08:22:56 AM INFO --------->Setting up network state handlers....
Sep 17, 2020 08:22:54 AM DEBUG All images loaded, switching to snapshot...
Sep 17, 2020 08:22:54 AM INFO Monitors that are active and not DOM hidden: 0 while grid has 0
Sep 17, 2020 08:22:54 AM INFO Inside Montage Ctrl:We found 4 monitors
Sep 17, 2020 08:22:54 AM DEBUG skipping image refresh, packery is still loading
Sep 17, 2020 08:22:54 AM DEBUG Setting up cycle interval of:10000
Sep 17, 2020 08:22:54 AM DEBUG bandwidth: highbw montage refresh set to: 2
Sep 17, 2020 08:22:53 AM DEBUG Multiport=0
Sep 17, 2020 08:22:53 AM INFO sending stored ZM_MIN_STREAMING_PORT 0
Sep 17, 2020 08:22:53 AM DEBUG Montage beforeEnter: copying monitors to montage monitors
Sep 17, 2020 08:22:53 AM DEBUG Montage beforeEnter: got 4 monitors
Sep 17, 2020 08:22:53 AM DEBUG Setting streamQuery timer to 10000
Sep 17, 2020 08:22:53 AM DEBUG Groups Association API is marked as unsupported, not invoking
Sep 17, 2020 08:22:53 AM DEBUG Loading hidden/unhidden status for profile:
Sep 17, 2020 08:22:53 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:22:53 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:22:53 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:22:53 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:22:53 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:22:53 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:22:53 AM DEBUG Storing streaming=https://192.168.10.229/cgi-bin-zm recording=https://192.168.10.229/zm
Sep 17, 2020 08:22:53 AM DEBUG No servers matched, filling defaults...
Sep 17, 2020 08:22:53 AM DEBUG default multi-server protocol will be:https://
Sep 17, 2020 08:22:53 AM DEBUG Portal scheme is https, will use https for any multi-server without a protocol
Sep 17, 2020 08:22:53 AM INFO multi server list loaded
Sep 17, 2020 08:22:53 AM DEBUG deobfuscate: before:265 after:498 scheme:lzs
Sep 17, 2020 08:22:53 AM DEBUG CACHE: decryption requested
Sep 17, 2020 08:22:53 AM DEBUG CACHE: cached value for key:cached_multi_servers is good as 1986 <86400
Sep 17, 2020 08:22:53 AM DEBUG CACHE: found for key: cached_multi_servers with expiry of:86400s
Sep 17, 2020 08:22:53 AM INFO Monitor load was successful, loaded 4 monitors
Sep 17, 2020 08:22:53 AM DEBUG Now trying to get multi-server data, if present
Sep 17, 2020 08:22:53 AM DEBUG Inside getMonitors, will also regen connkeys
Sep 17, 2020 08:22:53 AM DEBUG Loading hidden/unhidden status for profile:
Sep 17, 2020 08:22:53 AM DEBUG After duplicate processing, we have: 4 monitors
Sep 17, 2020 08:22:53 AM DEBUG Before duplicate processing, we have: 4 monitors
Sep 17, 2020 08:22:53 AM DEBUG deobfuscate: before:2399 after:9295 scheme:lzs
Sep 17, 2020 08:22:53 AM DEBUG CACHE: decryption requested
Sep 17, 2020 08:22:53 AM DEBUG CACHE: cached value for key:cached_monitors is good as 1987 <86400
Sep 17, 2020 08:22:53 AM DEBUG CACHE: found for key: cached_monitors with expiry of:86400s
Sep 17, 2020 08:22:53 AM DEBUG Real value of PRIVACY is:0
Sep 17, 2020 08:22:53 AM DEBUG Monitor URL to fetch is:https://192.168.10.229/zm/api/monitors/index/Type !=:WebSite.json?&token=<removed>
Sep 17, 2020 08:22:53 AM DEBUG ZMS Multiport reported: 0
Sep 17, 2020 08:22:53 AM INFO ZM_MIN_STREAMING_PORT not configured, disabling
Sep 17, 2020 08:22:53 AM DEBUG Setting multi-port to:false
Sep 17, 2020 08:22:53 AM DEBUG Timezone API response is:America/Toronto
Sep 17, 2020 08:22:53 AM DEBUG CACHE: cached value for key:cached_multi_port is good as 1923 <86400
Sep 17, 2020 08:22:53 AM DEBUG CACHE: found for key: cached_multi_port with expiry of:86400s
Sep 17, 2020 08:22:53 AM DEBUG CACHE: cached value for key:cached_timezone is good as 1986 <86400
Sep 17, 2020 08:22:53 AM DEBUG CACHE: found for key: cached_timezone with expiry of:86400s
Sep 17, 2020 08:22:53 AM INFO Checking value of ZM_MIN_STREAMING_PORT for the first time
Sep 17, 2020 08:22:53 AM INFO getMonitors:Loading all monitors
Sep 17, 2020 08:22:53 AM DEBUG NVR: Regenerating connkeys for all monitors at 1600345373847
Sep 17, 2020 08:22:53 AM DEBUG Transitioning state to: app.montage with param {"minimal":false,"isRefresh":false}
Sep 17, 2020 08:22:53 AM INFO EventSever: No Event Server present. Not initializing
Sep 17, 2020 08:22:53 AM INFO First invocation of TimeZone, asking server
Sep 17, 2020 08:22:53 AM INFO Got API version: 1.34.20
Sep 17, 2020 08:22:53 AM DEBUG getAPI version succeeded with 1.34.20
Sep 17, 2020 08:22:53 AM DEBUG Setting server version to:1.34.20
Sep 17, 2020 08:22:53 AM DEBUG obfuscate: original:15523 obfuscated:3594 scheme:lzs
Sep 17, 2020 08:22:53 AM DEBUG snapshot  supported in image.php
Sep 17, 2020 08:22:53 AM DEBUG CACHE: cached value for key:cached_api_version is good as 1986 <86400
Sep 17, 2020 08:22:53 AM DEBUG CACHE: found for key: cached_api_version with expiry of:86400s
Sep 17, 2020 08:22:53 AM DEBUG current version: 1.4.009 & available version 1.4.009D
Sep 17, 2020 08:22:53 AM DEBUG getAPIversion called with https://192.168.10.229/zm/api/host/getVersion.json?&token=<removed>
Sep 17, 2020 08:22:53 AM DEBUG PortalLogin: auth success
Sep 17, 2020 08:22:53 AM DEBUG auth-success broadcast:Successful
Sep 17, 2020 08:22:53 AM INFO ----> Setting token re-login after 4020 seconds
Sep 17, 2020 08:22:53 AM INFO Access token still has 67 minutes left, using it
Sep 17, 2020 08:22:53 AM INFO Detected token login supported
Sep 17, 2020 08:22:53 AM DEBUG Resetting zmCookie...
Sep 17, 2020 08:22:53 AM DEBUG No need for re-captcha checks with tokens
Sep 17, 2020 08:22:53 AM DEBUG Inside _doLogin()
Sep 17, 2020 08:22:53 AM INFO No need for logout!
Sep 17, 2020 08:22:53 AM INFO No need to do a reachability test, as there are no fallbacks
Sep 17, 2020 08:22:53 AM INFO reached end of chain loop
Sep 17, 2020 08:22:53 AM INFO Fallback of https://192.168.10.229/zm is 
Sep 17, 2020 08:22:53 AM INFO Adding to chain stack: https://192.168.10.229/zm>https://192.168.10.229/zm
Sep 17, 2020 08:22:53 AM DEBUG _doLogoutAndLogin: Clearing cookies
Sep 17, 2020 08:22:53 AM DEBUG auth-success broadcast:Successful
Sep 17, 2020 08:22:53 AM INFO ----> Setting token re-login after 4020 seconds
Sep 17, 2020 08:22:53 AM INFO Access token still has 67 minutes left, using it
Sep 17, 2020 08:22:53 AM INFO Detected token login supported
Sep 17, 2020 08:22:53 AM DEBUG Resetting zmCookie...
Sep 17, 2020 08:22:53 AM DEBUG No need for re-captcha checks with tokens
Sep 17, 2020 08:22:53 AM DEBUG Inside _doLogin()
Sep 17, 2020 08:22:53 AM DEBUG ------> Not starting login timer for token. We will start a one time timer when we know how soon the access token will live
Sep 17, 2020 08:22:53 AM INFO Cancelling zmAutologin timer
Sep 17, 2020 08:22:53 AM DEBUG PIN code entered is correct, or there is no PIN set
Sep 17, 2020 08:22:53 AM DEBUG unlock called with check PIN=true
Sep 17, 2020 08:22:53 AM INFO not checking for touchID
Sep 17, 2020 08:22:53 AM INFO User credentials are provided
Sep 17, 2020 08:22:53 AM DEBUG Inside Portal login Enter handler
Sep 17, 2020 08:22:53 AM INFO Entering Portal Main
Sep 17, 2020 08:22:53 AM INFO Inside init-complete in app.js: All init over, going to portal login
Sep 17, 2020 08:22:53 AM INFO NVR init retrieved store loginData, marking init as complete
Sep 17, 2020 08:22:53 AM INFO Setting NVR init bandwidth to: highbw
Sep 17, 2020 08:22:53 AM DEBUG deobfuscate: before:3594 after:15523 scheme:lzs
Sep 17, 2020 08:22:53 AM INFO user profile encrypted, decoding...
Sep 17, 2020 08:22:53 AM INFO Setting up pause and resume handler AFTER language is loaded...
Sep 17, 2020 08:22:53 AM INFO Checking for new version updates...
Sep 17, 2020 08:22:53 AM INFO ZMData init: checking for stored variables & setting up log file
Sep 17, 2020 08:22:53 AM INFO Language file loaded, continuing with rest
Sep 17, 2020 08:22:53 AM DEBUG last state=app.montage param=[object Object]
Sep 17, 2020 08:22:53 AM DEBUG isFirstUse returned: false
Sep 17, 2020 08:22:53 AM INFO >>>>Language to be used:en
Sep 17, 2020 08:22:53 AM INFO Device Language is:en
Sep 17, 2020 08:22:53 AM INFO No language set, switching to en
Sep 17, 2020 08:22:53 AM INFO Retrieving language before init is called...
Sep 17, 2020 08:22:53 AM INFO >>>>No data to import....
Sep 17, 2020 08:22:53 AM INFO Cloudsync operation complete, continuing...
Sep 17, 2020 08:22:53 AM INFO Cloud settings plugin not found, skipping cloud sync...
Sep 17, 2020 08:22:53 AM INFO localforage driver:asyncStorage
Sep 17, 2020 08:22:53 AM DEBUG configureStorageDB:test get/set worked, this driver is ok...
Sep 17, 2020 08:22:53 AM DEBUG configureStorageDB:Making sure this storage driver works...
Sep 17, 2020 08:22:53 AM INFO configureStorageDB:localforage driver for storage:asyncStorage
Sep 17, 2020 08:22:53 AM DEBUG ---> Init not complete, ignoring state change request to app.montage
Sep 17, 2020 08:22:53 AM INFO Deleting old log file as it exceeds 100000 bytes
Sep 17, 2020 08:22:53 AM DEBUG configureStorageDB: trying order:["asyncStorage","localStorageWrapper"]
Sep 17, 2020 08:22:53 AM DEBUG Inside configureStorageDB
Sep 17, 2020 08:22:53 AM INFO You are running on desktop
Sep 17, 2020 08:22:53 AM DEBUG UA is mozilla/5.0 (macintosh; intel mac os x 10_13_6) applewebkit/537.36 (khtml, like gecko) zmninjapro/1.4.009 chrome/80.0.3987.165 electron/8.3.0 safari/537.36
Sep 17, 2020 08:22:53 AM INFO Device is ready

Screenshots https://snipboard.io/tmYxMW.jpg https://snipboard.io/ji7MJ8.jpg https://snipboard.io/C03Ht2.jpg

Additional context Add any other context about the problem here.

welcome[bot] commented 4 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you follow the issue template or I may not respond.

pliablepixels commented 4 years ago

Hi, usually following the instructions in these two links helps:

https://zmninja.readthedocs.io/en/latest/guides/FAQ.html#live-streaming-issues https://zmninja.readthedocs.io/en/latest/guides/FAQ.html#event-images-streaming-related

gstlouisgit commented 4 years ago

wow. From what I saw I think my error was on your first link I did not have enabled AUTH_HASH_LOGINS

I apologize for not having read this piece of that document. And thank you! @pliablepixels