Even with the above “success” for the hassio supervisor, the homeassistant container does not resolve names via hassio supervisor as supposed to:
the containers that run on host network will be use the internal dns server from hassio
Even with the above “success” for the hassio supervisor, the homeassistant container does not resolve names via hassio supervisor as supposed to:
the containers that run on host network will be use the internal dns server from hassio
That is the internal docker DNS Server. Hassio use this server to resolve DNS requests and at the end also all other hassio host add-ons.
If the internal docker DNS server will no work, it mean that some things in your docker Setup is wrong. To fix that permanently you need care that you docker setup work correct with his own internal DNS server. Maybe a docker update on host? I can confirm that with 1.17.03 It work all like it should.
OK will look into this.
Do you know what could have changed to stop this working though?
Its weird that all was good then it stopped working…
I’m not sure if this will help you. Since it looks like the docker internal dns server is broken. I think a docker reinstall or update can be have a real affect for you problems. It is true that we first use the internal docker dns approach since 0.58
I have a hunch that 0.58 broke it
I’m currently doing a full re-install OS (ubuntu mini), Docker and hass.io.
I tried “cleaning” docker of containers, images, network etc then reinstall hassio but it didnt work.
BTW the commands I used to install docker + hassio, and am following again this time, are documented here:
And this time I took a VM snapshot before I installed hassio so no need to reinstall the OS again
Hi @pvizeli
It’s not good news.
I followed exact same process to install OS, docker and hass.io as with my original install that was working fine up until 0.58 update (see post above linking to the exact commands I ran).
Now hass.io will not install fully:
The script executes, deploys the supervisor and starts the systemd services.
I can access http://hassio:8123/, but it never completes the install.
This is 3-4 hours later now and I am still seeing:
Last time it completed in less than a minute…
Pretty sure its still the docker DNS issue at heart.
Please can you share with me how docker is installed/configured on hassio RPi image?
This is how I install docker on Ubuntu x86:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
Thanks for your input as I currently have zero HASS
I have verified that its the same DNS issue.
The clue is in the 1st error - Couldn’t resolve host ‘github.com’:
ERROR (MainThread) [hassio.addons.git] Can't clone https://github.com/home-assistant/hassio-addons repo: Cmd('git') failed due to: exit code(128)
cmdline: git clone --recursive -v https://github.com/home-assistant/hassio-addons /data/addons/core
stderr: 'Cloning into '/data/addons/core'...
fatal: unable to access 'https://github.com/home-assistant/hassio-addons/': Couldn't resolve host 'github.com'
Full logs:
james@hassio:~$ docker logs hassio_supervisor
starting version 3.2.2
17-08-30 16:58:51 INFO (MainThread) [__main__] Initialize Hassio setup
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create Home-Assistant config folder /data/homeassistant
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create hassio ssl folder /data/ssl
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create hassio addon data folder /data/addons/data
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create hassio addon local repository folder /data/addons/local
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create hassio addon git repositories folder /data/addons/git
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create hassio temp folder /data/tmp
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create hassio backup folder /data/backup
17-08-30 16:58:51 INFO (MainThread) [hassio.bootstrap] Create hassio share folder /data/share
17-08-30 16:58:51 INFO (MainThread) [hassio.dock.network] Can't find HassIO network, create new network
17-08-30 16:58:52 INFO (MainThread) [__main__] Run Hassio setup
17-08-30 16:58:52 INFO (SyncWorker_0) [hassio.dock.supervisor] Attach to supervisor homeassistant/amd64-hassio-supervisor with version 0.60
17-08-30 16:58:58 INFO (MainThread) [hassio.host_control] Send 'info' to HostControl.
17-08-30 16:58:59 INFO (MainThread) [hassio.host_control] Receive from HostControl: { "type": "generic", "version": "0.3", "last_version": "0.3", "hostname": "hassio", "features": ["shutdown", "reboot", "update"], "os": "GNU/Linux" }.
17-08-30 16:58:59 INFO (MainThread) [hassio.homeassistant] No HomeAssistant docker homeassistant/qemux86-64-homeassistant found.
17-08-30 16:58:59 INFO (MainThread) [hassio.homeassistant] Setup HomeAssistant landingpage
17-08-30 16:58:59 INFO (SyncWorker_2) [hassio.dock.interface] Pull image homeassistant/qemux86-64-homeassistant tag landingpage.
17-08-30 16:59:01 INFO (SyncWorker_2) [hassio.dock.interface] Tag image homeassistant/qemux86-64-homeassistant with version landingpage as latest
17-08-30 16:59:01 INFO (MainThread) [hassio.addons.git] Clone addon https://github.com/home-assistant/hassio-addons repository
17-08-30 16:59:07 ERROR (MainThread) [hassio.addons.git] Can't clone https://github.com/home-assistant/hassio-addons repo: Cmd('git') failed due to: exit code(128)
cmdline: git clone --recursive -v https://github.com/home-assistant/hassio-addons /data/addons/core
stderr: 'Cloning into '/data/addons/core'...
fatal: unable to access 'https://github.com/home-assistant/hassio-addons/': Couldn't resolve host 'github.com'
'.
17-08-30 16:59:07 ERROR (MainThread) [hassio.addons] Can't load from repository core
17-08-30 16:59:07 INFO (MainThread) [hassio.addons] Load addons: 0 all - 0 new - 0 remove
17-08-30 16:59:07 INFO (MainThread) [hassio.addons] Startup initialize run 0 addons
17-08-30 16:59:07 INFO (MainThread) [hassio.snapshots] Found 0 snapshot files
17-08-30 16:59:07 INFO (MainThread) [__main__] Start Hassio
17-08-30 16:59:07 INFO (MainThread) [__main__] Run Hassio loop
17-08-30 16:59:07 INFO (MainThread) [hassio.dns] Start DNS port forwarding for host add-ons
17-08-30 16:59:07 INFO (MainThread) [hassio.addons] Load addons: 0 all - 0 new - 0 remove
17-08-30 16:59:07 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 16:59:12 WARNING (MainThread) [hassio.updater] Can't fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> [Errno -3] Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-08-30 16:59:12 INFO (MainThread) [hassio.tasks] Found new HassIO version None.
17-08-30 16:59:12 INFO (MainThread) [hassio.dock.supervisor] Update supervisor docker to homeassistant/amd64-hassio-supervisor:None
17-08-30 16:59:12 INFO (SyncWorker_3) [hassio.dock.interface] Pull image homeassistant/amd64-hassio-supervisor tag None.
17-08-30 16:59:13 ERROR (SyncWorker_3) [hassio.dock.interface] Can't install homeassistant/amd64-hassio-supervisor:None -> 404 Client Error: Not Found ("manifest for homeassistant/amd64-hassio-supervisor:None not found").
17-08-30 16:59:13 INFO (MainThread) [hassio.core] Start hassio api on 172.30.32.2
17-08-30 16:59:13 INFO (MainThread) [hassio.addons] Startup system run 0 addons
17-08-30 16:59:13 INFO (MainThread) [hassio.addons] Startup services run 0 addons
17-08-30 16:59:13 INFO (SyncWorker_2) [hassio.dock.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version landingpage
17-08-30 16:59:13 INFO (MainThread) [hassio.addons] Startup application run 0 addons
17-08-30 16:59:13 INFO (MainThread) [hassio.homeassistant] Setup HomeAssistant
17-08-30 16:59:13 WARNING (MainThread) [hassio.homeassistant] Error on install HomeAssistant. Retry in 60sec
17-08-30 17:00:13 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 17:00:18 WARNING (MainThread) [hassio.updater] Can't fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> [Errno -3] Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-08-30 17:00:18 WARNING (MainThread) [hassio.homeassistant] Error on install HomeAssistant. Retry in 60sec
17-08-30 17:01:18 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 17:01:23 WARNING (MainThread) [hassio.updater] Can't fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> [Errno -3] Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-08-30 17:01:23 WARNING (MainThread) [hassio.homeassistant] Error on install HomeAssistant. Retry in 60sec
17-08-30 17:02:23 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 17:02:28 WARNING (MainThread) [hassio.updater] Can't fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> [Errno -3] Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-08-30 17:02:28 WARNING (MainThread) [hassio.homeassistant] Error on install HomeAssistant. Retry in 60sec
17-08-30 17:03:28 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 17:03:33 WARNING (MainThread) [hassio.updater] Can't fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> [Errno -3] Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-08-30 17:03:33 WARNING (MainThread) [hassio.homeassistant] Error on install HomeAssistant. Retry in 60sec
Hi - Haven’t used it for a couple of weeks… I’ll check tonight.
yep … my hassio is alive and well :
Supervisor
Version 0.60
Beta channel false
Latest available version 0.60Host OS
Hostname hassio
Type generic
OS GNU/Linux
Host Control version 0.3
Latest available version 0.3Home Assistant
Current version 0.52.1
Latest version 0.52.1
2 days of logs :
17-08-29 00:23:03 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-29 04:39:54 INFO (SyncWorker_3) [hassio.dock.interface] Update docker 0.52 with homeassistant/qemux86-64-homeassistant:0.52.1
17-08-29 04:39:54 INFO (SyncWorker_3) [hassio.dock.interface] Pull image homeassistant/qemux86-64-homeassistant tag 0.52.1.
17-08-29 04:41:01 INFO (SyncWorker_3) [hassio.dock.interface] Tag image homeassistant/qemux86-64-homeassistant with version 0.52.1 as latest
17-08-29 04:41:01 INFO (SyncWorker_3) [hassio.dock.interface] Stop homeassistant/qemux86-64-homeassistant docker application
17-08-29 04:41:08 INFO (SyncWorker_3) [hassio.dock.interface] Clean homeassistant/qemux86-64-homeassistant docker application
17-08-29 04:41:09 INFO (SyncWorker_3) [hassio.dock.interface] Cleanup docker images: [‘homeassistant/qemux86-64-homeassistant:0.52’]
17-08-29 04:41:15 INFO (SyncWorker_2) [hassio.dock.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version 0.52.1
17-08-29 04:44:07 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-29 04:44:07 INFO (MainThread) [hassio.snapshots] Found 1 snapshot files
17-08-29 04:44:07 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - danielperna84/hassio-addons: Repository for hass.io add ons repository
17-08-29 04:44:07 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - home-assistant/addons: ➕ Docker add-ons for Home Assistant repository
17-08-29 04:44:08 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-08-29 04:44:08 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “generic”, “version”: “0.3”, “last_version”: “0.3”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”], “os”: “GNU/Linux” }.
17-08-29 04:44:09 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-08-29 07:33:03 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-08-29 07:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - danielperna84/hassio-addons: Repository for hass.io add ons repository
17-08-29 07:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - home-assistant/addons: ➕ Docker add-ons for Home Assistant repository
17-08-29 07:33:03 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “generic”, “version”: “0.3”, “last_version”: “0.3”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”], “os”: “GNU/Linux” }.
17-08-29 07:33:04 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-08-29 08:28:03 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-29 15:33:03 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-08-29 15:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - danielperna84/hassio-addons: Repository for hass.io add ons repository
17-08-29 15:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - home-assistant/addons: ➕ Docker add-ons for Home Assistant repository
17-08-29 15:33:03 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “generic”, “version”: “0.3”, “last_version”: “0.3”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”], “os”: “GNU/Linux” }.
17-08-29 15:33:04 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-08-29 16:33:03 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-29 19:33:03 INFO (MainThread) [hassio.snapshots] Found 1 snapshot files
17-08-29 23:33:03 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-08-29 23:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - danielperna84/hassio-addons: Repository for hass.io add ons repository
17-08-29 23:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - home-assistant/addons: ➕ Docker add-ons for Home Assistant repository
17-08-29 23:33:05 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-08-29 23:33:07 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “generic”, “version”: “0.3”, “last_version”: “0.3”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”], “os”: “GNU/Linux” }.
17-08-30 00:38:03 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 07:33:03 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-08-30 07:33:03 INFO (MainThread) [hassio.tasks] Addon auto update process 1 tasks
17-08-30 07:33:03 INFO (SyncWorker_2) [hassio.dock.interface] Update docker 0.4.3-p2 with homeassistant/amd64-addon-snips:0.4.9
17-08-30 07:33:03 INFO (SyncWorker_2) [hassio.dock.interface] Pull image homeassistant/amd64-addon-snips tag 0.4.9.
17-08-30 07:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - home-assistant/addons: ➕ Docker add-ons for Home Assistant repository
17-08-30 07:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - danielperna84/hassio-addons: Repository for hass.io add ons repository
17-08-30 07:33:03 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “generic”, “version”: “0.3”, “last_version”: “0.3”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”], “os”: “GNU/Linux” }.
17-08-30 07:33:04 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-08-30 07:36:52 INFO (SyncWorker_2) [hassio.dock.interface] Tag image homeassistant/amd64-addon-snips with version 0.4.9 as latest
17-08-30 07:36:52 INFO (SyncWorker_2) [hassio.dock.interface] Cleanup docker images: [‘homeassistant/amd64-addon-snips:0.4.3-p2’]
17-08-30 08:43:03 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 15:33:03 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-08-30 15:33:03 INFO (MainThread) [hassio.snapshots] Found 1 snapshot files
17-08-30 15:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - home-assistant/addons: ➕ Docker add-ons for Home Assistant repository
17-08-30 15:33:03 INFO (MainThread) [hassio.addons.git] Pull addon GitHub - danielperna84/hassio-addons: Repository for hass.io add ons repository
17-08-30 15:33:04 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-08-30 15:33:08 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “generic”, “version”: “0.3”, “last_version”: “0.3”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”], “os”: “GNU/Linux” }.
17-08-30 16:48:03 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
i also thing that this is a DNS misuse.
please try this : ( to give a clearer image of the network response )
connect to the hassio_supervisor container and start /bin/bash :
sudo docker exec -i -t hassio_supervisor /bin/bash
try :
connection diagnose :
ping google.com
ping github.com
DNS response :
nslookup google.com
nslookup github.com
and try with google dns as the DNS server (8.8.8.8)
nslookup google.com 8.8.8.8
nslookup github.com 8.8.8.8
Usage: nslookup [HOST] [SERVER]
NOTE: type :
exit
to exit the container !!!
Thanks for checking, @mak
You can see the output for some of these in earlier posts as I was diagnosing…
Anyway… here goes:
james@hassio:~$ docker exec -i -t hassio_supervisor /bin/bash
bash-4.3# ping google.com
ping: bad address 'google.com'
bash-4.3# ping github.com
ping: bad address 'github.com'
bash-4.3# nslookup google.com
nslookup: can't resolve '(null)': Name does not resolve
nslookup: can't resolve 'google.com': Try again
bash-4.3#
bash-4.3# nslookup github.com
nslookup: can't resolve '(null)': Name does not resolve
nslookup: can't resolve 'github.com': Try again
bash-4.3# nslookup google.com 8.8.8.8
Server: 8.8.8.8
Address 1: 8.8.8.8
nslookup: can't resolve 'google.com': Try again
bash-4.3# nslookup github.com 8.8.8.8
Server: 8.8.8.8
Address 1: 8.8.8.8
nslookup: can't resolve 'github.com': Try again
But if I update /etc/resolv.conf (in the container) the ping and nslookup both immediately work:
bash-4.3# cat /etc/resolv.conf
search local
nameserver 8.8.8.8
nameserver 127.0.0.11
options ndots:0
bash-4.3#
bash-4.3#
bash-4.3# nslookup github.com
nslookup: can't resolve '(null)': Name does not resolve
Name: github.com
Address 1: 192.30.253.112 lb-192-30-253-112-iad.github.com
Address 2: 192.30.253.113 lb-192-30-253-113-iad.github.com
bash-4.3#
bash-4.3#
bash-4.3# ping github.com
PING github.com (192.30.253.113): 56 data bytes
64 bytes from 192.30.253.113: seq=0 ttl=46 time=579.916 ms
64 bytes from 192.30.253.113: seq=1 ttl=46 time=80.160 ms
64 bytes from 192.30.253.113: seq=2 ttl=46 time=84.541 ms
64 bytes from 192.30.253.113: seq=3 ttl=46 time=79.929 ms
^C
--- github.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 79.929/206.136/579.916 ms
Also now HASS kicked into life on the 60 sec retries since github.com now can be resolved:
james@hassio:~$ docker logs hassio_supervisor
...
...
17-08-30 22:17:45 WARNING (MainThread) [hassio.homeassistant] Error on install HomeAssistant. Retry in 60sec
17-08-30 22:18:45 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 22:18:50 WARNING (MainThread) [hassio.updater] Can't fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> [Errno -3] Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-08-30 22:18:50 WARNING (MainThread) [hassio.homeassistant] Error on install HomeAssistant. Retry in 60sec
17-08-30 22:19:50 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-08-30 22:19:50 INFO (SyncWorker_2) [hassio.dock.interface] Pull image homeassistant/qemux86-64-homeassistant tag 0.52.1.
17-08-30 22:21:10 INFO (SyncWorker_2) [hassio.dock.interface] Tag image homeassistant/qemux86-64-homeassistant with version 0.52.1 as latest
17-08-30 22:21:10 INFO (MainThread) [hassio.homeassistant] HomeAssistant docker now installed
17-08-30 22:21:10 INFO (SyncWorker_3) [hassio.dock.interface] Cleanup docker images: ['homeassistant/qemux86-64-homeassistant:landingpage']
17-08-30 22:21:15 INFO (SyncWorker_0) [hassio.dock.interface] Stop homeassistant/qemux86-64-homeassistant docker application
17-08-30 22:21:16 INFO (SyncWorker_0) [hassio.dock.interface] Clean homeassistant/qemux86-64-homeassistant docker application
17-08-30 22:21:16 INFO (SyncWorker_0) [hassio.dock.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version 0.52.1
I think I have tracked down the issue.
I had a bit of a shonky DNS config on my home network.
My router was resolving local hostnames and I use opendns to resolve internet hosts.
Hence I had my router and opendns IPs served as pri and sec DNS by my DHCP server.
It seems that docker internal DNS only used the pri DNS server, hence no external hosts resolved.
Now I set up DNS correctly so that DNS forwarding is configured on my router.
This means there is only one/pri DNS server on my hassio host…
It seems that resolution from the supervisor now works:
james@hassio:~$ docker exec -i -t hassio_supervisor /bin/bash
bash-4.3# cat /etc/resolv.conf
search local
nameserver 127.0.0.11
options ndots:0
bash-4.3#
bash-4.3#
bash-4.3#
bash-4.3# ping github.com
PING github.com (192.30.253.112): 56 data bytes
64 bytes from 192.30.253.112: seq=0 ttl=51 time=78.873 ms
64 bytes from 192.30.253.112: seq=1 ttl=51 time=78.875 ms
^C
--- github.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 78.873/78.874/78.875 ms
Thanks for the help @pvizeli and @mak
I’ll rename the topic and mark solved.
I’m getting the same issue with a NUC.
17-11-26 03:13:34 INFO (MainThread) [main] Initialize Hassio setup
17-11-26 03:13:34 INFO (MainThread) [main] Setup HassIO
17-11-26 03:13:34 INFO (SyncWorker_0) [hassio.dock.supervisor] Attach to supervisor homeassistant/amd64-hassio-supervisor with version 0.74
17-11-26 03:13:34 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-11-26 03:13:34 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “resinos”, “version”: “1.1”, “last_version”: “”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”, “hostname”], “os”: “GNU/Linux” }.
17-11-26 03:13:34 INFO (SyncWorker_0) [hassio.dock.interface] Attach to image homeassistant/intel-nuc-homeassistant with version 0.57.3
17-11-26 03:13:34 INFO (MainThread) [hassio.addons.git] Load addon /data/addons/core repository
17-11-26 03:13:34 INFO (MainThread) [hassio.addons] Load addons: 17 all - 17 new - 0 remove
17-11-26 03:13:34 INFO (SyncWorker_1) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-configurator with version 0.2.3
17-11-26 03:13:34 INFO (SyncWorker_6) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-ssh with version 2.9
17-11-26 03:13:34 INFO (SyncWorker_3) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-check_config with version 0.7
17-11-26 03:13:34 INFO (SyncWorker_2) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-mosquitto with version 1.0
17-11-26 03:13:34 INFO (SyncWorker_4) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-samba with version 2.0
17-11-26 03:13:34 INFO (MainThread) [hassio.addons] Startup initialize run 0 addons
17-11-26 03:13:34 INFO (MainThread) [hassio.snapshots] Found 1 snapshot files
17-11-26 03:13:34 INFO (MainThread) [main] Run HassIO
17-11-26 03:13:34 INFO (MainThread) [hassio.addons.git] Pull addon https://github.com/home-assistant/hassio-addons repository
17-11-26 03:13:34 INFO (MainThread) [hassio.dns] Start DNS port forwarding for host add-ons
17-11-26 03:13:34 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-11-26 03:13:39 WARNING (MainThread) [hassio.updater] Can’t fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-11-26 03:13:39 INFO (MainThread) [hassio.core] Start hassio api on 172.30.32.2
17-11-26 03:13:39 INFO (MainThread) [hassio.addons] Startup system run 1 addons
17-11-26 03:13:39 ERROR (MainThread) [hassio.addons.git] Can’t pull https://github.com/home-assistant/hassio-addons repo: Cmd(‘git’) failed due to: exit code(1)
cmdline: git pull -v origin
stderr: ‘fatal: unable to access ‘https://github.com/home-assistant/hassio-addons/’: Couldn’t resolve host ‘github.com’’.
17-11-26 03:13:39 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-11-26 03:13:39 INFO (SyncWorker_13) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-mosquitto with version 1.0
17-11-26 03:13:39 INFO (MainThread) [hassio.addons] Startup services run 2 addons
17-11-26 03:13:39 INFO (SyncWorker_1) [hassio.dock.interface] Clean homeassistant/amd64-addon-samba docker application
17-11-26 03:13:39 INFO (SyncWorker_9) [hassio.dock.interface] Clean homeassistant/amd64-addon-ssh docker application
17-11-26 03:13:39 INFO (SyncWorker_1) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-samba with version 2.0
17-11-26 03:13:39 INFO (SyncWorker_9) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-ssh with version 2.9
17-11-26 03:13:39 INFO (SyncWorker_6) [hassio.dock.interface] Clean homeassistant/intel-nuc-homeassistant docker application
17-11-26 03:13:40 INFO (SyncWorker_6) [hassio.dock.homeassistant] Start homeassistant homeassistant/intel-nuc-homeassistant with version 0.57.3
17-11-26 03:13:40 INFO (MainThread) [hassio.addons] Startup application run 1 addons
17-11-26 03:13:40 INFO (SyncWorker_3) [hassio.dock.interface] Clean homeassistant/amd64-addon-configurator docker application
17-11-26 03:13:41 INFO (SyncWorker_3) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-configurator with version 0.2.3
17-11-26 03:15:15 INFO (SyncWorker_10) [hassio.dock.interface] Restart homeassistant/intel-nuc-homeassistant
17-11-26 03:19:24 INFO (MainThread) [hassio.addons.git] Clone addon https://github.com/notoriousbdg/hassio-addons repository
17-11-26 03:19:29 ERROR (MainThread) [hassio.addons.git] Can’t clone https://github.com/notoriousbdg/hassio-addons repo: Cmd(‘git’) failed due to: exit code(128)
cmdline: git clone --recursive -v https://github.com/notoriousbdg/hassio-addons /data/addons/git/27e642c6
stderr: 'Cloning into ‘/data/addons/git/27e642c6’…
fatal: unable to access ‘https://github.com/notoriousbdg/hassio-addons/’: Couldn’t resolve host ‘github.com’
'.
17-11-26 03:19:29 ERROR (MainThread) [hassio.addons] Can’t load from repository https://github.com/notoriousbdg/hassio-addons
17-11-26 03:19:29 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
Here’s my version information.
Supervisor
Version 0.74
Beta channel false
Latest available version 0.74
Host OS
Hostname hassio
Type resinos
OS GNU/Linux
Host Control version 1.1
Latest available version
Home Assistant
Current version 0.57.3
Latest version 0.57.3
Just an FYI. I ended up reinstalling hassio and this time around it seems to be working correctly. Not really sure what happened the first time. Does the installer access some kind of weird non standard web ports for the install? I’m thinking maybe the firewall blocked it.
Little addition – perhaps this will help someone with the same problem. I had the same issues as above (supervisor cannot resolve hostnames). I’m also using the hass.io Pi-hole addon. Under the DNS settings there I had set it to listen only on the external interface – changed it to listen on all interfaces and it works now.
All of a sudden I have this problem, and don’t know what caused it