(Almost) all integrations fail to start in 2023.8

Hello there,

I’m using HA Core and upgraded from 2023.7.3 to 2023.8.1 (and now 2023.8.2).
HA is not starting anymore, it takes hours because for every integration, it is reaching kind of a timeout after 2 minutes.

The error is the same for every and any integrations, even the most simple ones (e.g.: moon):

Aug 11 20:56:26 hassbian hass[17449]: 2023-08-11 20:56:26.840 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Moon for moon
Aug 11 20:56:26 hassbian hass[17449]: Traceback (most recent call last):
Aug 11 20:56:26 hassbian hass[17449]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 388, in async_setup
Aug 11 20:56:26 hassbian hass[17449]:     result = await component.async_setup_entry(hass, self)
Aug 11 20:56:26 hassbian hass[17449]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 11 20:56:26 hassbian hass[17449]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/moon/__init__.py", line 10, in async_setup_entry
Aug 11 20:56:26 hassbian hass[17449]:     await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
Aug 11 20:56:26 hassbian hass[17449]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1367, in async_forward_entry_setups
Aug 11 20:56:26 hassbian hass[17449]:     await asyncio.gather(
Aug 11 20:56:26 hassbian hass[17449]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/config_entries.py", line 1388, in async_forward_entry_setup
Aug 11 20:56:26 hassbian hass[17449]:     result = await async_setup_component(self.hass, domain, self._hass_config)
Aug 11 20:56:26 hassbian hass[17449]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 11 20:56:26 hassbian hass[17449]:   File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 95, in async_setup_component
Aug 11 20:56:26 hassbian hass[17449]:     return await setup_tasks[domain]
Aug 11 20:56:26 hassbian hass[17449]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 11 20:56:26 hassbian hass[17449]: asyncio.exceptions.CancelledError

As a result, my integration page looks awful

image

And this is the same for almost all of the integrations (e.g.: Moon, MQTT, SmartThings, Hue, Sun, Synology, UPnP/IGD, Uptime, Version, …)

Can someone please help me?


EDIT
Going back to 2023.7.3 is solving all the issues but I’d like to move forward.


Disable your custom integrations, update HA, enable your custom integrations one by one until you find the problematic one.

1 Like

That did not help, unfortunately.

  1. I disabled everything, not only custom integrations.
  2. Moved the folder custom_components to a different location.
  3. Upgrade to 2023.8.2
  4. Enabling everything, one by one, no problem.
  5. Enabling custom_components one by one, no problem.

Restart HA, and it is stuck in Wraping up start, bla bla bla and nothing is started, for more than 45 minutes.

So back to square one.

Did you restart between enabling each custom component ?

I had to, yes.

I was copying every sub directory of the saved custom_components back to the custom_components, one by one.
Then start HA, go to integration page and enable the newly copied integration.
Wait for it to start (alexa_media is longer than sonoff …)
Then stop everything, and deal with the next custom integration.

When the last one was activated, I was very happy, until the final restart, the “one with everything finaly activated in 2023.8”

I’ve to tell you that I’m with Debian 12, it was not recommended for supervised version of HA but I’m using HA Core. I’m suspecting it is maybe a part of the problem so I’m restoring an old SD Card with 2023.7.3 on Debian 11 to test the upgrade there.

EDIT
Exactly the same result, damn!

I did it again. It is working but I’m scared to restart it now.
I’ll wait for the next realease 2023.8.3 or 2023.9.0 to call it closed.