You’re going to have to post actual information instead of throwing your hands in the air. Also, this issue may be different than the last. For us to help you, please post your logs. The previous logs were about UPNP and had no other information. You claimed you removed that integration, so those errors will be gone. If that’s truly the case, then show these new logs. Feel free to post the entire log, not just the parts that you think are important.
LOL. sorry. I was having a bit of a melt down due to this issue being ongoing.
So I removed the cloud: from my config.yaml file and now HA loads lightening fast. The logs seem to imply some issue logging into the cloud. I dont actually have a cloud account and it looked like it was getting stuck loading the cloud feature. I would like to add it back as some point so I would like to know why it was doing it.
Yup, commenting out cloud was what did it for me as well. I was coming from 0.114, but 0.115 had this issue. I was hoping 0.116 would fix, it but same issue. However, on 0.116, commenting out cloud, no issues.
has anyone here created an issue on github with these findings?
I cannot start homeassistant due to the following error:
Logger: hass_nabucasa.remote
Source: /usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py:389
First occurred: 12:15:04 PM (1 occurrences)
Last logged: 12:15:04 PM
Unexpected error in Remote UI loop
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.8/socket.py", line 918, 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.8/site-packages/botocore/httpsession.py", line 254, in send
urllib_response = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 379, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPSConnection object at 0x7fe7d244c340>: 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.8/site-packages/hass_nabucasa/auth.py", line 199, in _async_renew_access_token
await self.cloud.run_executor(cognito.renew_access_token)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pycognito/__init__.py", line 617, in renew_access_token
refresh_response = self.client.initiate_auth(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 647, in _make_api_call
http, parsed_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 667, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 136, in _send_request
while self._needs_retry(attempts, operation_model, request_dict,
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 228, in _needs_retry
responses = self._event_emitter.emit(
File "/usr/local/lib/python3.8/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 183, in __call__
if self._checker(attempts, response, caught_exception):
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 250, in __call__
should_retry = self._should_retry(attempt_number, response,
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 277, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 316, in __call__
checker_response = checker(attempt_number, response,
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 222, in __call__
return self._check_caught_exception(
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 200, in _do_get_response
http_response = self._send(request)
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 244, in _send
return self.http_session.send(request)
File "/usr/local/lib/python3.8/site-packages/botocore/httpsession.py", line 283, in send
raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://cognito-idp.us-east-1.amazonaws.com/"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py", line 353, in _certificate_handler
if not await self.load_backend():
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py", line 133, in load_backend
resp = await cloud_api.async_remote_register(self.cloud)
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/cloud_api.py", line 16, in check_token
await cloud.auth.async_check_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 172, in async_check_token
await self._async_renew_access_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 208, in _async_renew_access_token
raise UnknownError() from err
hass_nabucasa.auth.UnknownError
any idea?
More logs here:
2020-10-10 12:13:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for mercedesmeapi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-10 12:13:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-10 12:13:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-10 12:13:13 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=12 from 2020-10-10 11:09:30.228524)
2020-10-10 12:13:23 WARNING (MainThread) [homeassistant.setup] Setup of hassio is taking over 10 seconds.
2020-10-10 12:13:25 WARNING (MainThread) [homeassistant.setup] Setup of cloud is taking over 10 seconds.
2020-10-10 12:13:28 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 1141e1ea3199426fa95817186b28606c2699591a2829604b5f22c4911751bfdd from 192.168.1.174
2020-10-10 12:13:28 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/ping request
2020-10-10 12:13:28 WARNING (MainThread) [homeassistant.components.hassio] Not connected with Hass.io / system too busy!
2020-10-10 12:13:38 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/options request
2020-10-10 12:13:45 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud
2020-10-10 12:13:48 WARNING (MainThread) [hass_nabucasa.iot] Cannot connect because unable to refresh token:
2020-10-10 12:13:48 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/options request
2020-10-10 12:13:58 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /info request
2020-10-10 12:13:58 WARNING (MainThread) [homeassistant.components.hassio] Can't read last version:
2020-10-10 12:14:08 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /ingress/panels request
2020-10-10 12:14:08 ERROR (MainThread) [homeassistant.components.hassio.addon_panel] Can't read panel info:
2020-10-10 12:14:13 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud
2020-10-10 12:14:25 ERROR (MainThread) [hass_nabucasa.remote] Can't update remote details from Home Assistant cloud
2020-10-10 12:14:27 WARNING (MainThread) [hass_nabucasa.iot] Cannot connect because unable to refresh token:
2020-10-10 12:15:04 ERROR (MainThread) [hass_nabucasa.remote] Unexpected error in Remote UI loop
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.8/socket.py", line 918, 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.8/site-packages/botocore/httpsession.py", line 254, in send
urllib_response = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 379, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPSConnection object at 0x7fe7d244c340>: 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.8/site-packages/hass_nabucasa/auth.py", line 199, in _async_renew_access_token
await self.cloud.run_executor(cognito.renew_access_token)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pycognito/__init__.py", line 617, in renew_access_token
refresh_response = self.client.initiate_auth(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 647, in _make_api_call
http, parsed_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 667, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 136, in _send_request
while self._needs_retry(attempts, operation_model, request_dict,
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 228, in _needs_retry
responses = self._event_emitter.emit(
File "/usr/local/lib/python3.8/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 183, in __call__
if self._checker(attempts, response, caught_exception):
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 250, in __call__
should_retry = self._should_retry(attempt_number, response,
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 277, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 316, in __call__
checker_response = checker(attempt_number, response,
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 222, in __call__
return self._check_caught_exception(
File "/usr/local/lib/python3.8/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 200, in _do_get_response
http_response = self._send(request)
File "/usr/local/lib/python3.8/site-packages/botocore/endpoint.py", line 244, in _send
return self.http_session.send(request)
File "/usr/local/lib/python3.8/site-packages/botocore/httpsession.py", line 283, in send
raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://cognito-idp.us-east-1.amazonaws.com/"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py", line 353, in _certificate_handler
if not await self.load_backend():
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py", line 133, in load_backend
resp = await cloud_api.async_remote_register(self.cloud)
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/cloud_api.py", line 16, in check_token
await cloud.auth.async_check_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 172, in async_check_token
await self._async_renew_access_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 208, in _async_renew_access_token
raise UnknownError() from err
hass_nabucasa.auth.UnknownError
2020-10-10 12:15:13 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: cloud
2020-10-10 12:15:30 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 1141e1ea3199426fa95817186b28606c2699591a2829604b5f22c4911751bfdd from 192.168.1.174
2020-10-10 12:15:38 WARNING (MainThread) [hass_nabucasa.iot] Cannot connect because unable to refresh token:
I’m also getting this same error, which started happening yesterday. Commenting out cloud:
in my configuration.yaml
and restarting lets Home Assistant load, but after adding it back I get the same error.
Were you able to find a permanent solution?
Some relevant logs below:
Logger: hass_nabucasa.iot
Source: /usr/local/lib/python3.8/site-packages/hass_nabucasa/iot_base.py:112
First occurred: 2:47:20 PM (15 occurrences)
Last logged: 3:50:30 PM
Unexpected error
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/iot_base.py", line 108, in connect
await self._handle_connection()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/iot_base.py", line 147, in _handle_connection
await self.cloud.auth.async_check_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 172, in async_check_token
await self._async_renew_access_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 199, in _async_renew_access_token
await self.cloud.run_executor(cognito.renew_access_token)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pycognito/__init__.py", line 617, in renew_access_token
refresh_response = self.client.initiate_auth(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 633, in _make_api_call
request_dict = self._convert_to_request_dict(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 681, in _convert_to_request_dict
request_dict = self._serializer.serialize_to_request(
File "/usr/local/lib/python3.8/site-packages/botocore/validate.py", line 297, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter AuthParameters.REFRESH_TOKEN, value: None, type: <class 'NoneType'>, valid types: <class 'str'>
Logger: homeassistant.setup
Source: setup.py:215
First occurred: 2:52:20 PM (1 occurrences)
Last logged: 2:52:20 PM
Setup of cloud is taking longer than 300 seconds. Startup will proceed without waiting any longer
Logger: hass_nabucasa.remote
Source: /usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py:389
First occurred: 2:47:20 PM (1 occurrences)
Last logged: 2:47:20 PM
Unexpected error in Remote UI loop
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py", line 353, in _certificate_handler
if not await self.load_backend():
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/remote.py", line 133, in load_backend
resp = await cloud_api.async_remote_register(self.cloud)
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/cloud_api.py", line 16, in check_token
await cloud.auth.async_check_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 172, in async_check_token
await self._async_renew_access_token()
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/auth.py", line 199, in _async_renew_access_token
await self.cloud.run_executor(cognito.renew_access_token)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pycognito/__init__.py", line 617, in renew_access_token
refresh_response = self.client.initiate_auth(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 633, in _make_api_call
request_dict = self._convert_to_request_dict(
File "/usr/local/lib/python3.8/site-packages/botocore/client.py", line 681, in _convert_to_request_dict
request_dict = self._serializer.serialize_to_request(
File "/usr/local/lib/python3.8/site-packages/botocore/validate.py", line 297, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter AuthParameters.REFRESH_TOKEN, value: None, type: <class 'NoneType'>, valid types: <class 'str'>
Just opened an issue: https://github.com/home-assistant/core/issues/41625