SSL Errors with Cloud Component

Hi All,

All of a sudden I’ve started to get get a streams of errors in my log which look like this:

2018-11-20 21:40:04 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2018-11-20 22:45:25 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error on SSL transport
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/sslproto.py", line 638, in _process_write_backlog
    ssldata, offset = self._sslpipe.feed_appdata(data, offset)
AttributeError: 'NoneType' object has no attribute 'feed_appdata'
2018-11-20 22:45:25 WARNING (MainThread) [homeassistant.components.cloud.iot] Connection closed: Received non-Text message: 8
2018-11-20 22:45:41 ERROR (MainThread) [homeassistant.components.cloud.iot] Unexpected error
Traceback (most recent call last):
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/util/ssl_.py", line 267, in ssl_wrap_socket
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/adapters.py", line 370, in send
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 341, in _make_request
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 761, in _validate_conn
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 238, in connect
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/util/ssl_.py", line 269, in ssl_wrap_socket
botocore.vendored.requests.packages.urllib3.exceptions.SSLError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/leon/homeassistant/lib/python3.6/site-packages/homeassistant/components/cloud/iot.py", line 68, in connect
  File "/home/leon/homeassistant/lib/python3.6/site-packages/homeassistant/components/cloud/iot.py", line 100, in _handle_connection
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/leon/homeassistant/lib/python3.6/site-packages/homeassistant/components/cloud/auth_api.py", line 108, in check_token
  File "/home/leon/homeassistant/lib/python3.6/site-packages/warrant/__init__.py", line 260, in check_token
  File "/home/leon/homeassistant/lib/python3.6/site-packages/warrant/__init__.py", line 555, in renew_access_token
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/client.py", line 314, in _api_call
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/client.py", line 599, in _make_api_call
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/endpoint.py", line 148, in make_request
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/endpoint.py", line 177, in _send_request
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/endpoint.py", line 273, in _needs_retry
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/hooks.py", line 227, in emit
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/hooks.py", line 210, in _emit
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/retryhandler.py", line 183, in __call__
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/retryhandler.py", line 251, in __call__
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/retryhandler.py", line 277, in _should_retry
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/retryhandler.py", line 317, in __call__
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/retryhandler.py", line 223, in __call__
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/endpoint.py", line 222, in _get_response
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/sessions.py", line 573, in send
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/adapters.py", line 431, in send
botocore.vendored.requests.exceptions.SSLError: [Errno 2] No such file or directory
2018-11-20 22:45:58 ERROR (MainThread) [homeassistant.components.cloud.iot] Unexpected error
Traceback (most recent call last):
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/util/ssl_.py", line 267, in ssl_wrap_socket
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/adapters.py", line 370, in send
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 341, in _make_request
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 761, in _validate_conn
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 238, in connect
  File "/home/leon/homeassistant/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/util/ssl_.py", line 269, in ssl_wrap_socket
botocore.vendored.requests.packages.urllib3.exceptions.SSLError: [Errno 2] No such file or directory

And they just go on and on. This appears to completely break my Google Assistant integration (assuming because its related to the cloud component).

Any help in trying to figure out what has broken would be a huge help.

I’m running Home Assistant on Ubuntu 17.10 (GNU/Linux 4.13.0-39201805060708-generic x86_64)

Thank you!

Anyone who might have any advice in terms of where to look, I’d super appreciate the help this is completely stopping me from being able to rely on HA. Maybe it’s not even a HA thing, python version, etc? I’ve not changed anything since it was working fine which I don’t understand.

Does HA auto-update?

Which version of Home Assistant? Do you use the google assistant component you set up yourself or are you paying for Home Assistant cloud?

Thank you very much for your response.

I use Home Assistant Cloud, I’ve not configured it manually.

The version of Home assistant I am using is: 0.81.4

Thank you.

This is becoming really problematic, I’m also getting loads of errors from other components too:

2018-11-25 00:33:17 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/leon/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 232, in async_update_ha_state
  File "/home/leon/homeassistant/lib/python3.6/site-packages/homeassistant/components/weather/__init__.py", line 174, in state
  File "/home/leon/homeassistant/lib/python3.6/site-packages/homeassistant/components/weather/metoffice.py", line 90, in condition
  File "/home/leon/homeassistant/lib/python3.6/site-packages/homeassistant/components/weather/metoffice.py", line 91, in <listcomp>
AttributeError: 'bool' object has no attribute 'weather'

I’m not sure whether they are related or not, I’m still getting plenty of SSL errors. Any help would be greatly appreciated!

Thank you.

Hi, Did you manage to resolve this? I am now experiencing the same issue.