Home Assistant can't access the internet but Hass.io can

So first a bit of history, I’ve run HassIO on this Pi3 since the model was released, same network, cable is good etc. I’m reinstalling as the SD card failed. on both 2.11 and the just released 2.12 Home Assistant has struggled with internet access, HassIO does have internet, I can install new addons etc and HassIO logs show multiple happy connections to the internet and if I install the SSH add-on then I can ping without issue, however HA itself cannot seem to resolve and I get errors like the below (these are from a brand new clean install).

In my head this seems to be something to do with the container but I’m not sure how to start fault finding on it, I’ve seen things that kind of look similar on the forums but mainly from people who’ve had PiHole installed which I don’t.

Anyone have any ideas?

Home Assistant Log, default config fails to connect to weather service, all other online API attempts (e.g. Nest) added after this fail.

2019-05-13 22:29:17 ERROR (MainThread) [homeassistant.components.yr.sensor] Retrying in 17 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:None [Try again]
2019-05-13 22:46:23 ERROR (MainThread) [homeassistant.components.yr.sensor] Retrying in 17 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:None [Try again]

HassIO log from the same:

19-05-13 22:22:03 INFO (MainThread) [__main__] Initialize Hass.io setup
19-05-13 22:22:03 INFO (MainThread) [__main__] Setup HassIO
19-05-13 22:22:03 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 163
19-05-13 22:22:03 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.systemd1 on /org/freedesktop/systemd1
19-05-13 22:22:03 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
19-05-13 22:22:03 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.hostname1 on /org/freedesktop/hostname1
19-05-13 22:22:04 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
19-05-13 22:22:04 INFO (MainThread) [hassio.utils.gdbus] Introspect de.pengutronix.rauc on /
19-05-13 22:22:04 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: de.pengutronix.rauc - /
19-05-13 22:22:04 INFO (MainThread) [hassio.host.info] Update local host information
19-05-13 22:22:04 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
19-05-13 22:22:04 INFO (MainThread) [hassio.host.services] Update service information
19-05-13 22:22:04 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
19-05-13 22:22:04 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}
19-05-13 22:22:04 INFO (MainThread) [hassio.host.services] Reload local service hassos-apparmor.service
19-05-13 22:22:04 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
19-05-13 22:22:04 INFO (MainThread) [hassio.homeassistant] No Home Assistant Docker image homeassistant/raspberrypi3-homeassistant found.
19-05-13 22:22:04 INFO (MainThread) [hassio.homeassistant] Setup HomeAssistant landingpage
19-05-13 22:22:04 INFO (SyncWorker_0) [hassio.docker.interface] Pull image homeassistant/raspberrypi3-homeassistant tag landingpage.
19-05-13 22:22:43 INFO (SyncWorker_0) [hassio.docker.interface] Tag image homeassistant/raspberrypi3-homeassistant with version landingpage as latest
19-05-13 22:22:43 INFO (MainThread) [hassio.hassos] Detect HassOS 2.12 on host system
19-05-13 22:22:43 INFO (SyncWorker_1) [hassio.docker.hassos_cli] Found HassOS CLI homeassistant/armv7-hassio-cli with version 11
19-05-13 22:22:43 INFO (MainThread) [hassio.store.git] Clone add-on https://github.com/hassio-addons/repository repository
19-05-13 22:22:43 INFO (MainThread) [hassio.store.git] Clone add-on https://github.com/home-assistant/hassio-addons repository
19-05-13 22:22:50 INFO (MainThread) [hassio.store] Load add-ons from store: 59 all - 59 new - 0 remove
19-05-13 22:22:50 INFO (MainThread) [hassio.addons] Found 0 installed add-ons
19-05-13 22:22:50 INFO (MainThread) [hassio.updater] Fetch update data from https://s3.amazonaws.com/hassio-version/stable.json
19-05-13 22:22:54 INFO (MainThread) [hassio.snapshots] Found 0 snapshot files
19-05-13 22:22:54 INFO (MainThread) [hassio.discovery] Load 0 messages
19-05-13 22:22:54 INFO (MainThread) [hassio.ingress] Load 0 ingress session
19-05-13 22:22:55 INFO (MainThread) [__main__] Run Hass.io
19-05-13 22:22:55 INFO (MainThread) [hassio.misc.dns] Start DNS port forwarding for host add-ons
19-05-13 22:22:55 INFO (MainThread) [hassio.api] Start API on 172.30.32.2
19-05-13 22:22:55 INFO (MainThread) [hassio.addons] Phase 'initialize' start 0 add-ons
19-05-13 22:22:55 INFO (MainThread) [hassio.addons] Phase 'system' start 0 add-ons
19-05-13 22:22:55 INFO (MainThread) [hassio.addons] Phase 'services' start 0 add-ons
19-05-13 22:22:57 INFO (SyncWorker_3) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi3-homeassistant with version landingpage
19-05-13 22:23:02 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-05-13 22:23:02 INFO (MainThread) [hassio.addons] Phase 'application' start 0 add-ons
19-05-13 22:23:02 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
19-05-13 22:23:02 INFO (MainThread) [hassio.core] Hass.io is up and running
19-05-13 22:23:02 INFO (MainThread) [hassio.homeassistant] Setup Home Assistant
19-05-13 22:23:02 INFO (SyncWorker_0) [hassio.docker.interface] Pull image homeassistant/raspberrypi3-homeassistant tag 0.92.2.
19-05-13 22:28:28 INFO (SyncWorker_0) [hassio.docker.interface] Tag image homeassistant/raspberrypi3-homeassistant with version 0.92.2 as latest
19-05-13 22:28:28 INFO (MainThread) [hassio.homeassistant] Home Assistant docker now installed
19-05-13 22:28:28 INFO (MainThread) [hassio.homeassistant] Start Home Assistant
19-05-13 22:28:28 INFO (SyncWorker_7) [hassio.docker.interface] Stop homeassistant application
19-05-13 22:28:41 INFO (SyncWorker_7) [hassio.docker.interface] Clean homeassistant application
19-05-13 22:28:45 INFO (SyncWorker_7) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi3-homeassistant with version 0.92.2
19-05-13 22:29:20 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-05-13 22:29:21 INFO (SyncWorker_17) [hassio.docker.interface] Cleanup images: ['homeassistant/raspberrypi3-homeassistant:landingpage']
19-05-13 22:41:15 INFO (MainThread) [hassio.addons] Create Home Assistant add-on data folder /data/addons/data/core_ssh
19-05-13 22:41:15 INFO (SyncWorker_12) [hassio.docker.interface] Pull image homeassistant/armv7-addon-ssh tag 5.4.
19-05-13 22:42:22 INFO (SyncWorker_12) [hassio.docker.interface] Tag image homeassistant/armv7-addon-ssh with version 5.4 as latest

Never worked with containers, so idk if it’s some VM issue.
But, are you sure your HA instances have correct network settings?
I spent a couple of days wondering what was going on, and i had it fed with the wrong gateway address.
(just a thought:))

I had a problem within the docker instance on my hassio where home assistant also lost its ability to connect to the internet as well. I don’t remember the exact fix but I believe I had to manually specify the dns servers to use in the docker level configuration. I had to ssh into the hassio instance (not ssh add-on) to manually edit a config file. After rebooting home assistant was able to connect again.

I’ve gone back to Hassbian for the moment, a little frustrating but there’s nothing special about my network etc and tried another pi to be sure so have had to leave it for now. Hassbian gives me sensible control over the host OS and not being that familiar with Docker etc it was easier for now.