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

Home Assistant Supervisor failed to configure #99795

Closed
andiukas opened this issue Sep 7, 2023 · 19 comments
Closed

Home Assistant Supervisor failed to configure #99795

andiukas opened this issue Sep 7, 2023 · 19 comments

Comments

@andiukas
Copy link
Contributor

andiukas commented Sep 7, 2023

The problem

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 06:41:15 (1 occurrences)
Last logged: 06:41:15

Error setting up entry 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

Screenshot 2023-09-07 074607

What version of Home Assistant Core has the issue?

Home Assistant 2023.9.0

What was the last working version of Home Assistant Core?

Home Assistant 2023.8.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home Assistant Supervisor

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@jressel01
Copy link

jressel01 commented Sep 7, 2023

have the same problem since today without update Home Assistant 2023.9.0.
I have Home Assistant 2023.8.4, Supervisor 2023.08.3 and the Problem
2023-09-07 07:56:26.980 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 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

@greasypete
Copy link

Also running latest Home assistant 2023.9.0 with supervisor 2023.8.3

First error in log with no further details:
Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:138
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 9:19:56 AM (1 occurrences)
Last logged: 9:19:56 AM

Failed to to call /ingress/session - 'NoneType' object is not iterable

followed by:

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

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

Next error:

Logger: homeassistant.helpers.entity
Source: core.py:180
First occurred: 9:20:20 AM (1 occurrences)
Last logged: 9:20:20 AM

Failed to set state, fall back to unknown
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 856, in _async_write_ha_state
hass.states.async_set(
File "/usr/src/homeassistant/homeassistant/core.py", line 1645, in async_set
state = State(
^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 1264, in init
validate_state(state)
File "/usr/src/homeassistant/homeassistant/core.py", line 180, in validate_state
raise InvalidStateError(
homeassistant.exceptions.InvalidStateError: Invalid state with length 495. State max length is 255 characters.

@DutchDynamics
Copy link

Hi,

Same issue after updating to 2023.9

Logger: homeassistant.config_entries
Source: components/hassio/handler.py:540
First occurred: 09:42:59 (1 occurrences)
Last logged: 09:42:59

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

@dirkmothes
Copy link

Same problem.
Solution -> restart server [VM or Pi] (not only HomeAssistant Service)
Works for me.

@dirkmothes
Copy link

#86622

@oleg-d
Copy link

oleg-d commented Sep 7, 2023

Restarting whole VM Proxmox did not work for me

@Metroseksuaali
Copy link

I just installed fresh Homeassistant OS for first time ever. Got this same error out of the box

@user45876
Copy link

user45876 commented Sep 7, 2023

Also noted here home-assistant/supervisor#4531 as a supervisor issue.
After ugrading core to 2023.9.0 some minutes ago, I was having the same issue. However, for me, ATM at least, after a reboot it is gone.

@user45876
Copy link

Update: It is back after another reboot.

@vrioux
Copy link

vrioux commented Sep 7, 2023

System completely dead. Could not recover. Even reverting to 2023.8.4 did not help...

@vrioux
Copy link

vrioux commented Sep 7, 2023

Finally salvaged my system by doing a docker kill homeassistant, then docker rmi (image ID of assistant), allowing me enough time to do a ha core stop, then ha core update --version 2023.8.3. Then, rebooting host, got a whole bunch of error messages in ha core logs, but at least the system is back up and running... Whew.

@pergolafabio
Copy link

indeed, reboot doesnt help, and its not related to 2023.9.0, i see the same on 2023.8.4

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

@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.

@jressel01
Copy link

Home Assistant 2023.8.4
Supervisor 2023.08.3
Operating System 10.5
Frontend 20230906.1 - latest
I have the error.

i try to update with command line and get error masage. Make a cold reboot and update from cammand Line 2nd time now it works.

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

But i have the error.

after several resart i can fix it for the moment with a cold start
dont know how long it will work

@oleg-d
Copy link

oleg-d commented Sep 9, 2023

People have had luck with fixing their problem by changing their DNS address in HA, see comments here #99862

I myself had my pihole DNS with the issue and now it's fixed.

Settings > System > Network > IPv4 > change DNS to 1.1.1.1 or 8.8.8.8
Restart HA
Update notification giving you update to 2023.9.1
Perform update
After that you can change DNS back to your original one if you wish and restart HA.

@RolandFran
Copy link

same here since update 2023.9.1

@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)

@elkarto
Copy link

elkarto commented Nov 14, 2023

This is also an issue for me.

Core 2023.11.2
Supervisor 2023.11.0
Operating System 11.1

Sometimes HA starts well and others this problem arises. Using adguard home as DNS.

Tried to force DNS in HA to 1.1.1.1 It seems to workaround the issue but I dont know if always or only sometimes. But this is not a solution for me as I need my local DNS names.

Adguard DNS name resolution is working fine except for this.

#99862 home-assistant/supervisor#4531

@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 Feb 19, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 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