Hassio unable to refresh/add add-ons - could not resolve host

I am unable to add a new add-on source (wanted to add the hass-addon edge source) and I am also unable to check for Homeassistant updates and I can’t refresh my current addons.

I have checked my DNS config, I can ping GitHub.com google.com etc from ssh container. I am using pihole (hass-io add-on) and definitely whitelisted all URLs, also all my other network devices have no issue.

20-01-22 05:39:56 ERROR (MainThread) [hassio.store.git] Can’t update https://github.com/sabeechen/hassio-google-drive-backup repo: Cmd(‘git’) failed due to: exit code(128)
cmdline: git fetch --depth=1 --update-shallow -v origin
stderr: ‘fatal: unable to access ‘https://github.com/sabeechen/hassio-google-drive-backup/’: Could not resolve host: github.com’.
20-01-22 05:39:56 ERROR (MainThread) [hassio.store.git] Can’t update https://github.com/home-assistant/hassio-addons repo: Cmd(‘git’) failed due to: exit code(128)
cmdline: git fetch --depth=1 --update-shallow -v origin
stderr: ‘fatal: unable to access ‘https://github.com/home-assistant/hassio-addons/’: Could not resolve host: github.com’.
20-01-22 05:39:56 ERROR (MainThread) [hassio.store.git] Can’t update https://github.com/hassio-addons/repository repo: Cmd(‘git’) failed due to: exit code(128)
cmdline: git fetch --depth=1 --update-shallow -v origin
stderr: ‘fatal: unable to access ‘https://github.com/hassio-addons/repository/’: Could not resolve host: github.com’.

1 Like

Hi, did you manage to resolve this? I have the same problem and same situation (pihole running, can ping github from ssh container).

Edit:
I was finally able to resolve the issue.

First step, it was a simple mistake, as stated in PiHole addon doc “Ensure your Hassio device has a static IP and static external DNS servers!” https://github.com/home-assistant/operating-system/blob/dev/Documentation/configuration.md

I thought I already did that but I recently redone my HA install and forgout about it since I also had a DHCP reservation with the same IP :sweat_smile:

Then following this comment Updater Problem: Exit Code 128 - Could not resolve host github.com I fixed the problem setting the PiHole > Settings > DNS > Interface listening behavior option to Listen on all interfaces instead.

1 Like

Hi,
at the end the issue was that I blocked the google DNS 8.8.8.8 and I had to set 1.1.1.1 as my DNS in Homeassistant.