home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

aiohttp server crash #46568

Closed anubisg1 closed 3 years ago

anubisg1 commented 3 years ago

The problem

2021-02-15 12:22:58 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
    read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
    resp, reset = await task
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
    reset = await self.finish_response(request, resp, start_time)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
    await prepare_meth(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
    return await self._sendfile(request, fobj, offset, count)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
    await loop.sendfile(transport, fobj, offset, count)
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
    return await self._sendfile_fallback(transport, file,
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
    await proto.restore()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
    self._transport.resume_reading()
  File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
    self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'

What is version of Home Assistant Core has the issue?

2021.2.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Example YAML snippet

# Put your YAML below this line

Anything in the logs that might be useful for us?

# Put your logs below this line
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
    read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
    resp, reset = await task
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
    reset = await self.finish_response(request, resp, start_time)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
    await prepare_meth(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
    return await self._sendfile(request, fobj, offset, count)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
    await loop.sendfile(transport, fobj, offset, count)
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
    return await self._sendfile_fallback(transport, file,
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
    await proto.restore()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
    self._transport.resume_reading()
  File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
    self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
frenck commented 3 years ago

Could you describe your set and what you were doing at the time of the crash? (in other words, please provide the means for a re-production scenario).

anubisg1 commented 3 years ago

HASS.IO rebooted after a power outage. looking at the logs , it seems to be repeating and crashing everytime it fails to resolve a URL via DNS:

2021-02-15 12:22:47 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://my_url.com:1234/?cmd=deviceInfo&type=json&password=SeCr3tPaSsWoRd failed with [Errno -2] Name does not resolve
2021-02-15 12:22:47 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 90 seconds.
2021-02-15 12:22:55 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
2021-02-15 12:22:57 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:22:58 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
resp, reset = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
2021-02-15 12:23:16 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:23:37 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:23:57 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:24:10 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:24:10 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at core-deconz
2021-02-15 12:24:10 WARNING (MainThread) [homeassistant.config_entries] Config entry '00212E069F20' for deconz integration not ready yet. Retrying in 80 seconds
2021-02-15 12:24:18 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://my_url.com:1234/?cmd=deviceInfo&type=json&password=SeCr3tPaSsWoRd failed with [Errno -2] Name does not resolve
2021-02-15 12:24:18 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 120 seconds.
2021-02-15 12:24:49 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
2021-02-15 12:24:49 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
2021-02-15 12:24:49 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
2021-02-15 12:24:57 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:25:09 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:25:21 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:25:35 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at core-deconz
2021-02-15 12:25:35 WARNING (MainThread) [homeassistant.config_entries] Config entry '00212E069F20' for deconz integration not ready yet. Retrying in 80 seconds
2021-02-15 12:25:52 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:26:18 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://my_url.com:1234/?cmd=deviceInfo&type=json&password=SeCr3tPaSsWoRd failed with [Errno -2] Name does not resolve
2021-02-15 12:26:18 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 150 seconds.
2021-02-15 12:26:44 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
resp, reset = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
2021-02-15 12:26:57 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:27:03 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at core-deconz
2021-02-15 12:27:03 WARNING (MainThread) [homeassistant.config_entries] Config entry '00212E069F20' for deconz integration not ready yet. Retrying in 80 seconds
2021-02-15 12:27:15 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:27:33 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-15 12:28:33 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at core-deconz
2021-02-15 12:28:33 WARNING (MainThread) [homeassistant.config_entries] Config entry '00212E069F20' for deconz integration not ready yet. Retrying in 80 seconds
2021-02-15 12:28:48 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://my_url.com:1234/?cmd=deviceInfo&type=json&password=SeCr3tPaSsWoRd failed with [Errno -2] Name does not resolve
2021-02-15 12:28:48 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 180 seconds.
2021-02-15 12:29:56 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
2021-02-15 12:30:13 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
resp, reset = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
anubisg1 commented 3 years ago

full log if tht matters

2021-02-19 12:33:22 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-02-19 12:33:22 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-02-19 12:33:22 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for ytube_music_player which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-02-19 12:33:22 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-02-19 12:33:29 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176340857328] Received invalid command: browser_mod/connect
2021-02-19 12:33:32 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335477056] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:33 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335477056] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for fullykiosk which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-02-19 12:33:34 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335477056] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:34 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176340857328] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176340857328] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:39 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335131408] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:39 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
resp, reset = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
2021-02-19 12:33:41 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335477056] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:44 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335131408] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:44 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335477056] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:46 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335477056] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:47 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 21b901cad8cd7e5197850141b456c81f30c84ae0cfa843a7cd2bcfa278665f1c from 192.168.0.1
2021-02-19 12:33:48 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176332942640] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:48 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 21b901cad8cd7e5197850141b456c81f30c84ae0cfa843a7cd2bcfa278665f1c from 192.168.0.1
2021-02-19 12:33:49 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176332940768] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:49 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335131408] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:33:57 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176332942640] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:34:00 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176332940768] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:34:00 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335131408] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:34:08 WARNING (MainThread) [homeassistant.components.calendar] Setup of calendar platform google is taking over 10 seconds.
2021-02-19 12:34:08 WARNING (MainThread) [homeassistant.components.media_player] Setup of media_player platform ps4 is taking over 10 seconds.
2021-02-19 12:34:09 ERROR (MainThread) [homeassistant.components.accuweather] Timeout fetching accuweather data
2021-02-19 12:34:09 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Rosice' for accuweather integration not ready yet. Retrying in 5 seconds
2021-02-19 12:34:09 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176332940768] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:34:09 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335131408] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:34:09 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Camera not found
2021-02-19 12:34:09 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Camera not found
2021-02-19 12:34:09 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Camera not found
2021-02-19 12:34:09 WARNING (MainThread) [homeassistant.config_entries] Config entry 'wardrobe-lamp' for shelly integration not ready yet. Retrying in 5 seconds
2021-02-19 12:34:10 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176335131408] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:34:11 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140176135367120] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
handler(self.hass, self, schema(msg))
File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
devices[deviceID].update(msg.get("data", None))
File "/config/custom_components/browser_mod/connection.py", line 83, in update
self.sensor = self.sensor or create_entity(
File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2021-02-19 12:34:14 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
resp, reset = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
2021-02-19 12:34:14 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://my_url.com:1234/?cmd=deviceInfo&type=json&password=SeCr3tPaSsWoRd failed with [Errno -2] Name does not resolve
2021-02-19 12:34:14 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 30 seconds.
2021-02-19 12:34:15 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Camera not found
2021-02-19 12:34:15 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Camera not found
2021-02-19 12:34:15 ERROR (MainThread) [homeassistant.components.image_processing] Error on receive image from entity: Camera not found
2021-02-19 12:34:29 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zha
2021-02-19 12:34:43 WARNING (MainThread) [homeassistant.components.ps4.media_player] PS4 could not be reached
2021-02-19 12:34:45 ERROR (stream_worker) [libav.h264] left block unavailable for requested intra4x4 mode -1
2021-02-19 12:34:45 ERROR (stream_worker) [libav.h264] error while decoding MB 0 26, bytestream 199505
2021-02-19 12:34:48 ERROR (stream_worker) [libav.h264] left block unavailable for requested intra4x4 mode -1
2021-02-19 12:34:48 ERROR (stream_worker) [libav.h264] error while decoding MB 0 8, bytestream 215097
2021-02-19 12:34:49 ERROR (stream_worker) [libav.h264] left block unavailable for requested intra4x4 mode -1
2021-02-19 12:34:49 ERROR (stream_worker) [libav.h264] error while decoding MB 0 21, bytestream 220724
2021-02-19 12:34:54 ERROR (stream_worker) [libav.h264] left block unavailable for requested intra mode
2021-02-19 12:34:54 ERROR (stream_worker) [libav.h264] error while decoding MB 0 10, bytestream 93121
2021-02-19 12:34:58 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-19 12:35:00 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-19 12:35:00 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2021-02-19 12:35:00 WARNING (MainThread) [homeassistant.components.sensor] Updating snmp sensor took longer than the scheduled update interval 0:00:10
2021-02-19 12:35:00 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
resp, reset = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
2021-02-19 12:35:01 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://my_url.com:1234/?cmd=deviceInfo&type=json&password=SeCr3tPaSsWoRd failed with [Errno -2] Name does not resolve
2021-02-19 12:35:01 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 60 seconds.
2021-02-19 12:35:25 WARNING (MainThread) [homeassistant.components.image_processing] Updating doods image_processing took longer than the scheduled update interval 0:00:06
2021-02-19 12:36:01 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://my_url.com:1234/?cmd=deviceInfo&type=json&password=SeCr3tPaSsWoRd failed with [Errno -2] Name does not resolve
2021-02-19 12:36:01 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 90 seconds.
rpitera commented 3 years ago

I've been having an issue with my REST sensors disappearing after 30 or so minutes of uptime. Everything comes back after a restart, but the behavior happens again in roughly the same time frame. I created a clean VM with the latest VDI and restored my last snapshot and saw the same behavior. I was looking at it from the perspective of a REST subsystems failure, but I also lose my generic cameras and local JSON calls as well so now I am thinking it may well be the same issue posted here.

I was running my logs to debug: homeassistant.components.rest.sensor: debug

But I don't know the proper config to debug aiohttp; how do I set this properly in my config. This issue has been driving me crazy for at least a month or two and this is as close as I have come to an explanation. I've provided the section of my logs where REST starts failing below after sanitizing it first but I think it would be more useful if I was debugging aiohttp.

2021-03-18 10:33:04 WARNING (SyncWorker_15) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3520776310>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /upnp/control/basicevent1
2021-03-18 10:33:08 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.161', port=49152): Read timed out.")': /setup.xml
2021-03-18 10:33:08 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:33:08 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:33:14 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f352e3c1d30>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /setup.xml
2021-03-18 10:33:14 WARNING (SyncWorker_33) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3511455ee0>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /upnp/control/basicevent1
2021-03-18 10:33:18 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:33:18 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:33:20 WARNING (SyncWorker_33) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3514077bb0>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /upnp/control/basicevent1
2021-03-18 10:33:23 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f350e975be0>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /setup.xml
2021-03-18 10:33:28 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:33:28 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:33:32 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.161', port=49152): Read timed out.")': /rulesservice.xml
2021-03-18 10:33:34 WARNING (SyncWorker_43) [urllib3.connectionpool] Retrying (Retry(total=5, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f35120b6b20>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /upnp/control/basicevent1
2021-03-18 10:33:38 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f351f9bcd60>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /rulesservice.xml
2021-03-18 10:33:38 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:33:38 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:33:40 WARNING (SyncWorker_43) [urllib3.connectionpool] Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f3515224e80>, 'Connection to 192.168.1.161 timed out. (connect timeout=3)')': /upnp/control/basicevent1
2021-03-18 10:33:47 WARNING (SyncWorker_27) [urllib3.connectionpool] Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.161', port=49152): Read timed out.")': /rulesservice.xml
2021-03-18 10:33:48 ERROR (MainThread) [homeassistant.components.nws] Error requesting NWS forecast hourly station KMMU data: 503, message='Service Unavailable', url=URL('https://api.weather.gov/gridpoints/OKX/20,30/forecast/hourly')
2021-03-18 10:33:48 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:33:48 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:33:58 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.226:3000/api/local/info/state failed with 
2021-03-18 10:33:58 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:33:58 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:33:58 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('UndefinedError: 'None' has no attribute 'notReady'') while processing template 'Template("{% if state_attr('sensor.rest980', 'cleanMissionStatus')['cycle'] == 'none' and state_attr('sensor.rest980', 'cleanMissionStatus')['notReady'] == 39 %}
  Pending
{% elif state_attr('sensor.rest980', 'cleanMissionStatus')['notReady'] > 0 %}
  Not Ready
{% else %} {% set mapper =  {
  'clean' : 'Clean',
  'quick' : 'Clean',
  'spot' : 'Spot',
  'evac' : 'Empty',
  'dock' : 'Dock',
  'train' : 'Train',
  'none' : 'Ready' } %}
{% set state =  state_attr('sensor.rest980', 'cleanMissionStatus')['cycle'] %} {{ mapper[state] if state in mapper else state }} {% endif %}")' for attribute '_state' in entity 'sensor.vacuum'
2021-03-18 10:34:11 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.236:8181/api/v2?apikey=[REDACTED]&cmd=get_libraries_table failed with 
2021-03-18 10:34:11 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:34:11 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:34:21 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.236:8181/api/v2?apikey=[REDACTED]&cmd=get_libraries failed with 
2021-03-18 10:34:21 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:34:21 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:34:31 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.183:7878/api/v3/queue?apikey=[REDACTED] failed with 
2021-03-18 10:34:31 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:34:41 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.163:61208/api/3/uptime failed with 
2021-03-18 10:34:41 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:34:51 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://westofeast.no-ip.org:8181/api/v2?apikey=[REDACTED]&cmd=get_libraries_table failed with 
2021-03-18 10:34:51 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:34:51 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:35:01 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://covidtracking.com/api/v1/states/nj/current.json failed with 
2021-03-18 10:35:01 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:35:01 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:35:11 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.211:61208/api/3/uptime failed with 
2021-03-18 10:35:11 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:35:21 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://westofeast.no-ip.org:8181/api/v2?apikey=[REDACTED]&cmd=get_libraries failed with 
2021-03-18 10:35:21 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:35:21 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:35:31 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://127.0.0.1:61209/api/3/uptime failed with 
2021-03-18 10:35:31 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:35:41 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.170:2323/?cmd=deviceInfo&type=json&password=[REDACTED] failed with 
2021-03-18 10:35:41 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:35:41 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:35:51 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://api.spacexdata.com/v3/launches/next failed with 
2021-03-18 10:35:51 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:35:51 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:35:51 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('UndefinedError: 'mappingproxy object' has no attribute 'rocket'') while processing template 'Template("{{ states.sensor.spacex.attributes["rocket"]["rocket_name"] }}")' for attribute '_state' in entity 'sensor.spacex_next_rocket'
2021-03-18 10:35:51 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('UndefinedError: 'mappingproxy object' has no attribute 'launch_site'') while processing template 'Template("{{ states.sensor.spacex.attributes["launch_site"]["site_name"] }}")' for attribute '_state' in entity 'sensor.spacex_next_launch_site'
2021-03-18 10:36:01 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://api.nasa.gov/planetary/apod?api_key=[REDACTED] failed with 
2021-03-18 10:36:01 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:36:01 WARNING (MainThread) [homeassistant.components.rest.sensor] Empty reply found when expecting JSON data
2021-03-18 10:36:11 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:36:11 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:36:21 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:36:21 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:36:31 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:36:31 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:36:41 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:36:41 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:36:51 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://launchlibrary.net/1.4/launch/next/1~ failed with 
2021-03-18 10:36:51 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
2021-03-18 10:37:01 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.1.226:3000/api/local/info/state failed with 
2021-03-18 10:37:01 DEBUG (MainThread) [homeassistant.components.rest.sensor] Data fetched from resource: None
rpitera commented 3 years ago

A little more background; the reason I created a new VM and restored the snapshot was that I too had a period a ways back when I had a power outage related crash. I would get a couple bad block notices from Virtualbox, but I wasn't having any issues with REST or generic cams, etc. at the time. In fact, I wasn't really having any issues at all with HA so I just figured that it wasn't a big problem and I would migrate to a new VM when I had the time. When I started having these issues (January, maybe?) I figured that the corruption had spread and I would have to create a new VM sooner than later. But it doesn't seem to have helped, at least in this case.

I should also note that everything else seems to be working fine; integrations, automations, ZWave and Zigbee, etc. But after roughly 30-45 minutes, anything that relies on calling data from an http or https source (internal or external from my network) like REST, generic cams or the like fails. I'm at wit's end so any suggestions for further research would be great!

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.