No outside connections after fresh install

Hello there,

After Playing around a little bit in a VM, I installed HAOS on the NUC I was running the VM on using a portable Ubuntu and etcher to write the image to the ssd. (Making an bootable USB Stick never installed HAOS on the SSD)

After my first Login i was greeted by problems initialising the connection for the weather and Radio Integration.


Also trying to connect to the detected Tado API I only got an Error “Unexpected exeption”

Tried restarting multiple times and changing the DNS to 1.1.1.1
I don’t really know what to do or how to troubleshoot the problem, hope you can help me or can link to a similat Thread.

Lukas

The Logs:

2023-08-27 17:17:21.553 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Radio Browser' for radio_browser integration not ready yet: Could not connect to Radio Browser API; Retrying in background
2023-08-27 17:17:26.968 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:17:27.003 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Home' for met integration not ready yet: Update failed: ; Retrying in background
2023-08-27 17:17:38.102 WARNING (MainThread) [homeassistant.components.media_player] Error retrieving proxied image from http://10.23.9.26:1400/getaa?s=1&u=x-sonos-http:track%253a1230752593.mp3?sid%3D160%26flags%3D8232%26sn%3D8
2023-08-27 17:17:40.071 ERROR (MainThread) [homeassistant.components.homeassistant_alerts] Error requesting homeassistant_alerts data: Cannot connect to host alerts.home-assistant.io:443 ssl:default [Try again]
2023-08-27 17:17:40.082 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:17:55.398 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:18:20.472 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:19:05.587 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:20:31.023 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:21:56.419 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:23:21.497 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'
2023-08-27 17:24:01.933 ERROR (MainThread) [homeassistant.components.tado.config_flow] Unexpected exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/socket.py", line 962, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 403, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1053, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 363, in connect
    self.sock = conn = self._new_conn()
                       ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f21a739d350>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 798, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=tado-web-app&client_secret=wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc&grant_type=password&password=Test&scope=home.user&username=lukashix%40gmail.com (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f21a739d350>: Failed to establish a new connection: [Errno -3] Try again'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 74, in async_step_user
    validated = await validate_input(self.hass, user_input)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 41, in validate_input
    tado = await hass.async_add_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyTado/interface.py", line 535, in __init__
    self._loginV2(username, password)
  File "/usr/local/lib/python3.11/site-packages/PyTado/interface.py", line 158, in _loginV2
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=tado-web-app&client_secret=wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc&grant_type=password&password=Test&scope=home.user&username=lukashix%40gmail.com (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f21a739d350>: Failed to establish a new connection: [Errno -3] Try again'))
2023-08-27 17:24:46.769 ERROR (MainThread) [metno] Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error 'ClientConnectorError'

Seems balena etcher causes a lot of dns problems lately

Huh, I guess then I will try install the OS without balena etcher next time.
Thanks :slight_smile:

Will post an update if I had the time to test it in a few days.

It’s very sad that HA actually still suggests this piece of crapware in the documentation. How can a image writer program be bigger (>0.5GB) than the HaOS image that get’s written? Only by including a EOL browser, bunch of trackers and ads into that badware called balena etcher :face_vomiting:

The results of our investigation showed that Etcher will make connection to the following systems:

Connection Included intentionally
Sentry YES
Mixpanel YES
Google Analytics (&doubleclick) NO
Go Squared NO
Facebook Pixel NO
Gstatic.com NO
jquery NO
Cloudfront NO
facebook.com/ facebook.net NO

Looks like balena isn’t capable or willing even fixing the worst issues :man_shrugging:

I mean, this really doesn’t sound good.
But after a day of trying to install HAOS without etcher I kind of get why etcher is still recommended.

After a whole day of trying (with other things to do in the house) I’m still without an HAOS install.
With a Live Ubuntu USBImager doesn’t see the SSD even with -a and -m added when launching the application. On a live windows the SSD isn’t allowed to be written on. Trying to install HAOS on an external HDD with my main Windows machine the HDD is also protected against writing. Although I can copy files to it, format it and so on.
[Edit: Everytime I run the application as sudo or administrator.]

With etcher I installed everything in 20-30 minutes.

When I first installed HAOS two years ago or so I just flashed an usb stick put it in the NUC and it installed itself on the SSD, why isn’t this happening anymore?

Little bit frustrating to be honest.