I had both zoneminder and zmeventnotification running without any issues for years but recently notification stopped working with the following symptoms:
event start hook exits with code .
zmeventnotification.log:
Code: Select all
06/27/2023 00:40:37.831528 zmeventnotification[20987].DB1 [main:1035] [|----> FORK:Kalitka (2), eid:1172732 hook start returned with text: json:[] exit:1]
Code: Select all
06/27/23 00:40:37 zmesdetect_m2[20991] INF ZMLog.py:292 [Setting up signal handler for logs]
06/27/23 00:40:37 zmesdetect_m2[20991] INF ZMLog.py:301 [Switching global logger to ZMLog]
06/27/23 00:40:37 zmesdetect_m2[20991] INF zm_detect.py:283 [---------| app:6.1.28, pyzm:0.3.56, ES:6.1.28
, OpenCV:4.5.0|------------]
06/27/23 00:40:37 zmesdetect_m2[20991] INF utils.py:405 [Reading config from: /etc/zm/objectconfig.ini]
06/27/23 00:40:37 zmesdetect_m2[20991] INF utils.py:410 [Reading secrets from: /etc/zm/secrets.ini]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:382 [Secret token found in config: !ZM_PORTAL]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:382 [Secret token found in config: !ZM_USER]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:382 [Secret token found in config: !ZM_PASSWORD]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:382 [Secret token found in config: !ZM_API_PORTAL]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:382 [Secret token found in config: !ML_USER]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:382 [Secret token found in config: !ML_PASSWORD]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:382 [Secret token found in config: !PLATEREC_ALPR_KEY]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG1 utils.py:445 [allowing self-signed certs to work...]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:455 [Now checking for monitor overrides]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:174 [import_zm_zones: match_reason=False and reason=Motion Outside]
06/27/23 00:40:37 zmesdetect_m2[20991] DBG2 utils.py:177 [Getting ZM zones using http://localhost/zm/api/zones/forMonitor/2.json?username=xxx&password=yyy&user=xxx&pass=yyy]
06/27/23 00:40:37 zmesdetect_m2[20991] ERR utils.py:202 [HTTP Error in import_zm_zones:HTTP Error 500: Internal Server Error]
06/27/23 00:40:37 zmesdetect_m2[20991] ERR utils.py:514 [Error parsing config:/etc/zm/objectconfig.ini]
06/27/23 00:40:37 zmesdetect_m2[20991] ERR utils.py:515 [Error was:HTTP Error 500: Internal Server Error]
06/27/23 00:40:37 zmesdetect_m2[20991] FAT utils.py:516 [error: Traceback:Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/zmes_hook_helpers/utils.py", line 499, in process_config
import_zm_zones(args.get('monitorid'), args.get('reason'))
File "/usr/local/lib/python3.7/dist-packages/zmes_hook_helpers/utils.py", line 200, in import_zm_zones
input_file = opener.open(url)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
]
ZM 1.36.33 Debian 10