Error with expired Cloud setup

Hi there,

I’ve used the home assistant / Nabu Casa Cloud trial. After 30 days (?) it naturally expired. This was some month ago. Now upon checking my logs, I came upon this line:

2021-08-14 08:45:57 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (401)
2021-08-14 08:45:57 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (401)

I figured, this is because my trial has expired. So I wanted to disable the cloud but I can’t find any way to set this up. In my configuration panel there is no button to setup the cloud as I remembered and how it is displayed in the manual:

Any help?

Thanks!

PS: I have “default_config:” in my configuration.yaml

Hi there,
I deleted the database and tried again. Error still exists and now it’s having trouble starting up. There is a little notification saying:
Starting cloud, not everything will be available until it is finished.

Log says the following:
2021-08-14 09:21:35 WARNING (MainThread) [homeassistant.setup] Setup of cloud is taking over 10 seconds.

The notification has been there for a couple of minutes now.

After some further waiting time it now says:
2021-08-14 09:26:25 ERROR (MainThread) [homeassistant.setup] Setup of cloud is taking longer than 300 seconds. Startup will proceed without waiting any longer

So thats the reason I cant change anything I guess. Any help?

Remove the line:

cloud:

From your configuration.yaml file and restart home assistant.

However… if you don’t have that line, you have to remove

default_config:

and add back all these integrations to your configuration.yaml file:

Except the second one.

You will also have to manage newly released integrations you want by manually adding them to your configuration.yaml file.

If that sounds like too much work you could always pay $5, disable the cloud integration in the UI and cancel your subscription afterwards.

He’s using default_config.
Maybe remove what is under .storage/.cloud? It’s empty for me, not using NC, but I suspect some info are stored there when subscribing…

Yeah I was just editing my post :slight_smile:

Deleting the cloud file from .storage could work. there’s also a .cloud directory in there but it will probably be ignored without that file.

Definitely do a full backup before messing with the .storage files.

I deleted the cloud file, it was recreated upon start with some different IDs:

alarm% diff cloud bacloud
20c20
<         "cloud_user": "a6e4be...",
---
>         "cloud_user": "ddbf68...",
22c22
<         "alexa_enabled": true,
---
>         "alexa_enabled": false,
40c40
<         "google_local_webhook_id": "27379d8...",
---
>         "google_local_webhook_id": "d6a63d5...",
42c42,43
<         "username": "d687407a..."
---
>         "username": "d687407a...",
>         "google_report_state": true

I don’t have a .cloud folder though (creating one didn’t do anything).

This is the corresponding output if I set log level to debug (abstract):

2021-08-14 11:52:53 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 34.542687}}
2021-08-14 11:52:54 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:52:54 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 35.545231}
2021-08-14 11:52:54 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 35.545231}}
2021-08-14 11:52:55 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:52:55 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 36.548328}
2021-08-14 11:52:55 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 36.548328}}
2021-08-14 11:52:56 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:52:56 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 37.550251}
2021-08-14 11:52:56 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 37.550251}}
2021-08-14 11:52:57 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:52:57 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 38.553686}
2021-08-14 11:52:57 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 38.553686}}
2021-08-14 11:52:58 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:52:58 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 39.556354}
2021-08-14 11:52:58 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 39.556354}}
2021-08-14 11:52:59 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:52:59 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 40.559216}
2021-08-14 11:52:59 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 40.559216}}
2021-08-14 11:52:59 DEBUG (MainThread) [hass_nabucasa.remote] Initializing backend
2021-08-14 11:52:59 DEBUG (MainThread) [botocore.hooks] Event choose-service-name: calling handler <function handle_service_name_alias at 0xffff835823a0>
2021-08-14 11:52:59 DEBUG (MainThread) [botocore.hooks] Event creating-client-class.cognito-identity-provider: calling handler <function add_generate_presigned_url at 0xffff83633c10>
2021-08-14 11:52:59 DEBUG (MainThread) [botocore.endpoint] Setting cognito-idp timeout as (60, 60)
2021-08-14 11:53:00 DEBUG (MainThread) [botocore.client] Registering retry handlers for service: cognito-idp
2021-08-14 11:53:00 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://remote-sni-api.nabucasa.com/register_instance (401)
2021-08-14 11:53:00 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud (401)
2021-08-14 11:53:00 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:53:00 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 41.561522}
2021-08-14 11:53:00 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 41.561522}}
2021-08-14 11:53:01 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:53:01 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 42.564297}
2021-08-14 11:53:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 42.564297}}
2021-08-14 11:53:02 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:53:02 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 43.566774}
2021-08-14 11:53:02 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 43.566774}}
2021-08-14 11:53:03 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {'cloud': <cloud: 1 / 0>}
2021-08-14 11:53:03 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'cloud': 44.569863}
2021-08-14 11:53:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [281472854231744] Sending {"id": 10, "type": "event", "event": {"cloud": 44.569863}}

Also in my notifications I get this info:

which leads me to this link (account page): http://alarm:8123/config/cloud/account. But that page has an every spinning loading wheel and no new error messages.

I have a filled “cloud” file as well, although I never registered to NC.
I guess that, if the cloud: integration is enabled, HA is phoning to NC anyway?

Not sure I’m fine with that.
I will remove default_config myself…

For reference, the equivalent of default_config: (beware if you already have one of those defined further in your configuration.yaml)

# default_config:
# Ref: https://github.com/home-assistant/core/blob/ee616ed992f0672d17c08de1f793af6695f9de40/homeassistant/components/default_config/manifest.json
automation:
cloud:
counter:
dhcp:
energy:
frontend:
history:
input_boolean:
input_datetime:
input_number:
input_select:
input_text:
logbook:
map:
media_source:
mobile_app:
my:
network:
person:
scene:
script:
ssdp:
sun:
system_health:
tag:
timer:
usb:
updater:
webhook:
zeroconf:
zone:

You should contact Nabu Casa support for help with this. Support

I’ve seen that the cloud integration is a prerequisite for other integrations. For example the spotify integration fails to do anything and there is a blue marker saying it is dependent on the cloud integration.

thanks everybody, I will contact Nabu Casa.

Mmm… Nope, not sure where you got that from, but cloud: is purely for NC, spotify works for me and there is zero reference to cloud in the spotify integration sources.

Yes, I see, I think I misunderstood the little icon in the integration because I have only seen it after I had those problems with nabu casa and spotify also doesn’t work. But it’s only an indication that it is not a local only integration.

Yeah, cloud: is probably a little too generic a name for this integration :wink:

I managed to fix it. I wrote to Nabu Casa support and they told me to delete the .cloud-folder to get my cloud setup button within configuration back.
I was about to write them back, that I didn’t have a .cloud folder and that I only created one after I read about it in the replies here. But then I checked and saw that my manually created .cloud folder got populated with a lot of files. So I deleted the folder and rebooted HA and now everything works.

So to conclude what I did to solve my problem:

  1. create empty .cloud folder
  2. restart HA
  3. delete now not empty .cloud folder
  4. restart HA
  5. profit

weirdly I definitely did not delete my .cloud folder by hand. So still no idea how it the problem came to be in the first place.

Thank you to anybody who helped!

1 Like