Page 1 of 1

zmnotification problem

Posted: Wed Mar 17, 2021 3:10 pm
by frederikprivate
hi all

i am running zoneminder 1.34 with zmeventnotification
i get this error when trying to detect stuff
anybody got any idea ?
this is running in docker with dlandon repo

root@318241142f59:/etc/zm# /var/lib/zmeventnotification/bin/zm_detect.py --monitorid "1" --eventid 355 --config "/etc/zm/objectconfig.ini"Unrecoverable error:__init__() got an unexpected keyword argument 'reflect' Traceback:Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 565, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 254, in main_handler
log.init(name='zmesdetect_' + 'm' + args.get('monitorid'), override=g.config['pyzm_overrides'])
File "/usr/local/lib/python3.8/dist-packages/pyzm/ZMLog.py", line 166, in init
meta = MetaData(engine,reflect=True)
TypeError: __init__() got an unexpected keyword argument 'reflect'

Re: zmnotification problem

Posted: Wed Mar 17, 2021 10:25 pm
by systemd
I also had this on my Ubuntu 18.04 server, the workaround is to downgrade sqlalchemy.
https://pypi.org/project/SQLAlchemy/1.3.23/

Re: zmnotification problem

Posted: Thu Mar 18, 2021 8:08 am
by frederikprivate
hi,

thx for your answer :) i don't get the error anymore.
i now get this in the log : Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed]
if i do zm_detect.py manual , it does it work.
but it seems zm_event_start.sh is not getting called ?

Re: zmnotification problem

Posted: Thu Mar 18, 2021 9:25 am
by Magic919
Run the event start manually.

Re: zmnotification problem

Posted: Thu Mar 18, 2021 10:03 am
by frederikprivate
also doens't do anything ..
when i run the event in ZMES_PICTURE_URL , i get a clear picture

Re: zmnotification problem

Posted: Thu Mar 18, 2021 10:11 am
by Magic919
Ok. Sounds like you need to debug it.

Re: zmnotification problem

Posted: Thu Mar 18, 2021 10:16 am
by frederikprivate
was a password problem ...
now i get this

RR [zmesdetect_m72] [Error running model: OpenCV(4.5.0) /root/opencv/modules/dnn/src/darknet/darknet_importer.cpp:207: error: (-212:Parsing error) Failed to parse NetParameter file: /var/lib/zmeventnotification/models/yolov4/yolov4.cfg in function 'readNetFromDarknet'

Re: zmnotification problem

Posted: Thu Mar 18, 2021 2:30 pm
by frederikprivate
detection seems to be working now
but now i get this error ...
requests.exceptions.SSLError: HTTPSConnectionPool(host='192.168.9.2', port=1443): Max retries exceeded with url: /zm/api/events/572.json?username=admin&password=xxxxxxx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1123)')))

in zmeventnotification verify is off

Re: zmnotification problem

Posted: Thu Mar 18, 2021 5:22 pm
by Magic919
Didn't know that was possible.

Re: zmnotification problem

Posted: Thu Mar 25, 2021 3:32 pm
by daveotech
The solution to this error can be found here.; simply run "pip3 install sqlalchemy==1.3.23"

https://github.com/dlandon/zoneminder.m ... issues/174