Closed vtdstein95 closed 3 years ago
When using mlapi, please make sure you have migrated all the config items to mlapiconfig.ini and not using use_sequence=no
https://zmeventnotification.readthedocs.io/en/latest/guides/hooks.html?highlight=exceptions#exceptions-when-using-mlapi
This seems like its a config issue somewhere. I can't figure that out looking at logs. You'll have to look at mlapiconfig.ini - comment out monitor specific sections first, then add then back one by one
Nail on the head. Thank you!
I just went back to the default mlapiconfig.ini to test. Works like a charm now. I'll slowly add back my customizations and see if I can get to the config I want.
Thanks again for the response.
-- Dave
Event Server: 6.1.23 Hooks: app:6.1.23, pyzm:0.3.48 mlapi: 2.2.18 ZoneMinder: 1.35.28
First, sorry, debug help is probably the wrong title. This must be operator/user error. I have walked through the instructions three times over the past couple of days but so far no luck figuring out what I have done wrong. Thank you in advance for any pointers.
I have mirrored my secrets.ini files on the zm/eventserver and mlapi server. I have also copy/pasted the working detection sections from my zm/eventserver objectconfig.ini into the mlapi server mlapiconfig.ini
mlapi server is working for every manual test I can do from the client (zm/eventserver) does work. For example, running this on the zm server (I copy/paste the usernames and passwords from the secrets.ini file):
$ curl -XPOST "http://10.8.2.54:5000/api/v1/detect/object?delete=false" -d "url=https://zm.server/zm/cgi-bin/nph-zms?mode=single%26maxfps=5%26buffer=1000%26monitor=7%26user=zmuser%26pass=zmpass" -H "Authorization: Bearer ${ACCESS_TOKEN}"
Returns:On the mlapi server when run $python3
./mlapi.py
-c/etc/zm/mlapiconfig.ini
and the eventserver calls mlapi, this is the output:This is in the /var/log/zm/zmesdetect_m7.log:
If I check the above url on from the zm/eventserver this is the response:
On the zm/eventserver running
sudo -u www-data /usr/bin/zmeventnotification.pl --debug
, this is the corresponding output (I have ml_fallback_local=yes):