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

Error setting up entry Supervisor for hassio #99862

Closed
pepsonEL opened this issue Sep 7, 2023 · 17 comments
Closed

Error setting up entry Supervisor for hassio #99862

pepsonEL opened this issue Sep 7, 2023 · 17 comments

Comments

@pepsonEL
Copy link
Contributor

pepsonEL commented Sep 7, 2023

The problem

Integration supervisor has an error.

What version of Home Assistant Core has the issue?

2023.9.0

What was the last working version of Home Assistant Core?

2023.8.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

supervisor

Link to integration documentation on our website

No response

Diagnostics information

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 20:00:57 (1 occurrences)
Last logged: 20:00:57

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 20:00:57 (1 occurrences)
Last logged: 20:00:57

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

No response

@pepsonEL pepsonEL changed the title Error setting up entry Supervisor Error setting up entry Supervisor for hassio Sep 7, 2023
@Arn0uDz
Copy link

Arn0uDz commented Sep 7, 2023

Got the same error and reverted back to 2023.8.4 and problem is gone.

2023-09-07 16:51:19.094 ERROR (MainThread) [homeassistant.config_entries] 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
2023-09-07 16:51:19.107 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 1 - moving forward

@home-assistant
Copy link

home-assistant bot commented Sep 7, 2023

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)

@SalvatoreITA
Copy link

SalvatoreITA commented Sep 7, 2023

Same error with version 2023.7.3 I tried to restart several
Uploading 5.PNG…
times and sometimes the service loads, other times it doesn't

@pergolafabio
Copy link

yes, seeing it also:


2023-09-07 22:20:08.395 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: hassio
2023-09-07 22:21:08.449 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: hassio
2023-09-07 22:21:08.919 ERROR (MainThread) [homeassistant.config_entries] 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

@sagitt
Copy link

sagitt commented Sep 7, 2023

after a downgrade, and re-upgrade, now all works fine on my system. Do a full host reboot.

@lzzsalvo
Copy link

lzzsalvo commented Sep 8, 2023

Same issue here. HA 2023.9.0

the integration is not loaded and the entities are no longer available. Tried several reboots but the problem is still present.

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 07:31:04 (1 occurrences)
Last logged: 07:31:04

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

@andiukas
Copy link
Contributor

andiukas commented Sep 8, 2023

#99795

@mariusnauj
Copy link

Hello guys, I did a lot of analysis and find out:

From my location github.com response with 2 IP: 140.82.121.4 and 140.82.121.3, and from my home network I can't ping 140.82.121.3. So when I reboot HA and at that time my network pointing github.com to IP adress 140.82.121.4 HA starting fine. But if my network at this time pointing github.com to IP 140.82.121.3 HA supervisor do not start up because supervisor can't access github.com.
I tried pinging from my job both IP adreses responding.

Here it's traceroutes:

Tracing route to lb-140-82-121-4-fra.github.com [140.82.121.4]
over a maximum of 30 hops:

1 3 ms 3 ms 9 ms unifi.localdomain [192.168.8.1]
2 7 ms 10 ms 15 ms 78-61-43-254.static.zebra.lt [78.61.43.254]
3 6 ms 5 ms 5 ms 82-135-179-128.static.zebra.lt [82.135.179.128]
4 31 ms 28 ms 44 ms xe-1-2-0.mpr1.fra4.de.above.net [80.81.194.26]
5 * 30 ms 29 ms ae27.cs1.fra9.de.eth.zayo.com [64.125.30.254]
6 36 ms 28 ms 32 ms ae1.mcs1.fra9.de.eth.zayo.com [64.125.29.65]
7 32 ms 31 ms 30 ms 82.98.193.29
8 * * * Request timed out.
9 * * * Request timed out.
10 31 ms 31 ms 29 ms lb-140-82-121-4-fra.github.com [140.82.121.4]

Trace complete.

C:\Users\marnau>tracert 140.82.121.3

Tracing route to lb-140-82-121-3-fra.github.com [140.82.121.3]
over a maximum of 30 hops:

1 2 ms 2 ms 2 ms unifi.localdomain [192.168.8.1]
2 * * 4 ms 78-61-43-254.static.zebra.lt [78.61.43.254]
3 6 ms 7 ms 4 ms 82-135-179-128.static.zebra.lt [82.135.179.128]
4 29 ms 28 ms 28 ms xe-1-2-0.mpr1.fra4.de.above.net [80.81.194.26]
5 * * * Request timed out.
6 33 ms 37 ms 36 ms ae1.mcs1.fra9.de.eth.zayo.com [64.125.29.65]
7 33 ms 29 ms 29 ms 82.98.193.29
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 Transmit error: code 1232.

Trace complete.

So I think problem not HA update or internet provider, but problem is that github server with IP 140.82.121.3 drop packet from some IP ranges.

@MnemoBRMC
Copy link

Same here.

@niksdk
Copy link

niksdk commented Sep 8, 2023

I howl at the same tree

@lzzsalvo
Copy link

lzzsalvo commented Sep 8, 2023

23-09-08 11:23:01 ERROR (MainThread) [supervisor.store.git] Can't update https://github.com/home-assistant/addons-example repo: Cmd('git') failed due to: exit code(128)
cmdline: git fetch -v --update-shallow --depth=1 -- origin
stderr: 'fatal: unable to access 'https://github.com/home-assistant/addons-example/': Failed to connect to github.com port 443 after 132147 ms: Couldn't connect to server'.

@jan-wern
Copy link

jan-wern commented Sep 8, 2023

Same issued. Update top 2023.9 then Downgrade because of Modbus Problems top 2023.8.4. After downgrade the entenitis of Supervisor are not available. Several reeboots don't Help. I removed all resperatorys i don't need, made a backup of this state. Then i installed this Backup (V. 2023.08.4), now it's working, i think up tobrhe next reboot.

@ilsalgo
Copy link

ilsalgo commented Sep 8, 2023

Same issue for me

@pergolafabio
Copy link

please STOP posting "same issue"

@MnemoBRMC
Copy link

I think I found the problem in my case. I was using my home assistant server as DNS server with Dnsmasq. In my router I had my HA server IP as DNS server. When I changed and put the internet provider usual one, it was solved, and now Supervisor starts without any issue.
Not sure if this helps or is just specific to my problem

@SalvatoreITA
Copy link

I changed the DNS by setting: 1.1.1.1 that's all and it worked fine again after a reboot, I'll keep you updated if the problem is related.
12

@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 14, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 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