You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of problem:
When configuring multiple cameras, if one fails to respond, the platform throws a configuration error.
Expected:
Working cameras configured properly, non-responsive one logged.
Problem-relevant: amcrest.yaml with a dummy ip address of non-existent camera should be sufficient to test.
Traceback (if applicable):
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Error during setup of component amcrest
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/connection.py", line 83, in create_connection
raise err
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connection.py", line 166, in connect
conn = self._new_conn()
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f702c69e710>: Failed to establish a new connection: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.3.3', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getMachineName (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f702c69e710>: Failed to establish a new connection: [Errno 113] No route to host',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/amcrest.py", line 99, in setup
device.get(CONF_PASSWORD)).camera
File "/srv/homeassistant/lib/python3.5/site-packages/amcrest/__init__.py", line 32, in __init__
timeout_protocol=timeout_protocol
File "/srv/homeassistant/lib/python3.5/site-packages/amcrest/http.py", line 67, in __init__
self._token = self._generate_token()
File "/srv/homeassistant/lib/python3.5/site-packages/amcrest/http.py", line 81, in _generate_token
req = requests.get(url, auth=auth)
File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.3.3', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getMachineName (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f702c69e710>: Failed to establish a new connection: [Errno 113] No route to host',))
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-02-27 15:45:06 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-02-27 15:45:11 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform onkyo is taking over 10 seconds.
2018-02-27 15:45:20 WARNING (Thread-49) [netdisco.ssdp] Found malformed XML at http://192.168.1.142:9080: status=ok
The text was updated successfully, but these errors were encountered:
Home Assistant release:
0.64
Python release:
3.5.3
Component/platform:
amcrest
Description of problem:
When configuring multiple cameras, if one fails to respond, the platform throws a configuration error.
Expected:
Working cameras configured properly, non-responsive one logged.
Problem-relevant: amcrest.yaml with a dummy ip address of non-existent camera should be sufficient to test.
The text was updated successfully, but these errors were encountered: