Supervisor Error on Setting Up after System Update

I updated today my HA Core to 2024.1.6 and after the update my Supervisor was giving me this error:
Screenshot 2024-02-01 111835

The protocoll:
Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 10:52:58 (1 occurrences)
Last logged: 10:52:58

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 633, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 265, in async_config_entry_first_refresh
await self._async_refresh(
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 1006, 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 561, in send_command
request = await self.websession.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/client.py”, line 605, in _request
await resp.start(conn)
File “/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py”, line 966, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/streams.py”, line 622, in read
await self._waiter
asyncio.exceptions.CancelledError: Global task timeout

How can i solve the problem?
Thanks in advance

У меня та же проблема :
Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 08:15:41 (1 occurrences)
Last logged: 08:15:41

Error setting up entry Supervisor for hassio
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 633, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 265, in async_config_entry_first_refresh
await self._async_refresh(
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 1006, 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 561, in send_command
request = await self.websession.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/client.py”, line 605, in _request
await resp.start(conn)
File “/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py”, line 966, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/streams.py”, line 622, in read
await self._waiter
asyncio.exceptions.CancelledError: Global task timeout

Did you try to reboot the host ?

Yes of course it doesn’t help

ItzChriZz, вам удалось это исправить ?

It doesnt work unfortunatly i already did that

Try executing the: ha core rebuild command - it helped me!

Same issue on my HA.
Also tried the core rebuild but nothing ! :frowning:
In my case I saw those errors in the supervisor log after it started :

24-02-05 21:49:53 INFO (MainThread) [supervisor.auth] Home Assistant not running, checking cache
24-02-05 21:49:58 ERROR (MainThread) [supervisor.store.git] Can't update https://github.com/esphome/hassio 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/esphome/hassio/': Failed to connect to github.com port 443 after 129248 ms: Couldn't connect to server'.
24-02-05 21:49:58 INFO (MainThread) [supervisor.resolution.module] Create new suggestion execute_reset - store / 15ef4d2f
24-02-05 21:49:58 INFO (MainThread) [supervisor.resolution.module] Create new issue corrupt_repository - store / 15ef4d2f
24-02-05 21:49:59 INFO (MainThread) [supervisor.store] Loading add-ons from store: 93 all - 0 new - 0 remove
24-02-05 21:49:59 INFO (MainThread) [supervisor.store] Loading add-ons from store: 93 all - 0 new - 0 remove
24-02-05 21:49:59 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-20759' coro=<Repository.update() done, defined at /usr/src/supervisor/supervisor/store/repository.py:104> exception=StoreGitError()>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/store/git.py", line 136, in pull
    await self.sys_run_in_executor(
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/git/remote.py", line 1027, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/git/remote.py", line 858, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "/usr/local/lib/python3.12/site-packages/git/cmd.py", line 657, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: 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/esphome/hassio/': Failed to connect to github.com port 443 after 129248 ms: Couldn't connect to server'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/store/repository.py", line 108, in update
    await self.git.pull()
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 312, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 304, in wrapper
    return await self._method(obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/store/git.py", line 178, in pull
    raise StoreGitError() from err
supervisor.exceptions.StoreGitError

I just upgraded and had the same issue. Rebooting didn’t help. your suggestion to run “HA CORE REBUILD” actually solved it for me as well. Thanks for it! Much appreciated.

UPDATE: I spoke too soon. After a reboot the same issue occurred. This needs fixing! :frowning:

Error suggests it can’t connect to git hub, I have the same error although for a different repository.

GitHub had issues earlier in the day, but every thing is operational now according to them: GitHub Status - Incident History.

I also encountered this issue yesterday and can confirm that it’s now back to normal. I think this should still be fixed—not being able to start up correctly because of a third-party site being down is probably not the intended behavior.

I’ve been having the same issue for quite some time now. Has anyone found a reliable fix for this? It’s persisted across multiple updates for me; core rebuild gets everything up and running, but I get the same issue after every single HA restart, forcing me to run a core rebuild every time, which obviously isn’t ideal if I’m not at home…