supervisor: Supervisor failed to set up after trying to update Core to 2023.9

Describe the issue you are experiencing

I was updating from 2023.8.3 to 2023.9 and it seems the update failed. Now the supervisor is saying “failed to set up”

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

  1. Have supervisor 2023.8.3 installed
  2. Update offered in the UI
  3. Click Update
  4. Update seemingly does not work
  5. Restart HA

Anything in the Supervisor logs that might be useful for us?

23-09-07 08:19:56 ERROR (MainThread) [supervisor.store.git] Can't update https://github.com/home-assistant/addons 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/': Failed to connect to github.com port 443 after 130268 ms: Couldn't connect to server'.
23-09-07 08:19:58 INFO (MainThread) [supervisor.store] Loading add-ons from store: 76 all - 0 new - 0 remove
23-09-07 08:19:58 INFO (MainThread) [supervisor.store] Loading add-ons from store: 76 all - 0 new - 0 remove
23-09-07 08:19:58 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-52834' 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.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/git/remote.py", line 1015, in fetch
    res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/git/remote.py", line 854, in _get_fetch_info_from_stderr
    proc.wait(stderr=stderr_text)
  File "/usr/local/lib/python3.11/site-packages/git/cmd.py", line 604, 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/home-assistant/addons/': Failed to connect to github.com port 443 after 130268 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 266, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 264, 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

System Health information

Unable to copy - there is infinite loading spinner

Supervisor diagnostics

home-assistant_hassio_2023-09-07T05-21-08.603Z.log

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 4
  • Comments: 19 (2 by maintainers)

Most upvoted comments

Hi,

to everyone experiencing this issue, please refer to the solution provided by @SalvatoreITA in this thread --> https://github.com/home-assistant/core/issues/99862

  1. Settings --> System --> Network --> IPv4 --> change the DNS address to something like 1.1.1.1 or 8.8.8.8 (I was using my PiHole as both DHCP and DNS server).

  2. Reboot the machine.

  3. An update notification should pop-up asking you to update to 2023.9.0, do it.

  4. After the update is complete, change the DNS addess to the one you had before.

  5. Reboot the machine

image

image

image

Hm, so it seems that the PiHole DNS is problematic 🤔 Using a different DNS server for Home Assistant is probably the best way out here.

Where did you install PiHole from? The one from the add-on community repository has been deprecated since quite a while (see https://github.com/hassio-addons/addon-pi-hole).

Same issue here with haos vm on proxmox.

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