Problems after updating to 0.118.1

Tags: #<Tag:0x00007f739ba6aef8>

Hi everybody,

I’m new to HA (I’m running HA Core on a TrueNAS server), and let me start by saying that as being a developer myself, I’m quite impressed by the HA community and the speed of development - great work, guys!

Now, since I’m still on 0.116.4, I wanted to perform an update (to 0.118.1), which I have triggered through the shell menu appearing when entering the shell of the HA jail. The update went through although there were some warnings related to the SSL version and such (unfortunately, I do not have the update command’s output, but can get it in case it’s needed).

However, when navigating to the HA homepage, I noted a couple of problems:

  • HA reports that “Home Assistant is starting, not everything will be available until it is finished.”. This message stays for at least hours - when I checked again after the night passed, the message was gone, but returned after I reloaded the HA landing page.
  • Some entities are displayed with a yellow background and the same “HA is starting, not…” message as described above. In particular, this happens for device_tracker.oneplus_a6003 and all related entities such as sensor.oneplus_a6003_stepsensor (added through the mobile_app integration - I’m running the Android app on my smartphone; in fact, yesterday, the sensors of the device_tracker.oneplus_a6003 entity all showed Unknown, but do show that message now), vacuum.xiaomi_robot and media_player.tv (which is a ChromeCase device)

