Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supervisor integration fails to load #90558

Closed
francisp2 opened this issue Mar 31, 2023 · 65 comments
Closed

Supervisor integration fails to load #90558

francisp2 opened this issue Mar 31, 2023 · 65 comments

Comments

@francisp2
Copy link

The problem

Both on 2023.4.0b0 and 0b2

What version of Home Assistant Core has the issue?

Home Assistant 2023.4.0b2

What was the last working version of Home Assistant Core?

Home Assistant 2023.3.1

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Supervisor

Link to integration documentation on our website

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

Diagnostics information

home-assistant_2023-03-31T03-41-45.513Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

I uploaded the log under diagnostic data

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/supervisor, mind taking a look at this issue as it has been labeled with an integration (hassio) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of hassio can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign hassio Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


hassio documentation
hassio source
(message by IssueLinks)

@frenck frenck changed the title Beta 2023.4.0bx : Supervisor integration fails to load Supervisor integration fails to load Mar 31, 2023
@frenck frenck added this to the 2023.4.0 milestone Mar 31, 2023
@barqers
Copy link

barqers commented Mar 31, 2023

Also having this issue - happy to provide logs if required. Updates do not show anymore, and add-ons either. Once a fix is out, is there a way to force updates through CLI since the GUI for supervisor/updates no longer works for those with this error?

@superbrandnewemail
Copy link

superbrandnewemail commented Mar 31, 2023

I also have the same issue. Settings > Add-Ons view does not open either.

Get this in the logs:
Logger: homeassistant.components.hassio.handler Source: components/hassio/handler.py:48 Integration: Home Assistant Supervisor (documentation, issues) First occurred: March 31, 2023 at 9:18:55 PM (558 occurrences) Last logged: 7:21:00 AM /os/info return code 500

Full logs show this error: 2023-03-31 20:31:50.404 ERROR (MainThread) [homeassistant.components.hassio.handler] /os/info return code 500

image

@bxsteez
Copy link

bxsteez commented Mar 31, 2023

Same issue here. I've revered the core back a few versions and it still fails the same way. I'm not sure what is going on but it somehow preventing my frigate notifications from working correctly too

@musk1024
Copy link

musk1024 commented Apr 1, 2023

I get the same issue, it have try many ways, but it does not work, so i guess may be it's not our problem, maybe it's to do with the server

@Frankster-NL
Copy link

To add: am having the exact same issue. The "addons" page is also not willing to load. Inside the logs of the Supervisor container I do find some hints that doubletake is causing issues (but cannot determine if this is also the reason why the supervisor is causing issues). Relevant logs:

23-04-01 07:38:32 INFO (SyncWorker_2) [supervisor.docker.interface] Cleaning addon_c7657554_double-take application
23-04-01 07:38:33 INFO (SyncWorker_1) [supervisor.docker.addon] Starting Docker add-on c7657554/amd64-addon-double-take with version 1.13.1
23-04-01 07:38:33 INFO (MainThread) [supervisor.store] Loading add-ons from store: 102 all - 0 new - 0 remove
23-04-01 07:38:33 INFO (MainThread) [supervisor.store] Loading add-ons from store: 102 all - 0 new - 0 remove
23-04-01 07:38:33 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 185, in block_bad_requests
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 201, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 268, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/os.py", line 66, in info
    ATTR_DATA_DISK: self.sys_os.datadisk.disk_used.id
AttributeError: 'NoneType' object has no attribute 'id'

@gordenfalk
Copy link

I have the same issue. In Addition the back-up List is Not loading, so no way to roll back.

@mauricebish
Copy link

mauricebish commented Apr 1, 2023

I have the same issue
Version: 2023.3.3

AD9893DA-E570-401D-AF11-1F92FBF2BAC1

@bxsteez
Copy link

bxsteez commented Apr 1, 2023

I suspect everyone won't be able to do what I did to work around this. I was running an unsupported installation so I spun up a debian 11 wm and installed the supervised hassio and then copied all my files from the previous vm to this one and brought everything back online. Most things seem to work and the issue I had is gone.

Not really a solution but it's something if you have the ability

@barqers
Copy link

barqers commented Apr 1, 2023

