[Solved] ZM 1.34.23 + Eventserver + ML Hooks
Posted: Tue Feb 16, 2021 6:53 pm
For several months I had all of this working. I always got a chuckle that the facial recognition would identify my wife as my daughter and my daughter as my wife which mortified them both. I am sure I could make the recognition better with better/more photos but what is the fun in that.
Things stopped working a month or so ago and I really have no idea where to start with the debug. I am guessing this may have happened after an update to some critical component. I did not intentionally change anything in my configuration but I must have. I do keep Ubuntu current with apt update && apt upgrade.
I find no useful (to me) clues in the log. ZM continues to function just like it always has but something in zm_detect.py fails. The error appears to be a related to login, so I disabled AUTH but that made no difference. I have uninstalled the event server and ML hooks and walked through the install step by step, but end up right back where I started with the same errors in the log.
Thank you in advance for any guidance you can provide.
My setup
Ubuntu 18.04
Apache 2
MariaDB
PHP 7.4-fpm
Things stopped working a month or so ago and I really have no idea where to start with the debug. I am guessing this may have happened after an update to some critical component. I did not intentionally change anything in my configuration but I must have. I do keep Ubuntu current with apt update && apt upgrade.
I find no useful (to me) clues in the log. ZM continues to function just like it always has but something in zm_detect.py fails. The error appears to be a related to login, so I disabled AUTH but that made no difference. I have uninstalled the event server and ML hooks and walked through the install step by step, but end up right back where I started with the same errors in the log.
Thank you in advance for any guidance you can provide.
My setup
Ubuntu 18.04
Apache 2
MariaDB
PHP 7.4-fpm
Code: Select all
2021-02-16 13:02:31.954738 zmesdetect_m5[25311].FAT-zm_detect.py/577 [Unrecoverable error:HTTPSConnectionPool(host='my.server.address', port=443): Max retries exceeded with url: /zm/api/host/login.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8871860160>: Failed to establish a new connection: [Errno -2] Name or service not known',)) Traceback:Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 298, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 153, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f8871860160>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='my.server.address', port=443): Max retries exceeded with url: /zm/api/host/login.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8871860160>: Failed to establish a new connection: [Errno -2] Name or service not known',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 574, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 328, in main_handler
zmapi = zmapi.ZMApi(options=api_options)
File "/usr/local/lib/python3.6/dist-packages/pyzm/api.py", line 77, in __init__
self._login()
File "/usr/local/lib/python3.6/dist-packages/pyzm/api.py", line 183, in _login
r = self.session.post(url, data=data)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 567, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 520, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 630, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='my.server.address', port=443): Max retries exceeded with url: /zm/api/host/login.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8871860160>: Failed to establish a new connection: [Errno -2] Name or service not known',))
]