ZoneMinder / zmNinja

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

zmNinja fails against ZM 1.31.1 #533

Closed tradel closed 7 years ago

tradel commented 7 years ago

Before you create an issue, please make sure you have read the FAQ at https://github.com/pliablepixels/zmNinja/wiki/FAQ. Common questions on API, no image etc are covered there.

Platform & OS Version MacOS Sierra 10.12.6

The version of the app you are reporting: 1..2.41D

Device details: MacBook Pro

What is the nature of your issue Bug

Details With a clean install of ZM 1.31.1, zmNinja passes the API tests but fails to bring up the montage or event list. The following error is reported in the logs:

Sep 11, 2017 06:37 PM INFO Error retrieving ZM_PATH_ZMS: {"success":false,"data":{"name":"Invalid config","message":"Invalid config","url":"/zm/api/configs/viewByName/ZM_PATH_ZMS.json","exception":{"class":"NotFoundException","code":404,"message":"Invalid config"}}}
Sep 11, 2017 06:37 PM DEBUG Config URL for ZMS PATH is:https://zoneminder.radel.us/zm/api/configs/viewByName/ZM_PATH_ZMS.json

Full log file is attached. Same happens with zmNinja on iOS by the way.

zmNinja-logs-Sep-11-17_18-38-35.txt

Thanks!

pliablepixels commented 7 years ago

I am on ZM 1.31.1 as well, and on OS X. I use both zmNinja desktop and iOS versions and they both work fine. You might have truncated logs - I ZM_PATH_ZMS failing is fine - its part of the wizard process. I don't see any logs related to events list or montage list. Best thing to do is try the APIs on the browser first - see if you get anything (or a blank screen)

  1. Launch a browser
  2. Log in
  3. Open a new tab in the same browser
  4. type in http://server/zm/api/events.json and http://server/zm/api/monitors.json - what do you see? If its empty, you have a UTF8 issue
  5. If it works, please send logs for those screens (please don't truncate logs)
tradel commented 7 years ago

I already did the API troubleshooting steps, and was able to pull up both monitors.json and events.json with no problem.

Oddly enough, I restarted zmNinja to grab more debug logs, and the problem went away. So maybe it's a problem only on the first run of the app.