I suspect everyone won't be able to do what I did to work around this. I was running an unsupported installation so I spun up a debian 11 wm and installed the supervised hassio and then copied all my files from the previous vm to this one and brought everything back online. Most things seem to work and the issue I had is gone.

Not really a solution but it's something if you have the ability

Is there a way to download the files from GitHub? My mini pc isn’t powerful enough to spin up a new VM.

@perezga
Copy link

perezga commented Apr 2, 2023

Had same issue and doing a rebuild worked for me.

I have HASS OS in a VM and I simply entered ´ha core rebuild´ and it worked for me. All missing addons funcitnality and hacs repositories appeared after that.

Good luck!

@barqers
Copy link

barqers commented Apr 2, 2023

Had same issue and doing a rebuild worked for me.

I have HASS OS in a VM and I simply entered ´ha core rebuild´ and it worked for me. All missing addons funcitnality and hacs repositories appeared after that.

Good luck!

Did not work for me unfortunately. Is there a way to roll back using ha core ?

@perseus177
Copy link

Same problem
Home Assistant 2023.3.6 Frontend: 20230309.1 - latest - running in docker on raspbian

@DmitryEgipko
Copy link

Same problem
Home Assistant 2023.3.1
Frontend 20230302.0 - latest - running in docker on debian

image

@oneminc
Copy link

oneminc commented Apr 2, 2023

Same problem
Home Assistant 2023.3.6
IMG_20230402_175933

@industrial64
Copy link

I have the same issue. In Addition the back-up List is Not loading, so no way to roll back.

Same, Add-Ons page and the same error as everyone else.

@GrumpyMeow
Copy link
Contributor

I'm also experiencing the exact same issues. Maybe it's finally time for me to start running Home Assistant in a supported configuration (not LXC container).

@hoanglongutc
Copy link

image
I commented at line 66 and everything is back to normal

@barqers
Copy link

barqers commented Apr 2, 2023

image
I commented at line 66 and everything is back to normal

Where is this file located out of curiosity?

@hoanglongutc
Copy link

hoanglongutc commented Apr 2, 2023

I commented at line 66 and everything is back to normal

Where is this file located out of curiosity?

image
here is the path to the file

@rikki78
Copy link

rikki78 commented Apr 2, 2023

How to fix this, I'm running hass supervised. I guess I have to edit this in the docker container? Which one?

@sergshev
Copy link

sergshev commented Apr 2, 2023

How to fix this, I'm running hass supervised. I guess I have to edit this in the docker container? Which one?

find the os.py file via SSH

@davidruigrok
Copy link

How to fix this, I'm running hass supervised. I guess I have to edit this in the docker container? Which one?

Indeed, edit the file within the docker container:
sudo docker exec -it hassio_supervisor /bin/bash
Use vi to edit the file: vi /usr/src/supervisor/supervisor/api/os.py

@DmitryEgipko
Copy link

image I commented at line 66 and everything is back to normal
Thanks @hoanglongutc !!!

I connected to the hassio_supervisor container console via Portainer,
found the file cd /usr/src/supervisor/supervisor/api/os.py
I commented out line No. 66, restarted the server completely.
Everything works again.
Thank you.

@barqers
Copy link

barqers commented Apr 2, 2023

How to fix this, I'm running hass supervised. I guess I have to edit this in the docker container? Which one?

Indeed, edit the file within the docker container: sudo docker exec -it hassio_supervisor /bin/bash Use vi to edit the file: vi /usr/src/supervisor/supervisor/api/os.py

That was it, thank you! Back up and running!

@ebyna
Copy link

ebyna commented Apr 2, 2023

how do I fix it in this installation? On my installation : /usr/share/hassio/homeassistant
this path and file is not with me: /usr/src/supervisor/supervisor/api/os.py

@SpartanTech
Copy link

Unfortunately not. That doesn't help at all.

Ah. Okay so there are two supervisor/hassio issues currently going on in mass scale. One is hassio failing to load (therefore also add-ons interface and a few other features) and one is supervisor itself. The first one seems to be bad code/bad handling of waiting for processes, the second one unfortunately is due to an install problem. Either caused by the user or home assistant itself during an update. Yours is the second

Which install method are you using? Usually the second can be 'solved' (at least until another update) but reinstalling and not restoring home assistant core itself.

