core: Error during setup of component hassio

The problem

I’ve recently started having an issue with my HA instillation not starting properly.

The bare basics of the dashboard work but I cant access any of the addon-related pages and the “Supervisor” integration shows there’s a fault.

The error first started on 2023.1.1, which i managed to clear by a mix of cli telling the supervisor to repair, reload and restart and also giving the QEMU VM that HA is running in a restart.

I then upgraded to 2023.1.7 (i had missed the intermediate updates as I didn’t realise the supervisor wasn’t working fully) where it worked for a while, but after a restart last night to solve some unrelated host issues the error has returned.

Any help would be muchly appreciated

What version of Home Assistant Core has the issue?

2023.1.7

What was the last working version of Home Assistant Core?

latest 2022 release or initial 2023 release

What type of installation are you running?

Home Assistant OS

Integration causing the issue

hassio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hassio

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Error during setup of component hassio (components/hassio/handler.py)
`Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 587, in async_setup
    await repairs.setup()
  File "/usr/src/homeassistant/homeassistant/components/hassio/repairs.py", line 149, in setup
    await self.update()
  File "/usr/src/homeassistant/homeassistant/components/hassio/repairs.py", line 157, in update
    data = await self._client.get_resolution_info()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 51, in _wrapper
    raise HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError: System is not ready with state: setup`



When poking through the menus to get information, this error happened in `components/hassio/__init__.py`
`Error doing job: Task exception was never retrieved

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 561, in _async_setup_hardware_integration
    if (os_info := get_os_info(hass)) is None:
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 319, in get_os_info
    return hass.data.get(DATA_OS_INFO)
AttributeError: 'datetime.datetime' object has no attribute 'data'`

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 11
  • Comments: 48 (6 by maintainers)

Most upvoted comments

Its an issue need to be solved, as how can this system be reliable then ?

Indeed you can manual restart HASS and it works, but not if im not at home…

And of course this only happens if u do an update or if you do a full system reboot, or you get for example a power issue and your main host goes down, and it restarts.

Happening on:

  • proxmox instance
  • virtualbox instance (windows 11)
  • virtualbox instance (windows 10)

All of them running last version and last HASSOS version besides the windows 11 one.

If there is a way to create an automation that triggers on that HASSIO failed to load and will trigger an restart that would be good for the time being.

The devs need to fix this asap as this is annoying ! if we all click in the top post on the thumbs up icon the devs will be notified and know about this issue.

Same issue here, but on a Raspberry Pi 4 (booting from USB SSD). Restarting Home Assistant from Settings -> System -> Restart fixes it and makes addons show up again, but the issue occurs again after each reboot.

I’m still receiving this, even with restarts from the menu. I’m also running this as a QEMU VM under proxmox

Hi

I’m having same issue, HA installed in a VM on Proxmox, both on latest version as today.

It does not happen on every HA restart. When it happens, in Settings the item “Add-ons” it’s missing

Screenshot 2023-04-01 171049

Logger: homeassistant
Source: components/hassio/__init__.py:320
First occurred: 08:47:06 (1 occurrences)
Last logged: 08:47:06

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 560, in _async_setup_hardware_integration
    if (os_info := get_os_info(hass)) is None:
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 320, in get_os_info
    return hass.data.get(DATA_OS_INFO)
AttributeError: 'datetime.datetime' object has no attribute 'data'

I’m not able to find any solution.

Any suggestion?

Thanks

Same issues here core-2023.6.3 see duplicate issue above. Also still exists in 2023.7.1.

Guys, look up a couple of comments. It’s being fixed in .3

nope, .3 wont fix the problem. worse, in my case, the .3 created the problem image

image I had the same problem for a month’s, but found some workaround- I used to check if addons “running” sensors were unavailable (binary_sensor.something_running), and if so, automatically restarted HA. In 99% of the time 1 restart was enough, rarely 2, but eventually everything was working fine + I rarely restart my HA instance, so a little wait was not a problem

BUT- Since 2023.6 release Supervisor almost never starts without an issue. Even if addons are working and showing inside HA, their running sensors almost always shows as Unavailable. Now I have no idea how to fix this automatically

There will be new supervisor updates this month, they did announce it in the last release update stream. lets wait for that