zmNinja on Galaxy S5

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
tominator
Posts: 4
Joined: Tue Mar 14, 2017 4:50 pm

zmNinja on Galaxy S5

Post by tominator »

I installed Zoneminder v 1.30.0 on Ubuntu 16.10 and it works pretty well. I installed zmNinja on my Samsung Galaxy S5 running android version 6.0.1. It gave me "zoneminder authentication failed". I read for forums made some recommended tweaks with no luck. I ran the commands listed to verify my APIs were working and they all passed for my installation. Then I found the desktop version and installed the zmNinja on Windows 10 and it worked immediately. So, being tied at one and one, I installed zmNinja on the wife's iphone6 and it worked perfectly as well. I'm using the same zmNinja settings on my Samsung. I'm just not sure what to try next. BTW - the wife loves it!
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja on Galaxy S5

Post by asker »

Hi, please turn on debug logs (developer settings) and lets have a look at the logs.
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
tominator
Posts: 4
Joined: Tue Mar 14, 2017 4:50 pm

Re: zmNinja on Galaxy S5

Post by tominator »

Logs for version:1.2.39 (android)

Mar 14, 2017 05:59 PM INFO retrieved pre-stored loginData on past pause: {"serverName":"192.168.1.8","username":"tjw_watcher",<password removed>,"fallbackConfiguration":"","url":"http://<server>","apiurl":"http://<server>/api","eventServer":"","maxMontage":"100","streamingurl":"http://<server>/cgi-bin","maxFPS":"3","montageQuality":100,"singleImageQuality":"100","monSingleImageQuality":"100","montageHistoryQuality":"50","useSSL":false,"keepAwake":true,"isUseAuth":true,"isUseEventServer":false,"disablePush":false,"eventServerMonitors":"","eventServerInterval":"","refreshSec":"2","refreshSecLowBW":8,"enableLogs":true,"enableDebug":true,"usePin":false,"pinCode":"","canSwipeMonitors":true,"persistMontageOrder":true,"onTapScreen":"Montage","enableh264":true,"gapless":false,"montageOrder":"","montageHiddenOrder":"","montageArraySize":"0","showMontageSubMenu":false,"graphSize":2000,"enableAlarmCount":true,"minAlarmCount":1,"montageSize":"3","useNphZms":true,"useNphZmsForEvents":true,"packMontage":false,"exitOnSleep":false,"forceNetworkStop":false,"defaultPushSound":false,"enableBlog":true,"use24hr":false,"packeryPositions":"","currentMontageProfile":"","packeryPositionsArray":{},"EHpackeryPositions":"","packerySizes":"","timelineModalGraphType":"all","resumeDelay":0,"language":"en","reachability":true,"forceImageModePath":false,"disableNative":false,"vibrateOnPush":true,"soundOnPush":true,"cycleMonitors":false,"cycleMontage":false,"cycleMontageInterval":10,"cycleMonitorsInterval":10,"enableLowBandwidth":false,"autoSwitchBandwidth":false,"disableAlarmCheckMontage":false,"useLocalTimeZone":true,"fastLogin":true,"followTimeLine":false,"timelineScale":-1,"hideArchived":false,"videoPlaybackSpeed":2,"enableGIFMP4":false,"enableStrictSSL":false,"enableSlowLoading":false}
Mar 14, 2017 05:59 PM DEBUG Does login need to hear the wizard? false
Mar 14, 2017 05:59 PM DEBUG PortalLogin: error authenticating "No servers reachable"
Mar 14, 2017 05:59 PM INFO Failed reachability on http://<server>/index.php with error {"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"timeout":15000,"url":"http://<server>/index.php","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":""}
Mar 14, 2017 05:59 PM INFO Reachability test..http://<server>/index.php
Mar 14, 2017 05:59 PM INFO detected loop when 192.168.1.8 fallsback to
Mar 14, 2017 05:59 PM INFO reached end of chain loop
Mar 14, 2017 05:59 PM INFO Fallback of 192.168.1.8 is
Mar 14, 2017 05:59 PM INFO Adding to chain stack: 192.168.1.8>http://<server>
Mar 14, 2017 05:59 PM DEBUG zmAutoLogin: Inside auth-error emit
Mar 14, 2017 05:59 PM INFO zmAutologin Error null and status 0
Mar 14, 2017 05:59 PM DEBUG Latest post dated 2017-02-25 07:54:24 but you read 2017-03-13 20:17:08
Mar 14, 2017 05:59 PM DEBUG current version: 1.2.39 & available version 1.2.39
Mar 14, 2017 05:59 PM INFO Checking if reCaptcha is enabled in ZM...
Mar 14, 2017 05:59 PM INFO zmAutologin called
Mar 14, 2017 05:59 PM DEBUG Resetting zmCookie...
Mar 14, 2017 05:59 PM INFO Cancelling zmAutologin timer
Mar 14, 2017 05:59 PM DEBUG PIN code entered is correct, or there is no PIN set
Mar 14, 2017 05:59 PM DEBUG unlock called with check PIN=true
Mar 14, 2017 05:59 PM INFO not checking for touchID
Mar 14, 2017 05:59 PM INFO User credentials are provided
Mar 14, 2017 05:59 PM DEBUG Inside Portal login Enter handler
Mar 14, 2017 05:59 PM DEBUG Not changing bandwidth state, as auto change is not on
Mar 14, 2017 05:59 PM DEBUG getBandwidth() normalized it as: highbw
Mar 14, 2017 05:59 PM DEBUG Detected network type as: wifi
Mar 14, 2017 05:59 PM INFO Entering Portal Main
Mar 14, 2017 05:59 PM INFO >>>>>>>>>>>>>>> All init over, going to portal login
Mar 14, 2017 05:59 PM INFO >>>> Disabling strict SSL checking (turn off in Dev Options if you can't connect)
Mar 14, 2017 05:59 PM INFO DataModel init recovered this loginData as {"serverName":"192.168.1.8","username":"tjw_watcher",<password removed>,"fallbackConfiguration":"","url":"http://<server>","apiurl":"http://<server>/api","eventServer":"","maxMontage":"100","streamingurl":"http://<server>/cgi-bin","maxFPS":"3","montageQuality":100,"singleImageQuality":"100","monSingleImageQuality":"100","montageHistoryQuality":"50","useSSL":false,"keepAwake":true,"isUseAuth":true,"isUseEventServer":false,"disablePush":false,"eventServerMonitors":"","eventServerInterval":"","refreshSec":"2","refreshSecLowBW":8,"enableLogs":true,"enableDebug":true,"usePin":false,"pinCode":"","canSwipeMonitors":true,"persistMontageOrder":true,"onTapScreen":"Montage","enableh264":true,"gapless":false,"montageOrder":"","montageHiddenOrder":"","montageArraySize":"0","showMontageSubMenu":false,"graphSize":2000,"enableAlarmCount":true,"minAlarmCount":1,"montageSize":"3","useNphZms":true,"useNphZmsForEvents":true,"packMontage":false,"exitOnSleep":false,"forceNetworkStop":false,"defaultPushSound":false,"enableBlog":true,"use24hr":false,"packeryPositions":"","currentMontageProfile":"","packeryPositionsArray":{},"EHpackeryPositions":"","packerySizes":"","timelineModalGraphType":"all","resumeDelay":0,"language":"en","reachability":true,"forceImageModePath":false,"disableNative":false,"vibrateOnPush":true,"soundOnPush":true,"cycleMonitors":false,"cycleMontage":false,"cycleMontageInterval":10,"cycleMonitorsInterval":10,"enableLowBandwidth":false,"autoSwitchBandwidth":false,"disableAlarmCheckMontage":false,"useLocalTimeZone":true,"fastLogin":true,"followTimeLine":false,"timelineScale":-1,"hideArchived":false,"videoPlaybackSpeed":2,"enableGIFMP4":false,"enableStrictSSL":false,"enableSlowLoading":false}
Mar 14, 2017 05:59 PM INFO SlowDelay is: false
Mar 14, 2017 05:59 PM INFO Setting DataModel init bandwidth to: highbw
Mar 14, 2017 05:59 PM DEBUG timeline graph type not set. Setting to all
Mar 14, 2017 05:59 PM INFO user profile encrypted, decoding...
Mar 14, 2017 05:59 PM INFO Setting up pause and resume handler AFTER language is loaded...
Mar 14, 2017 05:59 PM INFO Setting up POST LOGIN timer
Mar 14, 2017 05:59 PM INFO Checking for news updates
Mar 14, 2017 05:59 PM INFO Checking for new version updates...
Mar 14, 2017 05:59 PM INFO No Event Server present. Not initializing
Mar 14, 2017 05:59 PM INFO ZMData init: checking for stored variables & setting up log file
Mar 14, 2017 05:59 PM INFO Language file loaded, continuing with rest
Mar 14, 2017 05:59 PM INFO >>>>Language to be used:en
Mar 14, 2017 05:59 PM INFO Device Language is:en
Mar 14, 2017 05:59 PM INFO No language set, switching to en
Mar 14, 2017 05:59 PM INFO App Version: 1.2.39
Mar 14, 2017 05:59 PM INFO Retrieving language before init is called...
Mar 14, 2017 05:59 PM INFO Enabling native transitions...
2017-03-14T22:59:04.559Z INFO Updating statusbar
2017-03-14T22:59:04.556Z INFO >>>>No data to import....
2017-03-14T22:59:04.389Z INFO Reachable: No server name configured, likely first use?
2017-03-14T22:59:04.351Z DEBUG zmAutoLogin: Inside auth-error emit
2017-03-14T22:59:04.350Z INFO zmAutologin Error null and status 0
2017-03-14T22:59:04.341Z INFO ZM has recaptcha disabled - good
2017-03-14T22:59:04.146Z DEBUG text zoom factor is 1
2017-03-14T22:59:04.060Z INFO Checking if reCaptcha is enabled in ZM...
2017-03-14T22:59:04.057Z INFO zmAutologin called
2017-03-14T22:59:04.052Z DEBUG Resetting zmCookie...
2017-03-14T22:59:04.040Z INFO Your network is online, re-authenticating
2017-03-14T22:59:04.030Z INFO localforage driver for storage:asyncStorage
2017-03-14T22:59:03.490Z INFO You are running on android
Mar 14, 2017 05:55 PM INFO ROOT APP:App is going into background
Mar 14, 2017 05:55 PM INFO retrieved pre-stored loginData on past pause: {"serverName":"192.168.1.8","username":"tjw_watcher",<password removed>,"fallbackConfiguration":"","url":"http://<server>","apiurl":"http://<server>/api","eventServer":"","maxMontage":"100","streamingurl":"http://<server>/cgi-bin","maxFPS":"3","montageQuality":100,"singleImageQuality":"100","monSingleImageQuality":"100","montageHistoryQuality":"50","useSSL":false,"keepAwake":true,"isUseAuth":true,"isUseEventServer":false,"disablePush":false,"eventServerMonitors":"","eventServerInterval":"","refreshSec":"2","refreshSecLowBW":8,"enableLogs":true,"enableDebug":true,"usePin":false,"pinCode":"","canSwipeMonitors":true,"persistMontageOrder":true,"onTapScreen":"Montage","enableh264":true,"gapless":false,"montageOrder":"","montageHiddenOrder":"","montageArraySize":"0","showMontageSubMenu":false,"graphSize":2000,"enableAlarmCount":true,"minAlarmCount":1,"montageSize":"3","useNphZms":true,"useNphZmsForEvents":true,"packMontage":false,"exitOnSleep":false,"forceNetworkStop":false,"defaultPushSound":false,"enableBlog":true,"use24hr":false,"packeryPositions":"","currentMontageProfile":"","packeryPositionsArray":{},"EHpackeryPositions":"","packerySizes":"","timelineModalGraphType":"all","resumeDelay":0,"language":"en","reachability":true,"forceImageModePath":false,"disableNative":false,"vibrateOnPush":true,"soundOnPush":true,"cycleMonitors":false,"cycleMontage":false,"cycleMontageInterval":10,"cycleMonitorsInterval":10,"enableLowBandwidth":false,"autoSwitchBandwidth":false,"disableAlarmCheckMontage":false,"useLocalTimeZone":true,"fastLogin":true,"followTimeLine":false,"timelineScale":-1,"hideArchived":false,"videoPlaybackSpeed":2,"enableGIFMP4":false,"enableStrictSSL":false,"enableSlowLoading":false}
Mar 14, 2017 05:55 PM DEBUG Does login need to hear the wizard? false
Mar 14, 2017 05:55 PM DEBUG PortalLogin: error authenticating "No servers reachable"
Mar 14, 2017 05:55 PM INFO Failed reachability on http://<server>/index.php with error {"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"timeout":15000,"url":"http://<server>/index.php","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":""}
Mar 14, 2017 05:55 PM INFO Reachability test..http://<server>/index.php
Mar 14, 2017 05:55 PM INFO detected loop when 192.168.1.8 fallsback to
Mar 14, 2017 05:55 PM INFO reached end of chain loop
Mar 14, 2017 05:55 PM INFO Fallback of 192.168.1.8 is
Mar 14, 2017 05:55 PM INFO Adding to chain stack: 192.168.1.8>http://<server>
Mar 14, 2017 05:55 PM DEBUG zmAutoLogin: Inside auth-error emit
Mar 14, 2017 05:55 PM INFO zmAutologin Error null and status 0
Mar 14, 2017 05:55 PM INFO Error getting ZM logs:{"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://<server>/api/logs.json?sort=TimeKey&direction=desc&page=1","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":""}
Mar 14, 2017 05:54 PM INFO Checking if reCaptcha is enabled in ZM...
Mar 14, 2017 05:54 PM INFO zmAutologin called
Mar 14, 2017 05:54 PM DEBUG Resetting zmCookie...
Mar 14, 2017 05:54 PM INFO Cancelling zmAutologin timer
Mar 14, 2017 05:54 PM DEBUG PIN code entered is correct, or there is no PIN set
Mar 14, 2017 05:54 PM DEBUG unlock called with check PIN=true
Mar 14, 2017 05:54 PM INFO not checking for touchID
Mar 14, 2017 05:54 PM INFO User credentials are provided
Mar 14, 2017 05:54 PM DEBUG Inside Portal login Enter handler
Mar 14, 2017 05:54 PM INFO Entering Portal Main
Mar 14, 2017 05:54 PM DEBUG going to portal login
Mar 14, 2017 05:54 PM DEBUG Last State recorded:{"viewId":"ion34","index":0,"historyId":"ion3","backViewId":null,"forwardViewId":null,"stateId":"log","stateName":"log","url":"/log","canSwipeBack":true,"title":"zmNinja Logs"}
Mar 14, 2017 05:54 PM DEBUG LogCtrl: resume called, starting log timer
Mar 14, 2017 05:54 PM INFO Login screen resumed
Mar 14, 2017 05:54 PM DEBUG LogCtrl: resume called, starting log timer
Mar 14, 2017 05:54 PM INFO Login screen resumed
Mar 14, 2017 05:54 PM INFO >>> Resume delayed for 0 ms, to wait for network stack...
Mar 14, 2017 05:54 PM INFO App is resuming from background
Mar 14, 2017 05:54 PM DEBUG LogCtrl: pause called, killing log timer
Mar 14, 2017 05:54 PM INFO Login screen going to background, saving data
Mar 14, 2017 05:54 PM DEBUG LogCtrl: pause called, killing log timer
Mar 14, 2017 05:54 PM INFO Login screen going to background, saving data
Mar 14, 2017 05:54 PM INFO Cancelling zmAutologin timer
Mar 14, 2017 05:54 PM INFO ROOT APP: Stopping network pull...
Mar 14, 2017 05:54 PM INFO ROOT APP:App is going into background
Mar 14, 2017 05:54 PM INFO Failed reachability on http://<server>/index.php with error {"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"timeout":15000,"url":"http://<server>/index.php","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":""}
Mar 14, 2017 05:54 PM INFO Reachability test..http://<server>/index.php
Mar 14, 2017 05:54 PM INFO detected loop when 192.168.1.8 fallsback to
Mar 14, 2017 05:54 PM INFO reached end of chain loop
Mar 14, 2017 05:54 PM INFO Fallback of 192.168.1.8 is
Mar 14, 2017 05:54 PM INFO Adding to chain stack: 192.168.1.8>http://<server>
Mar 14, 2017 05:54 PM DEBUG zmAutoLogin: Inside auth-error emit
Mar 14, 2017 05:54 PM INFO zmAutologin Error null and status 0
Mar 14, 2017 05:54 PM INFO Checking if reCaptcha is enabled in ZM...
Mar 14, 2017 05:54 PM INFO zmAutologin called
Mar 14, 2017 05:54 PM DEBUG Resetting zmCookie...
Mar 14, 2017 05:54 PM DEBUG Logging out of current session...
Mar 14, 2017 05:54 PM INFO Failed reachability on http://<server>/index.php with error {"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"timeout":15000,"url":"http://<server>/index.php","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":""}
Mar 14, 2017 05:54 PM INFO Reachability test..http://<server>/index.php
Mar 14, 2017 05:54 PM INFO detected loop when 192.168.1.8 fallsback to
Mar 14, 2017 05:54 PM INFO reached end of chain loop
Mar 14, 2017 05:54 PM INFO Fallback of 192.168.1.8 is
Mar 14, 2017 05:54 PM INFO Adding to chain stack: 192.168.1.8>http://<server>
Mar 14, 2017 05:54 PM DEBUG zmAutoLogin: Inside auth-error emit
Mar 14, 2017 05:54 PM INFO zmAutologin Error null and status 0
Mar 14, 2017 05:54 PM INFO Checking if reCaptcha is enabled in ZM...
Mar 14, 2017 05:54 PM INFO zmAutologin called
Mar 14, 2017 05:54 PM DEBUG Resetting zmCookie...
Mar 14, 2017 05:54 PM DEBUG Logging out of current session...
Mar 14, 2017 05:53 PM INFO Not recovering login data as its empty
Mar 14, 2017 05:53 PM DEBUG Does login need to hear the wizard? false
Mar 14, 2017 05:53 PM INFO Error getting ZM logs:{"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://<server>/api/logs.json?sort=TimeKey&direction=desc&page=1","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":""}
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja on Galaxy S5

Post by asker »

Based on your logs, it looks like none of the HTTP requests are working - you are not using SSL correct?

1. Run the wizard and try to autodetect (the reason I say this is sometimes people misconfigure by mistake - this is mostly to eliminate typos)

2. Go to dev settings, and enable strict ssl. Save. Then disable strict SSL - save

3. If step 1 failed because it could not access any url, try it after step 2

4. I might have asked you before, but did you try accessing ZM using your mobile browser from that phone? Does it work
5. Are you sure there are no network blockers (I'm not an android user but it seems there are many ways to block specific apps from using the network etc)

Let me know

Thx
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
tominator
Posts: 4
Joined: Tue Mar 14, 2017 4:50 pm

Re: zmNinja on Galaxy S5

Post by tominator »

You nailed it. My phone cannot browse to the website at all. Now I can start digging for the reason. Thanks
tominator
Posts: 4
Joined: Tue Mar 14, 2017 4:50 pm

Re: zmNinja on Galaxy S5

Post by tominator »

RESOLVED! Open up Chrome / Settings/ Advanced and clear the check box for "Safe Browsing - Protect you and your device from dangerous sites". Then reboot the phone. zmNinja works like a champ now. Thanks for your tips!
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja on Galaxy S5

Post by asker »

Great - glad you have them resolved. I'll add this to the FAQ 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
Post Reply