I did a full Backup, then directly a full Restore (Do a Fire Practice when Plan B is ready ).
Now, a Couple of Days later i recognized that the Community Addons Repository is gone.
Well, 50% gone - when i try to add it manually, it says āCanāt add GitHub - hassio-addons/repository: Home Assistant Community Add-ons, already in the storeā. But it neither finds any of the addons, and thus the already installed Community Addons just have a puzzle-tile-Icon (Fully functional, though).
Supervisor Logs says (i think those are the interesting Parts):
23-02-12 08:01:11 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/hassio-addons/repository /data/addons/git/a0d7b954
stderr: 'Cloning into '/data/addons/git/a0d7b954'...
fatal: unable to access 'https://github.com/hassio-addons/repository/': Could not resolve host: github.com
'.
23-02-12 08:01:11 ERROR (MainThread) [supervisor.store] Can't retrieve data from https://github.com/hassio-addons/repository due to
Aside trying to add the Repository manually, i restarted HA, rebooted HA, powercycled the Raspberry itself - without Success.
How can i fix the Issue, that the Community Addons Repository is already added, but isnāt accessible?
3 things might be possible.
Network configuration not checked, migtht be your HA device doesnāt know about the DNS server which allows to get the IP for github.
Or you simply restored the backup which (at least if restoring onto a differnt machine) failed here with similar problems. Had to uninstall HACS, then wipe the āhacsā folder within /config/custom_components/ and then reinstall HACS.
if that still fails remember to need to link HACS with your githug account.
well ā¦ from brain ā¦ some months passed by when I did run into something similar when I switched from a pi onto a NUC.
Just to clarify, the Problem is with the Community Addons Repository (where you find, for example, InfluxDB).
Iām not talking about HACS - which is running fine, as well as the Addon-Store and ESPhome.
As i can access https://github.com/hassio-addons/repository, at least i can tell that the Router itself isntāt blocking anything
The Backup itself shouldnāt be faulty, becaus I can remember that a Day before i could install another Addon from the Community Addons Repository
Well "could not resolve host " means you HA doesnāt know it. Normally a network issue.
This doesnāt actually mean that āyouā arenāt able to access from another machine using a webbrowser or such like. But that HA isnāt able to put an IP to that domain name.
Do you have IPv4 and IPv6 ?
If so try the following:
Settings>System>network
and in case both are active try to disable IPv6 and see if it then works. If it does then something with the IPv6 DNS seems to be wrong. Or vice versaā¦
Looks to me as if thereās a DNS problem somehow.
EDIT: and about the topic ānot shown/accessibleā ā¦ I do remember that not all platforms would allow for installing each repository, but these are still shown greyed out if I remember right.
It looks like you have been absolutely right.
Though i still donāt get what the Problem was (https://github.com/home-assistant/addons has been accessible all the time, while https://github.com/hassio-addons/repository isnāt), it is now resolved.
Too bad, i played around with more Options, so i canāt clearly say what solved it. But everything was DNS-related.
I set my Router to resolve DNS with 8.8.8.8, dis- and re-enabled IPv6 (both on the Router and HA), did some reboots. Sad, that i canāt clearly tell what helped.
Now i set everything back as it was before, and by now, it still works.