Weird state since 0.112.1

Hi Guys,

I recently updated to 0.112.0 to check out the new logbook & history speeds, they were amazing!

This night my server upgraded home assistant to 0.112.1 (i reprovision my containers & pull images every night). This morning i woke up and saw that home assistant was in a weird state, which it is still after trying several things.

It keeps saying “Home Assistant is starting, not everything will be available until it is finished.”. Also some parts in my lovelace (and the sensors and components it tries to show) are missing. I tried downgrading to 0.112.0 again, but no avail.

This is how it looks.

These are the logs I see:

2020-07-03 08:11:03 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for esxi_stats 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.
2020-07-03 08:11:03 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for apple_tv 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.
2020-07-03 08:11:03 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.
2020-07-03 08:11:03 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for uilogs 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.
2020-07-03 08:11:03 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for breaking_changes 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.
2020-07-03 08:11:03 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.
2020-07-03 08:11:04 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667815623056] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:27 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667815623056] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:30 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667815623056] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:30 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:31 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:37 ERROR (MainThread) [homeassistant.components.hue.light] Timeout fetching light data
2020-07-03 08:11:37 ERROR (MainThread) [homeassistant.components.hue.light] Timeout fetching light data
2020-07-03 08:11:37 ERROR (MainThread) [homeassistant.components.hue.light] Timeout fetching light data
2020-07-03 08:11:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:38 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Mijn huis for smartthings
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 220, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 123, in async_setup_entry
    entry.data[CONF_REFRESH_TOKEN],
  File "/usr/local/lib/python3.7/site-packages/pysmartthings/smartthings.py", line 210, in generate_tokens
    client_id, client_secret, refresh_token
  File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 424, in generate_tokens
    raise APIInvalidGrant(data.get("error_description"))
pysmartthings.errors.APIInvalidGrant: Invalid refresh token: 0760a0bf-f6f0-4e29-a708-e05b1d470d5e
2020-07-03 08:11:39 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:40 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:40 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:41 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140667578926224] 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 36, in handle_update
    devices[deviceID].update(msg.get("data", None))
  File "/config/custom_components/browser_mod/connection.py", line 76, in update
    self)
  File "/config/custom_components/browser_mod/helpers.py", line 30, in create_entity
    adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: 'sensor'
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] non-existing PPS 0 referenced
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] decode_slice_header error
2020-07-03 08:11:58 ERROR (stream_worker) [libav.h264] no frame!
2020-07-03 08:20:15 ERROR (MainThread) [frontend.js.latest.202007020] https://<url>/api/panel_custom/uilogs:20:11471 Uncaught NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': the name "mwc-list-item" has already been used with this registry

Note: the Foscam integration gives me a lot of errors about the videostream. this was also before 0.112.x, which didnt cause any severe issues (other than my camera not working optimally, which i have a described in a different thread on the forums).

I really hope someone can help me out.

1 Like

Reprovisioning my docker container wasnt enough.

In the end I rebooted the whole ESXi Host (and therefore the VM running the container). It all seems to be back to normal now.

Whenever something weird pops up I will post it here again!

Doing this automatically at night seems fraught with the possibility of braking change failure.

I’ve been doing this for the past 3 years. Have had only a few issues with breaking changes, but i’d rather make sure my system is up to date since its on the internet.

Also this issue pops up every day now. Have to reboot the VM every day now. It feels like something has broke in Home Assistant. I can’t downgrade to pre 0.112, because of the whole datastructure change in 0.112.

Anyone has an idea how to fix this?

For now i’ve changed the reprovisioning to happen not every day but every saturday.

Reverted back to 0.111 with a new clean database. This didnt solve the errors.

I disabled some of my newer components in config which seem to have helped (i think its one of the onvif camera’s causing trouble).

Right now i’m rebuilding the things i had to delete that gave errors by hand. Seems to work for now. I have no clue how this weird state/broken things came to be and why they work again after readding them.

After removing all the components that gave errors and reinstalling the custom components (through HACS), everything seems to work again.

Still no clue what went wrong and how to prevent it.