DaveCB
(Dave Bruner)
April 20, 2022, 2:46pm
1
Hi All
After suffering through a SSD melt down a week ago and then completely rebuilding (Yes, off site backups are now on the list), I am seeing this error repeating over and over. I am running the latest release (not Beta) and everything seems fine and maybe I am over cautious. Any Ideas?
Version core-2022.4.5
Operating System Version 5.10.103-v8
22-04-20 09:44:56 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
22-04-20 09:44:56 INFO (MainThread) [supervisor.resolution.fixups.store_execute_remove] Remove invalid Store: core
22-04-20 09:44:56 ERROR (MainThread) [supervisor.store.repository] Can't remove built-in repositories!
22-04-20 09:44:56 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
22-04-20 09:53:41 INFO (MainThread) [supervisor.host.info] Updating local host information
22-04-20 09:53:42 INFO (MainThread) [supervisor.host.services] Updating service information
22-04-20 09:53:42 INFO (MainThread) [supervisor.host.network] Updating local network information
22-04-20 09:53:43 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
22-04-20 09:53:43 INFO (MainThread) [supervisor.host.manager] Host information reload completed
22-04-20 10:04:13 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-04-20 10:30:39 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
tom_l
April 20, 2022, 2:59pm
2
That’s a supervisor error, not core. It is a known issue.
opened 04:07PM - 31 Mar 21 UTC
closed 07:38AM - 09 Jun 21 UTC
bug
### Describe the issue you are experiencing
Hi!
Long story short: All the addo… ns from the official store disappeared without any clear explanation.
I've installed 5.11 a couple of weeks ago and everything was running fine (i've managed to install 3 addons and some integration), but one day the official addons were missing. I've tried to upgrade to 5.12 but nothing has changed.
Some other info: I’ve installed the 5.12 on the same nuc a lot of times trying to understand if was some wrong configuration by my side (debian and ubuntu, using kvm and virtual box). At the end i moved to win10 and vmware, and tried the last for version of ha os. With the 5.12 the issue was always the same, but with 5.11-10-9 the add-ons were working.
### What is the used version of the Supervisor?
supervisor-2021.03.6
### What type of installation are you running?
Home Assistant Supervised
### Which operating system are you running on?
Home Assistant Operating System
### What is the version of your installed operating system?
5.12
### What version of Home Assistant Core is installed?
core-2021.3.4
### Steps to reproduce the issue
1. open the addons panel in supervisor
### Anything in the Supervisor logs that might be useful for us?
```txt
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 100, in wrapper
return await self._method(*args, **kwargs)
File "/usr/src/supervisor/supervisor/store/git.py", line 195, in pull
raise StoreGitError() from err
supervisor.exceptions.StoreGitError
21-03-28 09:09:45 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/home-assistant/addons repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/home-assistant/addons /data/addons/core
stderr: 'Cloning into '/data/addons/core'...
fatal: unable to access 'https://github.com/home-assistant/addons/': Could not resolve host: github.com
'.
21-03-28 09:09:45 ERROR (MainThread) [supervisor.store.repository] Can't remove built-in repositories!
21-03-28 10:09:45 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/home-assistant/addons repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/home-assistant/addons /data/addons/core
stderr: 'Cloning into '/data/addons/core'...
fatal: unable to access 'https://github.com/home-assistant/addons/': Could not resolve host: github.com
'.
21-03-28 10:09:45 ERROR (MainThread) [supervisor.store.repository] Can't remove built-in repositories!
21-03-28 11:09:45 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/home-assistant/addons repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/home-assistant/addons /data/addons/core
stderr: 'Cloning into '/data/addons/core'...
fatal: unable to access 'https://github.com/home-assistant/addons/': Could not resolve host: github.com
'.
21-03-28 11:09:45 ERROR (MainThread) [supervisor.store.repository] Can't remove built-in repositories!
21-03-28 12:09:44 ERROR (MainThread) [supervisor.store.git] Can't update https://github.com/home-assistant/addons repo: Reference at 'HEAD' does not exist.
21-03-28 12:09:44 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-25926' coro=<Repository.update() done, defined at /usr/src/supervisor/supervisor/store/repository.py:105> exception=StoreGitError()>
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/store/git.py", line 152, in pull
branch = self.repo.active_branch.name
File "/usr/local/lib/python3.8/site-packages/git/repo/base.py", line 718, in active_branch
return self.head.reference
File "/usr/local/lib/python3.8/site-packages/git/refs/symbolic.py", line 270, in _get_reference
sha, target_ref_path = self._get_ref_info(self.repo, self.path)
File "/usr/local/lib/python3.8/site-packages/git/refs/symbolic.py", line 181, in _get_ref_info
return cls._get_ref_info_helper(repo, ref_path)
File "/usr/local/lib/python3.8/site-packages/git/refs/symbolic.py", line 164, in _get_ref_info_helper
raise ValueError("Reference at %r does not exist" % ref_path)
ValueError: Reference at 'HEAD' does not exist
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 109, in update
await self.git.pull()
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 102, in wrapper
raise err
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 100, in wrapper
return await self._method(*args, **kwargs)
File "/usr/src/supervisor/supervisor/store/git.py", line 195, in pull
raise StoreGitError() from err
supervisor.exceptions.StoreGitError
21-03-28 12:09:45 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/home-assistant/addons repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/home-assistant/addons /data/addons/core
stderr: 'Cloning into '/data/addons/core'...
fatal: unable to access 'https://github.com/home-assistant/addons/': Could not resolve host: github.com
'.
21-03-28 12:09:45 ERROR (MainThread) [supervisor.store.repository] Can't remove built-in repositories!
```