API was working from zmNinja, but has stopped
Posted: Wed Nov 01, 2017 11:07 am
Hi Everyone,
I'm trying to get zmNinja 1.2.504 working again with my ZoneMinder
1.30.0 installation. (It was working up to a while ago, and has
inexplicably stopped working.) Operating system patches have been
applied regularly, but no ZM updates since then.
in replies below (there's a lot ).
The one thing that seems unusual is that the apache access logs show
numerous 401 failures, but the same URL is subsequently tried and
succeeds (if I'm reading the logs correctly).
I'm out of ideas on what to try, and will very much appreciate any help.
Thanks!
Alistair
ZoneMinder configuration extract:
OPT_USE_AUTH not checked
AUTH_TYPE built in
AUTH_RELAY hashed
AUTH_HASH_SECRET not set
AUTH_HASH_IPS checked
AUTH_HASH_LOGINS not checked
OPT_USE_API checked
PATH_ZMS /zm/cgi-bin/nph-zms
zmNinja configuration:
low bandwidth mode on
auto switch bandwidth on
use ZM authentication not selected
ZM portal url: https://***:***@example.com/zm
path to cgi-bin: https://***:***@example.com/zm/cgi-bin
ZM api url: https://***:***@example.com/zm/api
Typing the first URL (with username / password) in to a browser brings
up the normal web interface.
The email log option in zmNinja isn't working for me, a partial extract
of the log (hand copied):
I'm trying to get zmNinja 1.2.504 working again with my ZoneMinder
1.30.0 installation. (It was working up to a while ago, and has
inexplicably stopped working.) Operating system patches have been
applied regularly, but no ZM updates since then.
- The normal ZM web interface works without any problems - I can view individual cameras, montage, etc.
- zmNinja says it has authenticated correctly, but the montage view just displays the no-video-stream image.
- The API tests listed at https://github.com/pliablepixels/zmNinj ... work-on-ZM pass - see below (I've hand edited out credentials and IP addresses)
- All testing is done on the local 192.168.x.x network (it used to work from the internet as well, but one thing at a time).
- The zm user has view stream, edit events, edit control, edit monitors, edit groups and edit system privileges set.
in replies below (there's a lot ).
The one thing that seems unusual is that the apache access logs show
numerous 401 failures, but the same URL is subsequently tried and
succeeds (if I'm reading the logs correctly).
I'm out of ideas on what to try, and will very much appreciate any help.
Thanks!
Alistair
ZoneMinder configuration extract:
OPT_USE_AUTH not checked
AUTH_TYPE built in
AUTH_RELAY hashed
AUTH_HASH_SECRET not set
AUTH_HASH_IPS checked
AUTH_HASH_LOGINS not checked
OPT_USE_API checked
PATH_ZMS /zm/cgi-bin/nph-zms
zmNinja configuration:
low bandwidth mode on
auto switch bandwidth on
use ZM authentication not selected
ZM portal url: https://***:***@example.com/zm
path to cgi-bin: https://***:***@example.com/zm/cgi-bin
ZM api url: https://***:***@example.com/zm/api
Typing the first URL (with username / password) in to a browser brings
up the normal web interface.
The email log option in zmNinja isn't working for me, a partial extract
of the log (hand copied):
Code: Select all
Disabling strict SSL checking
All init over, going to portal login
Entering Portal Main
Inside Portal login Enter handler
User credentials are provided
...
auth-success emit: Successful
...
PortalLogin: auth success
getAPIversion called
...
Monitor load was successful, loaded 6 monitors
...
Monitor 1 will use fid for direct image access
...
DataModel: Setting MID:1 to show
...
DataModel: Getting auth from https://user:password@domain.name/zm/index...
DataModel: Did not find a stream auth key, looking for user=
Data Model: Did not find any stream mode of auth
Stream authentication construction:
found a packery layout
...
~~loaded image is loaded for file:///android_asset/www/img/novideo.png
...