The logs show a couple of warnings, e.g.:

  • WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 312226f32411cfbfdbc3b1cd6e55fe1943c8c248405f3017b6bd9333e56bf288 from 2a03:567:X::X (lots of these)
  • WARNING (MainThread) [homeassistant.config_entries] Config entry for plex not ready yet. Retrying in 5 seconds (some of these with increasing time periods)
  • ERROR (MainThread) [homeassistant.components.plex] Plex server (https://139-162-158-15.99df6679e8644f7b87c6e980855085f8.plex.direct:8443) could not be reached: [HTTPSConnectionPool(host=‘139-162-158-15.99df6679e8644f7b87c6e980855085f8.plex.direct’, port=8443): Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1124)’)))]
  • ERROR (MainThread) [homeassistant.components.vacuum] xiaomi_miio: Error on device update! (final traceback entry: “RuntimeError: You are linking against OpenSSL 1.0.2, which is no longer supported by the OpenSSL project. To use this version of cryptography you need to upgrade to a newer version of OpenSSL. For this version only you can also set the environment variable CRYPTOGRAPHY_ALLOW_OPENSSL_102 to allow OpenSSL 1.0.2.”)
  • ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: unknown error (final traceback entry: same as above)

That’s all contained in the log, but there might be more problems (the log ends still after I triggered the update, so some parts appear to have been cut off).

Apparently, at least the Xiaomi problem (probably more) is related to the warning during update. However, since I’m not a Linux user, I’m not sure how to fix that problem (I have in fact tried to set the env variable mentioned in the message, but this did not have any effect - however, due to my lack of Linux knowledge, I’m nut sure whether I have done that correctly :slight_smile: ).

Final note: I tried this before with some 0.117.x version, had the same problems, and decided to skip that version in case problems get fixed in the meantime.

I have now rolled back to 0.116.4 (ZFS snapshots are really cool :slight_smile: ), which fixes everything.

Any advice?

Thanks in advance
Christian

I repeated the upgrade process, and here’s the log - it appears that the mobile_app problem is also related to openssl:

Collecting homeassistant
  Downloading homeassistant-0.118.2-py3-none-any.whl (9.9 MB)
     |████████████████████████████████| 9.9 MB 16.2 MB/s
Collecting cryptography==3.2
  Downloading cryptography-3.2.tar.gz (540 kB)
     |████████████████████████████████| 540 kB 18.6 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied, skipping upgrade: attrs==19.3.0 in ./lib/python3.8/site-packages (from homeassistant) (19.3.0)
Requirement already satisfied, skipping upgrade: yarl==1.4.2 in ./lib/python3.8/site-packages (from homeassistant) (1.4.2)
Requirement already satisfied, skipping upgrade: astral==1.10.1 in ./lib/python3.8/site-packages (from homeassistant) (1.10.1)
Collecting aiohttp==3.7.1
  Downloading aiohttp-3.7.1.tar.gz (1.1 MB)
     |████████████████████████████████| 1.1 MB 1.7 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied, skipping upgrade: async-timeout==3.0.1 in ./lib/python3.8/site-packages (from homeassistant) (3.0.1)
Requirement already satisfied, skipping upgrade: python-slugify==4.0.1 in ./lib/python3.8/site-packages (from homeassistant) (4.0.1)
Requirement already satisfied, skipping upgrade: ciso8601==2.1.3 in ./lib/python3.8/site-packages (from homeassistant) (2.1.3)
Requirement already satisfied, skipping upgrade: certifi>=2020.6.20 in ./lib/python3.8/site-packages (from homeassistant) (2020.6.20)
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in ./lib/python3.8/site-packages (from homeassistant) (20.2.3)
Requirement already satisfied, skipping upgrade: ruamel.yaml==0.15.100 in ./lib/python3.8/site-packages (from homeassistant) (0.15.100)
Requirement already satisfied, skipping upgrade: voluptuous==0.12.0 in ./lib/python3.8/site-packages (from homeassistant) (0.12.0)
Requirement already satisfied, skipping upgrade: jinja2>=2.11.2 in ./lib/python3.8/site-packages (from homeassistant) (2.11.2)
Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.4.0 in./lib/python3.8/site-packages (from homeassistant) (2.4.0)
Requirement already satisfied, skipping upgrade: PyJWT==1.7.1 in ./lib/python3.8/site-packages (from homeassistant) (1.7.1)
Requirement already satisfied, skipping upgrade: pytz>=2020.1 in ./lib/python3.8/site-packages (from homeassistant) (2020.1)
Collecting httpx==0.16.1
  Downloading httpx-0.16.1-py3-none-any.whl (65 kB)
     |████████████████████████████████| 65 kB 1.1 MB/s
Requirement already satisfied, skipping upgrade: pyyaml==5.3.1 in ./lib/python3.8/site-packages (from homeassistant) (5.3.1)
Requirement already satisfied, skipping upgrade: bcrypt==3.1.7 in ./lib/python3.8/site-packages (from homeassistant) (3.1.7)
Collecting requests==2.25.0
  Downloading requests-2.25.0-py2.py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 3.3 MB/s
Requirement already satisfied, skipping upgrade: six>=1.4.1 in ./lib/python3.8/site-packages (from cryptography==3.2->homeassistant) (1.15.0)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in ./lib/python3.8/site-packages (from cryptography==3.2->homeassistant) (1.14.3)
Requirement already satisfied, skipping upgrade: idna>=2.0 in ./lib/python3.8/site-packages (from yarl==1.4.2->homeassistant) (2.10)
Requirement already satisfied, skipping upgrade: multidict>=4.0 in ./lib/python3.8/site-packages (from yarl==1.4.2->homeassistant) (4.7.6)
Collecting typing-extensions>=3.6.5
  Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Requirement already satisfied, skipping upgrade: chardet<4.0,>=2.0 in ./lib/python3.8/site-packages (from aiohttp==3.7.1->homeassistant) (3.0.4)
Requirement already satisfied, skipping upgrade: text-unidecode>=1.3 in ./lib/python3.8/site-packages (from python-slugify==4.0.1->homeassistant) (1.3)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ./lib/python3.8/site-packages (from jinja2>=2.11.2->homeassistant) (1.1.1)
Collecting rfc3986[idna2008]<2,>=1.3
  Downloading rfc3986-1.4.0-py2.py3-none-any.whl (31 kB)
Collecting httpcore==0.12.*
  Downloading httpcore-0.12.2-py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 1.4 MB/s
Collecting sniffio
  Downloading sniffio-1.2.0-py3-none-any.whl (10 kB)
Requirement already satisfied, skipping upgrade: urllib3<1.27,>=1.21.1 in ./lib/python3.8/site-packages (from requests==2.25.0->homeassistant) (1.25.10)
Requirement already satisfied, skipping upgrade: pycparser in ./lib/python3.8/site-packages (from cffi!=1.11.3,>=1.8->cryptography==3.2->homeassistant) (2.20)
Collecting h11==0.*
  Downloading h11-0.11.0-py2.py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 604 kB/s
Building wheels for collected packages: cryptography, aiohttp
  Building wheel for cryptography (PEP 517) ... done
  Created wheel for cryptography: filename=cryptography-3.2-cp38-cp38-freebsd_12_2_rc3_amd64.whl size=443005 sha256=8bc887744cfb578e280ab90d223bc2f6ff99726fb827b2d820e6824ead9c067e
  Stored in directory: /home/homeassistant/.cache/pip/wheels/15/2f/53/0118ad4b37c01a6dfcc2042c99cbbd208bc87aaeb641920b12
  Building wheel for aiohttp (PEP 517) ... done
  Created wheel for aiohttp: filename=aiohttp-3.7.1-cp38-cp38-freebsd_12_2_rc3_amd64.whl size=659656 sha256=6c643d4a231cc384500646fc0ab0a4c77326d8bff2457dbc82c024011be9f86e
  Stored in directory: /home/homeassistant/.cache/pip/wheels/7f/39/5c/ed50902cbc7d59ca6124f3dd079408bcf24ae686906f003ca9
Successfully built cryptography aiohttp
Installing collected packages: cryptography, typing-extensions, aiohttp, rfc3986, h11, sniffio, httpcore, httpx, requests, homeassistant
  Attempting uninstall: cryptography
    Found existing installation: cryptography 2.9.2
    Uninstalling cryptography-2.9.2:
      Successfully uninstalled cryptography-2.9.2
  Attempting uninstall: aiohttp
    Found existing installation: aiohttp 3.6.2
    Uninstalling aiohttp-3.6.2:
      Successfully uninstalled aiohttp-3.6.2
  Attempting uninstall: requests
    Found existing installation: requests 2.24.0
    Uninstalling requests-2.24.0:
      Successfully uninstalled requests-2.24.0
  Attempting uninstall: homeassistant
    Found existing installation: homeassistant 0.116.4
    Uninstalling homeassistant-0.116.4:
      Successfully uninstalled homeassistant-0.116.4
ERROR: After October 2020 you may experience errors when installing or updatingpackages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with thenew resolver before it becomes the default.

python-miio 0.5.3 requires construct<3.0.0,>=2.10.56, but you'll have construct2.9.45 which is incompatible.
python-miio 0.5.3 requires cryptography<3.0,>=2.9, but you'll have cryptography3.2 which is incompatible.
python-miio 0.5.3 requires pytz<2020.0,>=2019.3, but you'll have pytz 2020.1 which is incompatible.
python-miio 0.5.3 requires zeroconf<0.26.0,>=0.25.1, but you'll have zeroconf 0.28.5 which is incompatible.
hass-nabucasa 0.37.0 requires aiohttp~=3.6.1, but you'll have aiohttp 3.7.1 which is incompatible.
Successfully installed aiohttp-3.7.1 cryptography-3.2 h11-0.11.0 homeassistant-0.118.2 httpcore-0.12.2 httpx-0.16.1 requests-2.25.0 rfc3986-1.4.0 sniffio-1.2.0typing-extensions-3.7.4.3
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the '/usr/local/share/homeassistant/bin/python3.8 -m pip install --upgrade pip' command.
INFO:homeassistant.util.package:Attempting install of colorlog==4.5.0
Testing configuration at /home/homeassistant/homeassistant
INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.37.2
INFO:homeassistant.util.package:Attempting install of zeroconf==0.28.6
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20201111.2
INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.3.20
INFO:homeassistant.util.package:Attempting install of gTTS-token==1.1.4
Failed config
  General Errors:
    - Component error: mobile_app - /usr/local/share/homeassistant/lib/python3.8/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol "sk_pop_free"
	
Successful config (partial)

Nobody?

What about the other TrueNAS users - were you able to upgrade to 0.118.x without issues?