Community Addons Repository not shown/accessible - but already in Store

I did a full Backup, then directly a full Restore (Do a Fire Practice when Plan B is ready :slight_smile: ).
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.

1 Like

Thanks for your helping Hand, appreciate it!

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.

1 Like

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.

Thank you so much for your Assistance! :+1:

PS:

Well, maybe it was the Hug Supervisor was missing :wink: