Core-2021.3.0 fails config check - proceed or not?

Currently on core-2021.2.3 on Rpi4

Upon running the Check Home Assistant configuration add-on, I receive the following errors in the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
bind failed: Address in use
error binding udev control socket
[11:39:06] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:41:07] INFO: Setup udev devices
[11:41:07] INFO: Don't worry, this temporary installation is not overwriting your current one.
[11:41:07] INFO: Installing Home Assistant: latest...
[11:41:07] INFO: Please be patient, this might take a few minutes...
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
requests 2.25.1 requires idna<3,>=2.5, but you'll have idna 3.1 which is incompatible.
[11:43:08] INFO: Installed Home Assistant 2021.3.1
[11:43:08] INFO: Making a copy of your configuration for checking...
[11:43:08] INFO: Checking your configuration against this version...
[11:46:44] ERROR: The configuration check did not pass!
[11:46:44] ERROR: See the output below for more details.
Testing configuration at /tmp/config
ERROR:homeassistant.helpers.check_config:Unexpected error validating config
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeassistant/helpers/check_config.py", line 147, in async_check_ha_config_file
    await config_validator.async_validate_config(  # type: ignore
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/automation/config.py", line 103, in async_validate_config
    await asyncio.gather(
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/automation/config.py", line 85, in _try_async_validate_config_item
    config = await async_validate_config_item(hass, config, full_config)
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/automation/config.py", line 63, in async_validate_config_item
    config[CONF_TRIGGER] = await async_validate_trigger_config(
  File "/usr/local/lib/python3.8/site-packages/homeassistant/helpers/trigger.py", line 49, in async_validate_trigger_config
    conf = await platform.async_validate_trigger_config(hass, conf)
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/device_automation/trigger.py", line 21, in async_validate_trigger_config
    return await getattr(platform, "async_validate_trigger_config")(hass, config)
[11:46:44] INFO: The full output has been written to /share/check_config.txt
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

review of the /share/check_config.txt provides:

INFO:homeassistant.util.package:Attempting install of colorlog==4.7.2
e[01mTesting configuration at /tmp/confige[0m
INFO:homeassistant.util.package:Attempting install of mutagen==1.45.1
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0
INFO:homeassistant.util.package:Attempting install of gTTS==2.2.2
INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.41.0
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20210302.4
INFO:homeassistant.util.package:Attempting install of scapy==2.4.4
INFO:homeassistant.util.package:Attempting install of defusedxml==0.6.0
INFO:homeassistant.util.package:Attempting install of netdisco==2.8.2
INFO:homeassistant.util.package:Attempting install of async-upnp-client==0.14.13
INFO:homeassistant.util.package:Attempting install of PyNaCl==1.3.0
INFO:homeassistant.util.package:Attempting install of emoji==1.2.0
INFO:homeassistant.util.package:Attempting install of distro==1.5.0
INFO:homeassistant.util.package:Attempting install of pillow==8.1.1
INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.3.23
INFO:homeassistant.util.package:Attempting install of beautifulsoup4==4.9.3
INFO:homeassistant.util.package:Attempting install of jsonpath==0.82
INFO:homeassistant.util.package:Attempting install of xmltodict==0.12.0
INFO:homeassistant.util.package:Attempting install of pydeconz==77
ERROR:homeassistant.helpers.check_config:Unexpected error validating config
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeassistant/helpers/check_config.py", line 147, in async_check_ha_config_file
    await config_validator.async_validate_config(  # type: ignore
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/automation/config.py", line 103, in async_validate_config
    await asyncio.gather(
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/automation/config.py", line 85, in _try_async_validate_config_item
    config = await async_validate_config_item(hass, config, full_config)
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/automation/config.py", line 63, in async_validate_config_item
    config[CONF_TRIGGER] = await async_validate_trigger_config(
  File "/usr/local/lib/python3.8/site-packages/homeassistant/helpers/trigger.py", line 49, in async_validate_trigger_config
    conf = await platform.async_validate_trigger_config(hass, conf)
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/device_automation/trigger.py", line 21, in async_validate_trigger_config
    return await getattr(platform, "async_validate_trigger_config")(hass, config)
  File "/usr/local/lib/python3.8/site-packages/homeassistant/components/deconz/device_trigger.py", line 412, in async_validate_trigger_config
    device_registry = await hass.helpers.device_registry.async_get_registry()
  File "/usr/local/lib/python3.8/site-packages/homeassistant/helpers/device_registry.py", line 636, in async_get_registry
    return async_get(hass)
  File "/usr/local/lib/python3.8/site-packages/homeassistant/helpers/device_registry.py", line 620, in async_get
    return cast(DeviceRegistry, hass.data[DATA_REGISTRY])
KeyError: 'device_registry'
e[01;37mFailed confige[0m
  e[01;31mautomation:e[0m e[31me[31m
    - Unexpected error calling config validator: 'device_registry'

Any ideas? and proceed or not?

Not.

Go to Configuration / Server Control and validate your configuration. Fix any errors before proceeding to run the update check again.

That check responds with ā€œConfiguration Validā€, my concern is via the add on ā€œCheck Home Assistant configurationā€ which I am using to help confirm validity with the new version.

Yeah but the addon is pointing to a problem with your device registry which is why I suggested validating your config.

ok, I understand. Anything I can do to manually validate the registry?

Not really.

I have the same issue and I think it is related to deconz automation trigger when they are configured like this:

trigger:
  - platform: device
    domain: deconz
    device_id: <deconz_device_id>
    type: remote_button_short_press
    subtype: turn_on

So - I created a snapshot and ran the update anyway :grimacing:

Anyway - the good news is that it succeeded (despite throwing an error at the end of the update for a few seconds and showing what looked like a restore panel up).

Core also now appears to be 2021.3.1

{breathing a sigh of relief}

1 Like