I’ve just installed the HassIO Linux Image (haos_ova-8.5.qcow2.xz) on a TrueNAS Scale server. I had already tested this a few months ago, it worked, and so I wanted to set up a fresh install to migrate from my Raspberry Pi setup.
I set up a firewall rule first to port forward XXXX (a random port I use externally) to the default 8123, opened HA, and I couldn’t find any Add-On’s besides ESPHome. This rule didn’t cause a problem before with either my Pi or my test VM instance, but I disabled it, and I was now able to see the Home Assistant Community Add-ons as well.
But I’m still unable to see the official add-ons. The supervisor log shows this error:
22-09-10 10:41:11 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
22-09-10 10:41:11 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
22-09-10 10:41:11 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
22-09-10 10:41:11 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: .git/index: index file smaller than expected'.
22-09-10 10:41:12 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-1252' 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 132, in pull
await self.sys_run_in_executor(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/git/remote.py", line 886, in fetch
res = self._get_fetch_info_from_stderr(proc, progress,
File "/usr/local/lib/python3.10/site-packages/git/remote.py", line 750, in _get_fetch_info_from_stderr
proc.wait(stderr=stderr_text)
File "/usr/local/lib/python3.10/site-packages/git/cmd.py", line 502, 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: .git/index: index file smaller than expected'
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 141, in wrapper
raise err
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 139, in wrapper
return await self._method(*args, **kwargs)
File "/usr/src/supervisor/supervisor/store/git.py", line 173, in pull
raise StoreGitError() from err
supervisor.exceptions.StoreGitError
22-09-10 10:41:12 WARNING (SyncWorker_4) [supervisor.store.data] Can't read /data/addons/core/zwave/config.yaml: Invalid Add-on config!. Got {}
22-09-10 10:41:12 WARNING (SyncWorker_4) [supervisor.store.data] Can't read /data/addons/core/dhcp_server/config.yaml: Invalid Add-on config!. Got {}
...
22-09-10 10:41:12 INFO (MainThread) [supervisor.store] Loading add-ons from store: 43 all - 0 new - 0 remove
22-09-10 10:41:12 INFO (MainThread) [supervisor.store] Loading add-ons from store: 43 all - 0 new - 0 remove
I have found a few topics related to this like this one, but no resolution. A few issues on GitHub mention DNS server issues, and were closed by devs with no explanation, but I haven’t done anything custom here so I don’t see why that would be a problem.
Any ideas what could be happening and how to fix this?