I have a similar issue. Every couple of days or so, hass.io would stop responding. I couldn’t connect through the interface. I have hass.io installed on a Pi 4 in a way that I can log into the Pi 4 to make sure everything is working properly. The last three times hass.io has stopped responding, I was able to copy home-assistant.log
for inspection. In each case, things start going bad in the same way, starting with a `[pynetgear]’ error.
The config file portion for Netgear (model R6220) is:
device_tracker:
- platform: netgear
password: !secret netgear_6220_password
host: 192.168.1.1
username: admin
exclude:
- 192.168.1.21 # HUE hub
- 192.168.1.22 # HS110
- 192.168.1.23 # HS110
- 192.168.1.24 # HS105
- 192.168.1.25 # HS105
- 192.168.1.26 # HS105
- 192.168.1.4 # Roku
- 192.168.1.5 # Roku
- 192.168.1.6 # Roku
- 192.168.1.32 # HASSIO
- 192.168.1.19 # 2nd floor thermostat
- 192.168.1.10 # Nest
Log 1 (NOTE: 192.168.1.1 is my netgear router and 192.168.1.21 is my Hue hub - the first line in the log file is a typical warning I get for the Radio Therm thermostat - I consider this a normal response. So somewhere between 16:36 and 16:49, things went bad):
2020-01-08 16:36:21 WARNING (MainThread) [homeassistant.components.climate] Updating radiotherm climate took longer than the scheduled update interval 0:01:00
2020-01-08 16:49:37 ERROR (MainThread) [homeassistant.components.hue.sensor_base] Unable to reach bridge 192.168.1.21 ()
2020-01-08 16:49:37 WARNING (SyncWorker_6) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.24: Communication error
2020-01-08 16:49:37 WARNING (SyncWorker_3) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.22: Communication error
2020-01-08 16:49:37 WARNING (SyncWorker_14) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.26: Communication error
2020-01-08 16:49:37 WARNING (SyncWorker_11) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.25: Communication error
2020-01-08 16:49:37 WARNING (SyncWorker_9) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.23: Communication error
2020-01-08 16:49:39 WARNING (MainThread) [homeassistant.components.media_player] Updating roku media_player took longer than the scheduled update interval 0:00:10
2020-01-08 16:49:43 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-01-08 16:49:43 ERROR (InfluxDB) [homeassistant.components.influxdb] Write error: HTTPConnectionPool(host='192.168.1.12', port=8086): Max retries exceeded with url: /write?db=home_assistant (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xadf29f90>, 'Connection to 192.168.1.12 timed out. (connect timeout=5)'))
2020-01-08 16:49:50 WARNING (MainThread) [homeassistant.components.media_player] Updating roku media_player took longer than the scheduled update interval 0:00:10
2020-01-08 16:49:56 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-01-08 16:49:58 WARNING (MainThread) [homeassistant.components.sensor] Updating history_stats sensor took longer than the scheduled update interval 0:00:30
2020-01-08 16:49:58 WARNING (MainThread) [homeassistant.components.sensor] Updating sql sensor took longer than the scheduled update interval 0:00:30
2020-01-08 16:50:00 ERROR (SyncWorker_16) [pynetgear] Error talking to API
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 164, in _new_conn
% (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0xad3a24f0>, 'Connection to 192.168.1.1 timed out. (connect timeout=30)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.1', port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xad3a24f0>, 'Connection to 192.168.1.1 timed out. (connect timeout=30)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 375, in _make_request
data=message, timeout=30, verify=False)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='192.168.1.1', port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xad3a24f0>, 'Connection to 192.168.1.1 timed out. (connect timeout=30)'))
The following is the log when hass.io disconnected this morning. Adding a little explanation, we have a “going to bed” script that turns off some lights, turns on the upstairs TV, and sets the main floor heating thermostat to a “sleeping temperature.” The first line in the log below is the end of the thermostat set script. The next line appears to me to be related to the upstairs Roku (I select the source channel, and then use the remote component to move to the desired channel).
At 21:21, there were three events logged where hass.io could not connect to a TP-LINK switch (192.168.1.24). Then at 23:26, I get the device_tracker error, which I think is related to the Netgear router (not sure). This is where the first pynetgear error pops up this time. But oddly, hass.io seems to recover, as everything keeps working until 05:43. This is when the wake-up script fires, which turns on the TV and selects the Roku source. I get the same type of error as I did the night before, but everything continued to work (TV came on, Roku selected the proper source, and the remote keystrokes selected the right action in the source).
Then at 07:08, hass.io starts to crash - it finally does disconnect from the outside world at 07:28 with the [pynetgear]
error.
2020-01-11 21:08:19 INFO (SyncWorker_18) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Heating mode, so no temp changes to second floor which is OFF
2020-01-11 21:08:26 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 355, in post
domain, service, data, True, self.context(request)
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 205, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 336, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 358, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/roku/media_player.py", line 221, in select_source
channel.launch()
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 95, in launch
self.roku.launch(self)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 304, in launch
return self._post('/launch/%s' % app.id, params=params)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 210, in _post
return self._call('POST', path, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 227, in _call
raise RokuException(resp.content)
roku.core.RokuException: b''
2020-01-11 21:21:12 WARNING (SyncWorker_1) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.24: Communication error
2020-01-11 21:34:38 WARNING (SyncWorker_3) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.24: Communication error
2020-01-11 21:52:39 WARNING (SyncWorker_1) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.24: Communication error
2020-01-11 22:01:00 INFO (SyncWorker_8) [homeassistant.components.python_script] Executing hvac_mode_temp_settings.py: {'entity_id': 'binary_sensor.2nd_saver_mode'}
2020-01-11 22:01:00 INFO (SyncWorker_11) [homeassistant.components.python_script.hvac_mode_temp_settings.py] 1st floor thermostat UNCHANGED at 65.0 in heat mode
2020-01-11 22:12:07 WARNING (MainThread) [homeassistant.components.climate] Updating radiotherm climate took longer than the scheduled update interval 0:01:00
2020-01-11 22:34:29 WARNING (MainThread) [homeassistant.components.climate] Updating radiotherm climate took longer than the scheduled update interval 0:01:00
2020-01-11 22:45:40 WARNING (MainThread) [homeassistant.components.climate] Updating radiotherm climate took longer than the scheduled update interval 0:01:00
2020-01-11 22:56:50 WARNING (MainThread) [homeassistant.components.climate] Updating radiotherm climate took longer than the scheduled update interval 0:01:00
2020-01-11 23:26:19 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-01-11 23:26:32 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-01-11 23:26:36 ERROR (SyncWorker_8) [pynetgear] Error talking to API
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/usr/local/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 400, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 423, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 331, in _raise_timeout
self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.1.1', port=5000): Read timed out. (read timeout=30)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 375, in _make_request
data=message, timeout=30, verify=False)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.1.1', port=5000): Read timed out. (read timeout=30)
2020-01-11 23:26:36 ERROR (SyncWorker_8) [pynetgear] Get attached devices failed
2020-01-11 23:26:36 WARNING (SyncWorker_8) [homeassistant.components.netgear.device_tracker] Error scanning devices
2020-01-12 00:57:15 WARNING (MainThread) [homeassistant.components.sensor] Updating sql sensor took longer than the scheduled update interval 0:00:30
2020-01-12 05:43:00 INFO (SyncWorker_5) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Change 1st floor: True change 2nd floor: False
2020-01-12 05:43:00 INFO (SyncWorker_13) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Changed 1st floor thermostat from 68.0 to 70.0
2020-01-12 05:43:00 INFO (SyncWorker_17) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Changed 1st floor thermostat from 68.0 to 70.0
2020-01-12 05:43:00 INFO (SyncWorker_13) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Heating mode, so no temp changes to second floor which is OFF
2020-01-12 05:43:00 INFO (SyncWorker_5) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Changed 1st floor thermostat from 68.0 to 70.0
2020-01-12 05:43:00 INFO (SyncWorker_17) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Heating mode, so no temp changes to second floor which is OFF
2020-01-12 05:43:00 INFO (SyncWorker_5) [homeassistant.components.python_script.hvac_mode_temp_settings.py] Heating mode, so no temp changes to second floor which is OFF
2020-01-12 05:43:03 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 355, in post
domain, service, data, True, self.context(request)
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 205, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 336, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 358, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/roku/media_player.py", line 221, in select_source
channel.launch()
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 95, in launch
self.roku.launch(self)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 304, in launch
return self._post('/launch/%s' % app.id, params=params)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 210, in _post
return self._call('POST', path, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 227, in _call
raise RokuException(resp.content)
roku.core.RokuException: b''
2020-01-12 07:08:46 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2906265680] Client exceeded max pending messages [2]: 512
2020-01-12 07:22:53 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2922344400] Client exceeded max pending messages [2]: 512
2020-01-12 07:22:53 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2967273904] Client exceeded max pending messages [2]: 512
2020-01-12 07:28:30 ERROR (MainThread) [homeassistant.components.hue.sensor_base] Unable to reach bridge 192.168.1.21 ()
2020-01-12 07:28:31 WARNING (SyncWorker_19) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.22: Communication error
2020-01-12 07:28:31 WARNING (SyncWorker_4) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.26: Communication error
2020-01-12 07:28:31 WARNING (SyncWorker_8) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.25: Communication error
2020-01-12 07:28:31 WARNING (SyncWorker_10) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.24: Communication error
2020-01-12 07:28:31 WARNING (SyncWorker_2) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.23: Communication error
2020-01-12 07:28:32 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-01-12 07:28:43 WARNING (MainThread) [homeassistant.components.media_player] Updating roku media_player took longer than the scheduled update interval 0:00:10
2020-01-12 07:28:45 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-01-12 07:28:47 ERROR (InfluxDB) [homeassistant.components.influxdb] Write error: HTTPConnectionPool(host='192.168.1.12', port=8086): Max retries exceeded with url: /write?db=home_assistant (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xac088770>, 'Connection to 192.168.1.12 timed out. (connect timeout=5)'))
2020-01-12 07:28:49 ERROR (SyncWorker_16) [pynetgear] Error talking to API
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/usr/local/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 400, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 423, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 331, in _raise_timeout
self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.1.1', port=5000): Read timed out. (read timeout=30)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 375, in _make_request
data=message, timeout=30, verify=False)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.1.1', port=5000): Read timed out. (read timeout=30)
2020-01-12 07:28:49 ERROR (SyncWorker_16) [pynetgear] Get attached devices failed
2020-01-12 07:28:49 WARNING (SyncWorker_16) [homeassistant.components.netgear.device_tracker] Error scanning devices
2020-01-12 07:29:00 ERROR (SyncWorker_2) [pynetgear] Error talking to API
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
OSError: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb1844310>: Failed to establish a new connection: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.1', port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb1844310>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pynetgear/__init__.py", line 375, in _make_request
data=message, timeout=30, verify=False)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.1.1', port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb1844310>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
The above continues to repeat, seemingly forever if I let it go...
The Roku error is not new, but the [pynetgear]
error is new (I just enabled that, so it’s likely the culprit). I’m disabling the Netgear integration to see if this fixes some things.
Anyone have any other ideas of why this is happening?