Cloud could not be set up

Hi,

I upgraded Hassbian to 0.96.5 and now I have an issue with cloud acess

Invalid config

The following components and platforms could not be set up:

* [cloud](https://home-assistant.io/components/cloud/)

Please check your config.

I don’t know why because I didn’t modified the configuration.yaml …

Maybe you should have… nobody knows because you didn’t specify from which version you upgraded, didn’t post your config, etc. Read this

I upgraded from 0.95 not a really old version.

Log Details (ERROR)
Fri Jul 26 2019 21:42:54 GMT+0200 (heure d’été d’Europe centrale)
Error during setup of component cloud
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 153, in _async_setup_component
    hass, processed_config)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/__init__.py", line 142, in async_setup
    from hass_nabucasa import Cloud
  File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/__init__.py", line 16, in <module>
    from .remote import RemoteUI
  File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/remote.py", line 16, in <module>
    from .acme import AcmeClientError, AcmeHandler
  File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/acme.py", line 9, in <module>
    import OpenSSL
  File "/srv/homeassistant/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/srv/homeassistant/lib/python3.7/site-packages/OpenSSL/crypto.py", line 16, in <module>
    from OpenSSL._util import (
  File "/srv/homeassistant/lib/python3.7/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 15, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: /usr/lib/arm-linux-gnueabihf/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so)

You’ll find my configuration.yaml

homeassistant:
  # Name of the location where Home Assistant is running
  # name: Home
  # Location required to calculate the time the sun rises and sets
  # latitude: 0.672232
  # longitude: 5.665709
  # Impacts weather/sunrise data (altitude above sea level in meters)
  # elevation: 342
  # metric for Metric, imperial for Imperial
  # unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  # time_zone: UTC
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
# introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Text to speech
tts:
  - platform: google_translate
    service_name: google_say
    language: 'fr'

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

media_player:
  - platform: onkyo
    host: 192.168.0.12
    name: Ampli

sensor:
  - platform: synologydsm
    host: 192.168.0.9
    username: admin
    password: vkgc54KL
    monitored_conditions:
      - cpu_total_load
      - memory_real_usage
      - network_up
      - disk_smart_status
      - volume_percentage_used
      - volume_disk_temp_avg
  - platform: statistics
    entity_id: sensor.consommation_lave_linge
    name: Stats Lave Linge
    max_age:
      minutes: 5
  - platform: scrape
    resource: http://192.168.0.3/details.xml
    name: Température piscine
    select: 'PrimaryValue'
    index: 0
    unit_of_measurement: "°C"
    value_template: "{{ value.split(' ')[0] | round(2) }}"
  - platform: scrape
    resource: http://192.168.0.3/details.xml
    name: Température Pac
    select: 'PrimaryValue'
    index: 1
    unit_of_measurement: "°C"
    value_template: "{{ value.split(' ')[0] | round(2) }}"
  - platform: scrape
    resource: http://192.168.0.3/details.xml
    name: Température Extérieure
    select: 'PrimaryValue'
    index: 2
    unit_of_measurement: "°C"
    value_template: "{{ value.split(' ')[0] | round(2) }}"

system_health:

alarm_control_panel:
  - platform: manual
    name: Home Alarm
    code: xxxx
    pending_time: 30
    delay_time: 20
    trigger_time: 4
    disarmed:
      trigger_time: 0
    armed_home:
      pending_time: 0
      delay_time: 0

ios:

nest:
  client_id: xxx
  client_secret: xxx

google:
  client_id: xxx
  client_secret: xxxx

camera:
  - platform: mjpeg
    still_image_url: http://192.168.0.20:80/video.cgi
    mjpeg_url: http://192.168.0.20:80/video.cgi
    name: Camera_Jardin
    username: xxx
    password: xxx
    authentication: basic

Is there now too much informations :rofl::rofl:

This should fix it:

Really thank you for your help :slight_smile:

I saw this post when I was trying to solve this issue but I didn’t think that it could be the answer.

I will try quickly and I’ll give you a feedback :+1:

So, I followed the how to that you linked but I have an error when I uninstall the crypto.

  • pip uninstall cryptography

ERROR: Exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/shutil.py”, line 563, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.7/site-packages/cryptography-2.7.dist-info/’ → ‘/tmp/pip-uninstall-4igwp4vj’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/pip/_internal/cli/base_command.py”, line 188, in main
status = self.run(options, args)
File “/srv/homeassistant/lib/python3.7/site-packages/pip/_internal/commands/uninstall.py”, line 75, in run
auto_confirm=options.yes, verbose=self.verbosity > 0,
File “/srv/homeassistant/lib/python3.7/site-packages/pip/_internal/req/req_install.py”, line 831, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File “/srv/homeassistant/lib/python3.7/site-packages/pip/_internal/req/req_uninstall.py”, line 388, in remove
moved.stash(path)
File “/srv/homeassistant/lib/python3.7/site-packages/pip/_internal/req/req_uninstall.py”, line 277, in stash
renames(path, new_path)
File “/srv/homeassistant/lib/python3.7/site-packages/pip/_internal/utils/misc.py”, line 405, in renames
shutil.move(old, new)
File “/usr/local/lib/python3.7/shutil.py”, line 575, in move
rmtree(src)
File “/usr/local/lib/python3.7/shutil.py”, line 491, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File “/usr/local/lib/python3.7/shutil.py”, line 449, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File “/usr/local/lib/python3.7/shutil.py”, line 447, in _rmtree_safe_fd
os.unlink(entry.name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: ‘top_level.txt’