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 Pro not showing streaming images while zm website is ok #969

Closed weinix closed 4 years ago

weinix 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.34.9, installed with freeNAS jail zm plugin 

The version and OS of ZoneMinder you are using:

FreeNAS-11.3-U4.1

Platform zmNinja is running on

Ubuntu 20.04, Android 10, IOS

Did you build the package from source code yourself? N

Describe the bug Zoneminder is working from web interface, but zmninja is not working from computer/Android app or Iphone app.

Debug logs from developer tools->network

message
:
"Socket /var/run/zm/zms-236649s.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."
result
:
"Error"

zmNinja version:1.4.003 (desktop)
ZoneMinder version:1.34.9

Sep 7, 2020 08:27:24 AM INFO Device is ready
Sep 7, 2020 08:27:24 AM DEBUG UA is mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, like gecko) zmninjapro/1.4.003 chrome/66.0.3359.181 electron/3.1.13 safari/537.36
Sep 7, 2020 08:27:24 AM INFO You are running on desktop
Sep 7, 2020 08:27:24 AM DEBUG Inside configureStorageDB
Sep 7, 2020 08:27:24 AM DEBUG configureStorageDB: trying order:["asyncStorage","localStorageWrapper"]
Sep 7, 2020 08:27:24 AM INFO configureStorageDB:localforage driver for storage:asyncStorage
Sep 7, 2020 08:27:24 AM DEBUG configureStorageDB:Making sure this storage driver works...
Sep 7, 2020 08:27:24 AM DEBUG configureStorageDB:test get/set worked, this driver is ok...
Sep 7, 2020 08:27:24 AM INFO localforage driver:asyncStorage
Sep 7, 2020 08:27:24 AM INFO Cloud settings plugin not found, skipping cloud sync...
Sep 7, 2020 08:27:24 AM INFO Cloudsync operation complete, continuing...
Sep 7, 2020 08:27:24 AM INFO >>>>No data to import....
Sep 7, 2020 08:27:24 AM INFO Retrieving language before init is called...
Sep 7, 2020 08:27:24 AM INFO No language set, switching to en
Sep 7, 2020 08:27:24 AM INFO Device Language is:en
Sep 7, 2020 08:27:24 AM INFO >>>>Language to be used:en
Sep 7, 2020 08:27:24 AM DEBUG isFirstUse returned: false
Sep 7, 2020 08:27:24 AM DEBUG last state=app.log param=[object Object]
Sep 7, 2020 08:27:24 AM INFO Language file loaded, continuing with rest
Sep 7, 2020 08:27:24 AM INFO ZMData init: checking for stored variables & setting up log file
Sep 7, 2020 08:27:24 AM INFO Checking for new version updates...
Sep 7, 2020 08:27:24 AM INFO Setting up pause and resume handler AFTER language is loaded...
Sep 7, 2020 08:27:24 AM INFO user profile encrypted, decoding...
Sep 7, 2020 08:27:24 AM DEBUG deobfuscate: before:1655 after:5879 scheme:lzs
Sep 7, 2020 08:27:24 AM INFO Setting NVR init bandwidth to: highbw
Sep 7, 2020 08:27:24 AM INFO NVR init retrieved store loginData
Sep 7, 2020 08:27:24 AM INFO Inside init-complete in app.js: All init over, going to portal login
Sep 7, 2020 08:27:25 AM INFO Entering Portal Main
Sep 7, 2020 08:27:25 AM DEBUG Inside Portal login Enter handler
Sep 7, 2020 08:27:25 AM INFO User credentials are provided
Sep 7, 2020 08:27:25 AM INFO not checking for touchID
Sep 7, 2020 08:27:25 AM DEBUG unlock called with check PIN=true
Sep 7, 2020 08:27:25 AM DEBUG PIN code entered is correct, or there is no PIN set
Sep 7, 2020 08:27:25 AM INFO Cancelling zmAutologin timer
Sep 7, 2020 08:27:25 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 7, 2020 08:27:25 AM DEBUG Inside _doLogin()
Sep 7, 2020 08:27:25 AM DEBUG No need for re-captcha checks with tokens
Sep 7, 2020 08:27:25 AM DEBUG Resetting zmCookie...
Sep 7, 2020 08:27:25 AM INFO Detected token login supported
Sep 7, 2020 08:27:25 AM INFO Access token still has 92 minutes left, using it
Sep 7, 2020 08:27:25 AM INFO ----> Setting token re-login after 5520 seconds
Sep 7, 2020 08:27:25 AM DEBUG auth-success broadcast:Successful
Sep 7, 2020 08:27:25 AM DEBUG _doLogoutAndLogin: Clearing cookies
Sep 7, 2020 08:27:25 AM INFO Adding to chain stack: 192.168.0.151>https://192.168.0.151/zm
Sep 7, 2020 08:27:25 AM INFO Fallback of 192.168.0.151 is 
Sep 7, 2020 08:27:25 AM INFO reached end of chain loop
Sep 7, 2020 08:27:25 AM INFO No need to do a reachability test, as there are no fallbacks
Sep 7, 2020 08:27:25 AM INFO No need for logout!

Screenshots If applicable, add screenshots to help explain your problem.

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

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

weinix commented 4 years ago

Thanks! "Special Note: Many people miss looking closely at cgi-bin. Your browser may show /cgi-bin/ while your zmNinja may be set to /zm/cgi-bin/. So the solution here is to remove /zm from zmNinja." Fixed my problem.