Nabu Casa Crashing

Not sure if this is known so I wanted to throw this out there before I open an issue. Is anyone else seeing this? I am getting a traceback on boot and it’s happening pretty frequently now. Looks like the Alexa integration is failing on boot and causing the entire nabu cloud integration to crash.

2021-12-07 11:04:17 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (500)
2021-12-07 11:04:17 ERROR (MainThread) [homeassistant.setup] Error during setup of component cloud
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 254, in _async_setup_component
result = await task
File "/usr/src/homeassistant/homeassistant/components/cloud/__init__.py", line 233, in async_setup
await cloud.initialize()
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/__init__.py", line 275, in initialize
await self._start()
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/__init__.py", line 279, in _start
await self.client.cloud_started()
File "/usr/src/homeassistant/homeassistant/components/cloud/client.py", line 151, in cloud_started
await asyncio.gather(*(task(None) for task in tasks))
File "/usr/src/homeassistant/homeassistant/components/cloud/client.py", line 119, in enable_alexa
await aconf.async_enable_proactive_mode()
File "/usr/src/homeassistant/homeassistant/components/alexa/config.py", line 60, in async_enable_proactive_mode
await self._unsub_proactive_report
File "/usr/src/homeassistant/homeassistant/components/alexa/state_report.py", line 31, in async_enable_proactive_mode
await smart_home_config.async_get_access_token()
File "/usr/src/homeassistant/homeassistant/components/cloud/alexa_config.py", line 179, in async_get_access_token
self._token = body["access_token"]
KeyError: 'access_token'

image
image

yep - having the same problem… was just looking to see if anyone has reported it yet.

I just now reported it on the nabu casa website support page. I did not find any other problem reports here or on hass github.

On a restart of HASS, I am seeing these errors…

2021-12-07 11:59:04 WARNING (MainThread) [homeassistant.setup] Setup of cloud is taking over 10 seconds.

2021-12-07 11:59:04 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)

2021-12-07 11:59:04 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)

2021-12-07 11:59:24 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)

2021-12-07 11:59:24 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)

2021-12-07 11:59:44 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)

2021-12-07 11:59:44 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)

2021-12-07 11:59:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud

2021-12-07 12:00:04 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)

2021-12-07 12:00:04 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)

I’ll report it as well. Thanks for the confirmation.

Same issue here. I believe it has to do with the widespread AWS issue that’s currently going on

2021-12-07 12:48:00 WARNING (MainThread) [homeassistant.setup] Setup of cloud is taking over 10 seconds.
2021-12-07 12:48:01 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (504)
2021-12-07 12:48:29 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 1fd9d32d2fb47dbf2421904cbb951141d8cb12abdd8369ba49314a22b9853e46 from 192.168.1.233
2021-12-07 12:48:31 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (timeout)
2021-12-07 12:48:41 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (504)
2021-12-07 12:48:43 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 11f9e5f083863d8ce324b0cad5aac8f43de42301d253338413b1e28e877a7c25 from cloud
2021-12-07 12:48:48 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud
2021-12-07 12:49:07 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 1fd9d32d2fb47dbf2421904cbb951141d8cb12abdd8369ba49314a22b9853e46 from 192.168.1.233
2021-12-07 12:49:11 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (timeout)
2021-12-07 12:49:21 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (504)
2021-12-07 12:49:48 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud
2021-12-07 12:49:51 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (timeout)
2021-12-07 12:50:11 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)
2021-12-07 12:50:11 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)
2021-12-07 12:50:21 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (504)
2021-12-07 12:50:31 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)
2021-12-07 12:50:31 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)
2021-12-07 12:50:48 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud
2021-12-07 12:50:51 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)
2021-12-07 12:50:51 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)
2021-12-07 12:51:01 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (504)
2021-12-07 12:51:11 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (504)
2021-12-07 12:51:11 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (504)

Yes, it’s an AWS US-East outage. Ashton at nabucasa replied to my problem report and provided this link:

1 Like

I had similar issues. Not knowing what was happening, I performed a Server restart and it took an inordinate amount of time to get to an operational state. Indications were that HA was making multiple attempts (25, I think) to load some configuration from the Cloud. When an operational state was finally achieved, the Cloud integration had disappeared entirely, leaving me guessing if my own network or misconfiguration was to blame.

I know AWS service interruptions are pretty rare, but the lack of cloud services shouldn’t result in ungraceful behavior, IMHO.