@rendnas
Copy link

rendnas commented Apr 4, 2023

I use a Home Assistant Supervised installation.

@SpartanTech
Copy link

I use a Home Assistant Supervised installation.

Perfect. Even easier. Make sure cgroup and apparmor are applied correctly (adding to cmdline if needed) and just rerun the supervised installation script. All your data will stay but make a backup just in case. Does that fix anything?

@rendnas
Copy link

rendnas commented Apr 4, 2023

Oh, I'm very happy that you want to help me, but I'm very sorry, but I can't do anything with these terms. I am not familiar with them.

@superbrandnewemail
Copy link

The issue got fixed in Home Assistant Release 2024.4 for me.

@SpartanTech
Copy link

The issue got fixed in Home Assistant Release 2024.4 for me.

Glad to know. Just be careful because this specific issue appears after a bad install it seems. So the next update might bring it back if they didn't actually address the root issue. The solution to this was always re applying home assistant.

@zhang-wenchao
Copy link

I used a new installation of 2023.4, and I still have this problem. kvm version haos.

Error setting up entry Supervisor for hassio
Logger: homeassistant.config_entries
Source: components/hassio/handler.py:472
First occurred: 10:54:05 (1 occurrences)
Last logged: 10:54:05
Error setting up entry Supervisor for hassio

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 625, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 215, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 933, in _async_refresh
    await self.hassio.refresh_updates()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 35, in _wrapper
    data = await funct(*argv, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 472, in send_command
    request = await self.websession.request(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError

@screekworkshop
Copy link

I used a new installation of 2023.4, and I still have this problem. kvm version haos.

Error setting up entry Supervisor for hassio
Logger: homeassistant.config_entries
Source: components/hassio/handler.py:472
First occurred: 10:54:05 (1 occurrences)
Last logged: 10:54:05
Error setting up entry Supervisor for hassio

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 625, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 215, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 933, in _async_refresh
    await self.hassio.refresh_updates()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 35, in _wrapper
    data = await funct(*argv, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 472, in send_command
    request = await self.websession.request(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError

It seems that this has something to do with the inability to access certain URLs, which in the case of China is that if you can't access certain servers, this can't be initialized.
HomeAssistant supervisor seems to be too network dependent.

@jeromio
Copy link

jeromio commented Jun 11, 2023

So to review, if I have installed HomeAssistant via the Raspberry Pi image, which does not have inbuilt SSH access, I cannot fix this issue. I've got
Supervisor 2023.06.1 Operating System 10.2 Frontend 20230608.0 - latest
and there are no updates available (from within the web UI, which is the only way I can do anything). The Updates tab shows "No updates available".

@fireheadman
Copy link

fireheadman commented Jul 19, 2023

unsure if this is the correct thread for this... I am seeing issues with supervisor not loading/set up on reboot of server
I have tried
sudo ha supervisor [stop|start|reload|restart|repair] all have done nothing to resolve this.
Have rebooted....
Have even remove docker container and rebooted, still get this issue.

image

image

image

@fireheadman
Copy link

more info... (when hovering the "Failed to set up" )

Log Details (ERROR)
Logger: homeassistant.config_entries
Source: components/hassio/handler.py:534
First occurred: 3:37:01 PM (1 occurrences)
Last logged: 3:37:01 PM

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 651, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 251, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 959, in _async_refresh
    await self.hassio.refresh_updates()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 36, in _wrapper
    data = await funct(*argv, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 534, in send_command
    request = await self.websession.request(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError

@fireheadman
Copy link

gesh... sucks this still has nobody assigned to it.
how do we get more visibility on this?

@fireheadman
Copy link

fireheadman commented Aug 7, 2023

well look at that... I restarted HA this morning for a device reload and saw and update so I applied it.
Looks like 1 less service (unsure what got removed), but not seeing the error anymore
image
image

@dcaplopu
Copy link

dcaplopu commented Aug 30, 2023

Hi.

Same problem here:

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:534
First occurred: 09:25:23 (1 occurrences)
Last logged: 09:25:23
Error setting up entry Supervisor for hassio

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 651, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 251, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 959, in _async_refresh
    await self.hassio.refresh_updates()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 36, in _wrapper
    data = await funct(*argv, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 534, in send_command
    request = await self.websession.request(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError: Global task timeout


Home Assistant 2023.8.4
Supervisor 2023.08.1
Operating System 10.5
Frontend 20230608.0 - latest

@Paga777
Copy link

Paga777 commented Sep 3, 2023

Same here, no way to fix with backups, and i can't find os.py file.
My /usr/src folder is empty.

@YuriyDY
Copy link

YuriyDY commented Sep 5, 2023

image I commented at line 66 and everything is back to normal
Thanks @hoanglongutc !!!

I connected to the hassio_supervisor container console via Portainer, found the file cd /usr/src/supervisor/supervisor/api/os.py I commented out line No. 66, restarted the server completely. Everything works again. Thank you.

Hi everyone!
Today I had upgrade Debian 11 to 12 on my Raspberry Pi 4. After upgrade I had got this problem.
Home Assistant 2023.8.4
Supervisor 2023.08.3
Operating System
Debian GNU/Linux 12 (bookworm)

The method described above still working. I have solved my issue.

@MikeDeltaHH
Copy link

Same problem here... running HAOS in a VM - after a reboot the error occures...

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:534
First occurred: 22:09:31 (1 occurrences)
Last logged: 22:09:31

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/hassio/init.py", line 651, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 251, in async_config_entry_first_refresh
await self._async_refresh(
File "/usr/src/homeassistant/homeassistant/components/hassio/init.py", line 959, in _async_refresh
await self.hassio.refresh_updates()
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 36, in _wrapper
data = await funct(*argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 534, in send_command
request = await self.websession.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
asyncio.exceptions.CancelledError: Global task timeout

Home Assistant 2023.8.4
Supervisor 2023.08.3
Operating System 10.5
Frontend 20230802.1 - latest

@nlkoOlli
Copy link

nlkoOlli commented Sep 7, 2023

Same here:

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 22:25:44 (1 occurrences)
Last logged: 22:25:44

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/hassio/init.py", line 665, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 257, in async_config_entry_first_refresh
await self._async_refresh(
File "/usr/src/homeassistant/homeassistant/components/hassio/init.py", line 974, in _async_refresh
await self.hassio.refresh_updates()
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 37, in _wrapper
data = await funct(*argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 540, in send_command
request = await self.websession.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
asyncio.exceptions.CancelledError: Global task timeout

Home Assistant 2023.9.0
Supervisor 2023.08.3
Operating System 10.5
Frontend 20230906.1 - latest

Even restoring backup from 2013.8.4 didn't work.

@Paga777
Copy link

Paga777 commented Sep 8, 2023

My supervisor started working again.
this is what I did:

  • disabled all add ons
  • updated supervisor via ssh -> ha supervisor update
  • fixed supervisor via ssh -> ha supervisor repair
  • rebooted host (Host, not HA)

@johnazariah
Copy link

I'm having this exact same issue with 2023.9.2
image

This is a brand new install on a brand new Hyper-V machine using the stock-supplied VHDX

image

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 5:48:56 PM (1 occurrences)
Last logged: 5:48:56 PM

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 668, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 257, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 977, in _async_refresh
    await self.hassio.refresh_updates()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 37, in _wrapper
    data = await funct(*argv, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 540, in send_command
    request = await self.websession.request(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError: Global task timeout

Any suggestions on how to proceed?

@johnazariah
Copy link

I'm having this exact same issue with 2023.9.2 image

This is a brand new install on a brand new Hyper-V machine using the stock-supplied VHDX

image

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 5:48:56 PM (1 occurrences)
Last logged: 5:48:56 PM

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 668, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 257, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 977, in _async_refresh
    await self.hassio.refresh_updates()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 37, in _wrapper
    data = await funct(*argv, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 540, in send_command
    request = await self.websession.request(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError: Global task timeout

Any suggestions on how to proceed?

For anyone who has this problem and you are running pihole, please try to bypass the pihole DNS and try as mentioned here: #99862.

Props to https://github.com/SalvatoreITA for the solution!

@dcaplopu
Copy link

I have PiHole in my network. Manually setting DNS to 1.1.1.1 in HomeAssitant network settings and restarting it fixes the problem.

Thanx!

@issue-triage-workflows
Copy link

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.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests