Good day, I tried and it’s throwing an error
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x15245c35b190>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='compreface', port=8001): Max retries exceeded with url: /api/v1/recognition/faces?subject=juan (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15245c35b190>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/viseron/components/__init__.py", line 130, in setup_component
result = component_module.setup(self._vis, config)
File "/src/viseron/components/compreface/__init__.py", line 115, in setup
ComprefaceTrain(config)
File "/src/viseron/components/compreface/face_recognition.py", line 164, in __init__
self.train()
File "/src/viseron/components/compreface/face_recognition.py", line 204, in train
self._face_collection.delete_all(face_dir)
File "/usr/local/lib/python3.8/dist-packages/compreface/collections/face_collections.py", line 107, in delete_all
return self.delete_all_examples_of_subject_by_name.execute(request)
File "/usr/local/lib/python3.8/dist-packages/compreface/use_cases/delete_all_examples_of_subject_by_name.py", line 36, in execute
result: dict = self.add_example_of_subject.delete(request.subject)
File "/usr/local/lib/python3.8/dist-packages/compreface/client/add_example_of_subject.py", line 80, in delete
result = requests.delete(url, headers={'x-api-key': self.api_key})
File "/usr/local/lib/python3.8/dist-packages/requests/api.py", line 157, in delete
return request("delete", url, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='compreface', port=8001): Max retries exceeded with url: /api/v1/recognition/faces?subject=juan (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15245c35b190>: Failed to establish a new connection: [Errno 111] Connection refused'))
[2022-11-02 18:35:33] [ERROR ] [viseron.components] - Uncaught exception setting up component compreface: HTTPConnectionPool(host='compreface', port=8001): Max retries exceeded with url: /api/v1/recognition/faces?subject=juan (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15245c35b190>: Failed to establish a new connection: [Errno 111] Connection refused'))
None
[2022-11-02 18:35:33] [ERROR ] [viseron.components] - Setup of component compreface failed
[2022-11-02 18:35:33] [ERROR ] [viseron.components] - Failed setup of component compreface