[home-assistant] Installation problems

Problems with packages? Post here, using [tags] of the package name.

[home-assistant] Installation problems

Postby tazinblack » Mon Jul 31, 2023 10:36 pm

Hi together,

I try to install home-assistant to a RPI 4 running aarch64.
According to the wiki this should only be a pacman command -> [url]https://wiki.archlinux.org/title/Home_Assistant[/url]

Since I faced problems with bluetooth as mentioned there, I tried to add the hass user as system user before installation.
This did not help so I started with a blank installation and switched to dbus-broker as also told there as a work around.

But now I get this error followed by a lot of other errors:

[code]Jul 31 22:42:18 testbox python{1302}: Installing collected packages: voluptuous, text-unidecode, pytz, lru-dict, ifaddr, ciso8601, voluptuous-serialize, urllib3, ulid-transform, typing-extensions, sniffio, PyYAML, python-slugify, PyJWT, pycparser, orjson, multidict, MarkupSafe, idna, home-assistant-bluetooth, h11, frozenlist, charset-normalizer, certifi, bcrypt, awesomeversion, attrs, atomicwrites-homeassistant, async-timeout, astral, yarl, requests, Jinja2, cffi, anyio, aiosignal, httpcore, cryptography, aiohttp, pyOpenSSL, httpx, homeassistant
Jul 31 22:43:00 testbox python{1302}: Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 PyJWT-2.7.0 PyYAML-6.0.1 aiohttp-3.8.5 aiosignal-1.3.1 anyio-3.7.1 astral-2.2 async-timeout-4.0.2 atomicwrites-homeassistant-1.4.1 attrs-22.2.0 awesomeversion-22.9.0 bcrypt-4.0.1 certifi-2023.7.22 cffi-1.15.1 charset-normalizer-3.2.0 ciso8601-2.3.0 cryptography-41.0.1 frozenlist-1.4.0 h11-0.14.0 home-assistant-bluetooth-1.10.0 homeassistant-2023.7.3 httpcore-0.17.3 httpx-0.24.1 idna-3.4 ifaddr-0.2.0 lru-dict-1.2.0 multidict-6.0.4 orjson-3.9.1 pyOpenSSL-23.2.0 pycparser-2.21 python-slugify-4.0.1 pytz-2023.3 requests-2.31.0 sniffio-1.3.0 text-unidecode-1.3 typing-extensions-4.7.1 ulid-transform-0.7.2 urllib3-2.0.4 voluptuous-0.13.1 voluptuous-serialize-2.6.0 yarl-1.9.2
Jul 31 22:43:00 testbox python{1302}: {notice} A new release of pip available: 22.3.1 -> 23.2.1
Jul 31 22:43:00 testbox python{1302}: {notice} To update, run: python -m pip install --upgrade pip
Jul 31 22:43:01 testbox systemd{1}: Started Home assistant.
Jul 31 22:44:37 testbox hass{1327}: 2023-07-31 22:44:37.420 WARNING (MainThread) {homeassistant.bootstrap} Waiting on integrations to complete setup: analytics
Jul 31 22:47:43 testbox hass{1327}: 2023-07-31 22:47:43.676 WARNING (MainThread) {homeassistant.bootstrap} Waiting on integrations to complete setup: bluetooth
Jul 31 22:51:37 testbox hass{1327}: 2023-07-31 22:51:37.986 WARNING (MainThread) {homeassistant.bootstrap} Waiting on integrations to complete setup: ssdp
Jul 31 22:51:57 testbox hass{1327}: 2023-07-31 22:51:57.920 ERROR (MainThread) {homeassistant.loader} Unexpected exception importing component homeassistant.components.cloud
Jul 31 22:51:57 testbox hass{1327}: Traceback (most recent call last):
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/homeassistant/loader.py", line 813, in get_component
Jul 31 22:51:57 testbox hass{1327}: ComponentProtocol, importlib.import_module(self.pkg_path)
Jul 31 22:51:57 testbox hass{1327}: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 31 22:51:57 testbox hass{1327}: File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
Jul 31 22:51:57 testbox hass{1327}: return _bootstrap._gcd_import(name{level:}, package, level)
Jul 31 22:51:57 testbox hass{1327}: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap_external>", line 940, in exec_module
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/homeassistant/components/cloud/__init__.py", line 9, in <module>
Jul 31 22:51:57 testbox hass{1327}: from hass_nabucasa import Cloud
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/hass_nabucasa/__init__.py", line 15, in <module>
Jul 31 22:51:57 testbox hass{1327}: from .auth import CloudError, CognitoAuth
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/hass_nabucasa/auth.py", line 11, in <module>
Jul 31 22:51:57 testbox hass{1327}: import boto3
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/boto3/__init__.py", line 17, in <module>
Jul 31 22:51:57 testbox hass{1327}: from boto3.session import Session
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/boto3/session.py", line 17, in <module>
Jul 31 22:51:57 testbox hass{1327}: import botocore.session
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/session.py", line 26, in <module>
Jul 31 22:51:57 testbox hass{1327}: import botocore.client
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/client.py", line 15, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore import waiter, xform_name
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/waiter.py", line 18, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.docstring import WaiterDocstring
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/__init__.py", line 15, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.service import ServiceDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/service.py", line 14, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/client.py", line 17, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.example import ResponseExampleDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/example.py", line 13, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.shape import ShapeDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/shape.py", line 19, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.utils import is_json_value_header
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/utils.py", line 37, in <module>
Jul 31 22:51:57 testbox hass{1327}: import botocore.httpsession
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/httpsession.py", line 45, in <module>
Jul 31 22:51:57 testbox hass{1327}: from urllib3.contrib.pyopenssl import (
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/urllib3/contrib/pyopenssl.py", line 97, in <module>
Jul 31 22:51:57 testbox hass{1327}: util.PROTOCOL_TLS: OpenSSL.SSL.SSLv23_METHOD,
Jul 31 22:51:57 testbox hass{1327}: ^^^^^^^^^^^^^^^^^
Jul 31 22:51:57 testbox hass{1327}: AttributeError: module 'urllib3.util' has no attribute 'PROTOCOL_TLS'
Jul 31 22:51:57 testbox hass{1327}: 2023-07-31 22:51:57.943 ERROR (MainThread) {homeassistant.setup} Setup failed for cloud: Unable to import component: Exception importing homeassistant.components.cloud
Jul 31 22:51:57 testbox hass{1327}: Traceback (most recent call last):
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/homeassistant/loader.py", line 813, in get_component
Jul 31 22:51:57 testbox hass{1327}: ComponentProtocol, importlib.import_module(self.pkg_path)
Jul 31 22:51:57 testbox hass{1327}: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 31 22:51:57 testbox hass{1327}: File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
Jul 31 22:51:57 testbox hass{1327}: return _bootstrap._gcd_import(name{level:}, package, level)
Jul 31 22:51:57 testbox hass{1327}: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap_external>", line 940, in exec_module
Jul 31 22:51:57 testbox hass{1327}: File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/homeassistant/components/cloud/__init__.py", line 9, in <module>
Jul 31 22:51:57 testbox hass{1327}: from hass_nabucasa import Cloud
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/hass_nabucasa/__init__.py", line 15, in <module>
Jul 31 22:51:57 testbox hass{1327}: from .auth import CloudError, CognitoAuth
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/hass_nabucasa/auth.py", line 11, in <module>
Jul 31 22:51:57 testbox hass{1327}: import boto3
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/boto3/__init__.py", line 17, in <module>
Jul 31 22:51:57 testbox hass{1327}: from boto3.session import Session
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/boto3/session.py", line 17, in <module>
Jul 31 22:51:57 testbox hass{1327}: import botocore.session
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/session.py", line 26, in <module>
Jul 31 22:51:57 testbox hass{1327}: import botocore.client
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/client.py", line 15, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore import waiter, xform_name
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/waiter.py", line 18, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.docstring import WaiterDocstring
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/__init__.py", line 15, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.service import ServiceDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/service.py", line 14, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/client.py", line 17, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.example import ResponseExampleDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/example.py", line 13, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.docs.shape import ShapeDocumenter
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/docs/shape.py", line 19, in <module>
Jul 31 22:51:57 testbox hass{1327}: from botocore.utils import is_json_value_header
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/utils.py", line 37, in <module>
Jul 31 22:51:57 testbox hass{1327}: import botocore.httpsession
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/botocore/httpsession.py", line 45, in <module>
Jul 31 22:51:57 testbox hass{1327}: from urllib3.contrib.pyopenssl import (
Jul 31 22:51:57 testbox hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/urllib3/contrib/pyopenssl.py", line 97, in <module>
Jul 31 22:51:57 testbox hass{1327}: util.PROTOCOL_TLS: OpenSSL.SSL.SSLv23_METHOD,
Jul 31 22:51:57 testbox hass{1327}: ^^^^^^^^^^^^^^^^^
[/code]


After that I see an endless loop of this:

{code}Jul 31 23:14:43 alarmpitest hass{1327}: File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
Jul 31 23:14:43 alarmpitest hass{1327}: aiohttp.http_exceptions.BadHttpMessage: 400, message:
Jul 31 23:14:43 alarmpitest hass{1327}: Invalid header value char:
Jul 31 23:14:43 alarmpitest hass{1327}: b'DATE: Mon Jul 31 21:14:45 2023'
Jul 31 23:14:43 alarmpitest hass{1327}: ^
Jul 31 23:14:49 alarmpitest hass{1327}: 2023-07-31 23:14:49.743 ERROR (MainThread) {aiohttp.server} Error handling request
Jul 31 23:14:49 alarmpitest hass{1327}: Traceback (most recent call last):
Jul 31 23:14:49 alarmpitest hass{1327}: File "/var/lib/hass/.venv/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 332, in data_received
Jul 31 23:14:49 alarmpitest hass{1327}: messages, upgraded, tail = self._request_parser.feed_data(data)
Jul 31 23:14:49 alarmpitest hass{1327}: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[/code]

For me it looks like missing TLS support, since this was the topmost error.
The frontend only shows

[code]500 Internal Server Error
Server got itself in trouble
[/code]

When I restart the service, the fronend is available, but the journal gets spammed with the "aiohttp.http_exceptions.BadHttpMessage" error from above.

Is there any idea how to get this fixed?
Help is very appreciated
tazinblack
 
Posts: 6
Joined: Thu Nov 04, 2021 1:36 pm

Re: [home-assistant] Installation problems

Postby tazinblack » Mon Jul 31, 2023 10:40 pm

Sorry, looks like the parser has a problem with my log output.
Couldn't find a way to fix it on the fly...
tazinblack
 
Posts: 6
Joined: Thu Nov 04, 2021 1:36 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 8 guests