Some help would be nice. I know from searching this problem has been going on for awhile. And most have the errors during startup. I don’t now. In the last 5 hours I’ve had one of the errors 175 times. I travel and have to be able to remote in to HA. I’ve been trying the last few night to remote in to work on the system and have not been able to because I keep losing connection. Here are some of the errors.
Logger: hass_nabucasa.remote
Source: /usr/local/lib/python3.9/site-packages/hass_nabucasa/remote.py:333
First occurred: 5:40:24 PM (175 occurrences)
Last logged: 10:25:01 PM
Connection problem to snitun server
Logger: snitun.client.client_peer
Source: /usr/local/lib/python3.9/site-packages/snitun/client/client_peer.py:104
First occurred: 5:40:31 PM (174 occurrences)
Last logged: 10:25:01 PM
Challenge/Response error with SniTun server (0 bytes read on a total of 32 expected bytes)
Challenge/Response error with SniTun server ([Errno 104] Connection reset by peer)
Logger: snitun.multiplexer.core
Source: /usr/local/lib/python3.9/site-packages/snitun/multiplexer/core.py:111
First occurred: 6:05:16 PM (49 occurrences)
Last logged: 10:24:31 PM
Ping fails, no response from peer
Logger: hass_nabucasa.iot
Source: /usr/local/lib/python3.9/site-packages/hass_nabucasa/iot_base.py:126
First occurred: 7:43:55 PM (5 occurrences)
Last logged: 10:12:53 PM
Unexpected error
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/local/lib/python3.9/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/lib/python3.9/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/local/lib/python3.9/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/local/lib/python3.9/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/lib/python3.9/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/local/lib/python3.9/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/iot_base.py", line 122, in connect
await self._handle_connection()
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/iot_base.py", line 164, in _handle_connection
await self.cloud.auth.async_check_token()
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/auth.py", line 184, in async_check_token
await self._async_renew_access_token()
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/auth.py", line 211, in _async_renew_access_token
await self.cloud.run_executor(cognito.renew_access_token)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/pycognito/__init__.py", line 648, in renew_access_token
self._set_tokens(refresh_response)
File "/usr/local/lib/python3.9/site-packages/pycognito/__init__.py", line 720, in _set_tokens
self.verify_token(tokens["AuthenticationResult"]["IdToken"], "id_token", "id")
File "/usr/local/lib/python3.9/site-packages/pycognito/__init__.py", line 239, in verify_token
hmac_key = self.get_key(kid)
File "/usr/local/lib/python3.9/site-packages/pycognito/__init__.py", line 221, in get_key
keys = self.get_keys().get("keys")
File "/usr/local/lib/python3.9/site-packages/pycognito/__init__.py", line 215, in get_keys
self.pool_jwk = requests.get(
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Logger: hass_nabucasa.iot
Source: /usr/local/lib/python3.9/site-packages/hass_nabucasa/iot_base.py:166
First occurred: 10:11:32 PM (1 occurrences)
Last logged: 10:11:32 PM
Cannot connect because unable to refresh token:
Logger: hass_nabucasa.remote
Source: /usr/local/lib/python3.9/site-packages/hass_nabucasa/remote.py:331
First occurred: 7:07:55 PM (12 occurrences)
Last logged: 10:06:04 PM
Timeout connecting to snitun server
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:253
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 6:22:10 PM (6 occurrences)
Last logged: 10:03:36 PM
[547542929712] Disconnected: Did not receive auth message within 10 seconds
[547541885664] Disconnected: Did not receive auth message within 10 seconds
[547543462144] Disconnected: Did not receive auth message within 10 seconds
[547493343136] Disconnected: Did not receive auth message within 10 seconds
[547599942848] Disconnected: Did not receive auth message within 10 seconds
Logger: hass_nabucasa.iot
Source: /usr/local/lib/python3.9/site-packages/hass_nabucasa/iot_base.py:264
First occurred: 7:53:05 PM (7 occurrences)
Last logged: 9:35:13 PM
Unable to connect: Cannot connect to host cloud.nabucasa.com:443 ssl:default [None]