zmnotification problem

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
frederikprivate
Posts: 5
Joined: Wed Mar 17, 2021 3:05 pm

zmnotification problem

Post 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'
User avatar
systemd
Posts: 3
Joined: Mon Aug 10, 2020 5:20 pm

Re: zmnotification problem

Post 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/
frederikprivate
Posts: 5
Joined: Wed Mar 17, 2021 3:05 pm

Re: zmnotification problem

Post 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 ?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: zmnotification problem

Post by Magic919 »

Run the event start manually.
-
frederikprivate
Posts: 5
Joined: Wed Mar 17, 2021 3:05 pm

Re: zmnotification problem

Post by frederikprivate »

also doens't do anything ..
when i run the event in ZMES_PICTURE_URL , i get a clear picture
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: zmnotification problem

Post by Magic919 »

Ok. Sounds like you need to debug it.
-
frederikprivate
Posts: 5
Joined: Wed Mar 17, 2021 3:05 pm

Re: zmnotification problem

Post 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'
frederikprivate
Posts: 5
Joined: Wed Mar 17, 2021 3:05 pm

Re: zmnotification problem

Post 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
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: zmnotification problem

Post by Magic919 »

Didn't know that was possible.
-
daveotech
Posts: 1
Joined: Thu Mar 25, 2021 3:31 pm

Re: zmnotification problem

Post 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
Post Reply