Unable to reach the Home Assistant cloud

Hey there!
Google didn´t help so maybe community will :slight_smile:
I have HA instance running on RPi3b+ at my dad´s house. Everything was working correctly and also trial version of nabu-casa work well. After trial I subscribed so I can maintain it remotely for him. However during week HA was without subscription something went wrong and after subcribing in HA settings under title “Home Assistant Cloud” I got stucked with text “Fetching subscription…” and nothing changed even after hours. So I tried to unlink nabu-casa account and add it again but I got red text “Unable to reach the Home Assistant cloud”. I tried fresh instalation but it still “Unable to reach…”. HA instance is obviously able to connect to the internet as it downloaded all addons correctly. I think that it´s some kind of local network or router issue but I really don´t know what should I be looking for in router configuration. Anybody any idea? system log below.
Btw. it´s not that big issue as HA was mainly for heating regulation and that works great locally but my dad “got thing” for this whole home automation universe and started ordering smart lights and cameras so now I´m this ambitious son who brough something to the home and is unable to fix it [desperate-face-emoji]

Home Assistant 0.94.1

2019-06-08 14:46:14 WARNING (MainThread) [hass_nabucasa.iot] Unable to connect: Cannot connect to host cloud.nabucasa.com:443 ssl:None [Try again]
2019-06-08 14:46:25 WARNING (MainThread) [hass_nabucasa.iot] Unable to connect: Cannot connect to host cloud.nabucasa.com:443 ssl:None [Try again]
2019-06-08 14:46:39 WARNING (MainThread) [hass_nabucasa.iot] Unable to connect: Cannot connect to host cloud.nabucasa.com:443 ssl:None [Try again]
2019-06-08 14:46:54 WARNING (MainThread) [hass_nabucasa.iot] Unable to connect: Cannot connect to host cloud.nabucasa.com:443 ssl:None [Try again]
2019-06-08 14:46:55 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1878740688] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 955, in _create_direct_connection
    traces=traces), loop=self._loop)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 825, in _resolve_host
    self._resolver.resolve(host, port, family=self._family)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/resolver.py", line 30, in resolve
    host, port, type=socket.SOCK_STREAM, family=family)
  File "uvloop/loop.pyx", line 1464, in getaddrinfo
socket.gaierror: [Errno -3] Try again

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 17, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/cloud/http_api.py", line 329, in websocket_subscription
    response = await cloud.fetch_subscription_info()
  File "/usr/local/lib/python3.7/site-packages/hass_nabucasa/__init__.py", line 136, in fetch_subscription_info
    self.subscription_info_url, headers={"authorization": self.id_token}
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
    timeout=real_timeout
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
    req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 959, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host stripe-api.nabucasa.com:443 ssl:None [Try again]
2019-06-08 14:47:25 WARNING (MainThread) [hass_nabucasa.iot] Unable to connect: Cannot connect to host cloud.nabucasa.com:443 ssl:None [Try again]
2019-06-08 14:51:09 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.karvina_praha fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

Thanks everyone for help!

Did you try to browse to https://cloud.nabucasa.com ? you should get a text page saying 404 not found.
If you cannot get to the server, there is some issue external to Home Assistant.

Do you mean directly from RPi? Like via ssh?

From a desktop browser would indicate if your network can reach their site.

I´ve tried on laptop on the same network and I got that “404: Not Found” as you mentioned.

Any idea what I can assume from that?

EDIT: I´ve also tried to create iframe in lovelace to the cloud.nabucasa.com and I´m getting also 404… So obviously my network is able to connect to the cloud server. That makes me even more confused now.

Also it appears that HA is not able to connect to some other servers. However in lovelace iframe I can preview external webpages. Maybe this log can help someone to help me :slight_smile:

2019-06-08 19:34:29 ERROR (SyncWorker_4) [homeassistant.components.darksky.sensor] Unable to connect to Dark Sky: HTTPSConnectionPool(host='api.darksky.net', port=443): Max retries exceeded with url: /forecast/583a718e237e422b7c2cbb57ff12146e/49.2667,16.6?units=si&lang=cs (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x722d2930>: Failed to establish a new connection: [Errno -3] Try again')) 2019-06-08 19:34:30 ERROR (MainThread) [homeassistant.components.yr.sensor] Retrying in 19 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:None [Try again] 2019-06-08 19:34:35 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw) File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 57, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/local/lib/python3.7/socket.py", line 748, 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.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen chunked=chunked) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 344, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 843, in _validate_conn conn.connect() File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 316, in connect conn = self._new_conn() File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6ff9a710>: 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.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 399, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.waze.com', port=443): Max retries exceeded with url: /row-SearchServer/mozi?q=Karvin%C3%A1&lang=eng&origin=livemap&lat=47.498&lon=19.04 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6ff9a710>: Failed to establish a new connection: [Errno -3] Try again'))

I’ve been having the same issues, until I read some forum posts saying the problem was if you had pihole on the same rpi as the HA.
I haven’t resolved, but at least I think I know what the problem is.

Thanks for your reply.
Unfortunately I’m sure there is no pihole on RPi nor entire network :confused:

You’re right. I’ve tried disabling the pihole too. I’ve tried accessing cloud.nabucasa.com from another network and it still doesn’t load. If the portal isn’t accessible, maybe the cloud is actually down? I’m surprised this issue widespread enough

Hello, did you solved the issue? i’m having the same right here.

Hi, still no luck in my case.
No piHole on the network,
everything work well from local network point of view as well as internet access.
However for some reason hassio states " Unable to reach the Home Assistant cloud ".

Any updates on this? Having the same issue

Still nothing. Could anyone report it as a bug to Github with logs? (I would do it but im on vacation without laptop)

It looks like, it has some problem with OpenSSL:

Having same issue here.
When try to point to https://cloud.nabucasa.com/ it says 404: Not Found

Try to ping this address and have 100% packages loss.
Tried several suggestions and doesnt have success. It is hard to get this working.

What do you expect to get at https://cloud.nabucasa.com/ ?
And what is your real problem?

Already get the solution.
In my case, my Dlink router was with IPV6 support active. Once deactivate this, the Nabu Casa could start to working.
So i can suposed that for some reason IPV6 networks cause conflicts with Nabu Casa.

Thanks for all replies.

Regards
Cicero