2021.3: My Oh My

I installed 2021.3.4 but I’m still not able to see the frontend.
The home-assistant service is active, however I get 404: not found page.

2021-03-13 08:39:38 ERROR (MainThread) [homeassistant.bootstrap] Error setting up integration frontend - received exception
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/setup.py", line 64, in async_setup_component
    return await task  # type: ignore
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/setup.py", line 158, in _async_setup_component
    await async_process_deps_reqs(hass, config, integration)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/setup.py", line 343, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/requirements.py", line 79, in async_get_integration_with_requirements
    await async_process_requirements(
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/requirements.py", line 126, in async_process_requirements
    if pkg_util.is_installed(req):
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/util/package.py", line 44, in is_installed
    return version(req.project_name) in req
  File "/srv/homeassistant/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3143, in __contains__
    return self.specifier.contains(item, prereleases=True)
  File "/srv/homeassistant/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 681, in contains
    item = parse(item)
  File "/srv/homeassistant/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 28, in parse
    return Version(version)
  File "/srv/homeassistant/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 219, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

Can somebody give me a hint? I’m struggling on this.
Thanks

Saw that there was an update from 2021.3.3 to 2021.3.4 this morning. I have tried to update (twice) and both times got the following error:

21-03-13 07:14:20 INFO (SyncWorker_1) [supervisor.docker.interface] Updating image homeassistant/raspberrypi4-64-homeassistant:2021.3.3 to homeassistant/raspberrypi4-64-homeassistant:2021.3.4
21-03-13 07:14:20 INFO (SyncWorker_1) [supervisor.docker.interface] Downloading docker image homeassistant/raspberrypi4-64-homeassistant with tag 2021.3.4.
21-03-13 07:14:21 ERROR (SyncWorker_1) [supervisor.docker.interface] Can't install homeassistant/raspberrypi4-64-homeassistant:2021.3.4 -> 500 Server Error for http+docker://localhost/v1.40/images/create?tag=2021.3.4&fromImage=homeassistant%2Fraspberrypi4-64-homeassistant: Internal Server Error ("Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: no such host").
21-03-13 07:14:21 WARNING (MainThread) [supervisor.homeassistant.core] Updating Home Assistant image failed

System Health

version core-2021.3.3
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.7
os_name Linux
os_version 5.4.83-v8
arch aarch64
timezone Europe/Amsterdam
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4862
Installed Version 1.11.3
Stage running
Available Repositories 812
Installed Repositories 11
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 5.12
update_channel stable
supervisor_version supervisor-2021.03.4
docker_version 19.03.13
disk_total 109.3 GB
disk_used 9.6 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons File editor (5.2.0), Samba share (9.3.1), InfluxDB (4.0.3), Terminal & SSH (9.0.2), Grafana (6.1.3), Z-Wave JS (0.1.10)
Lovelace
dashboards 2
resources 8
views 4
mode storage

Edit: Hmm, tried it one more time 5 hours later, and this time it updated. Third time lucky?

The change is in 2021.4dev.

You likely have some broken manifest files in /srv/homeassistant/lib/python3.9/site-packages that need to be manually cleaned up

Hi,
I recently updated to version 2021.3.3 and I start getting this error when I try to run scripts involving the Blink camera component.
Can someone help me?
Thanks in advance

Logger: aiohttp.server
Source: components/blink/camera.py:92 
First occurred: 22:20:24 (67 occurrences) 
Last logged: 22:53:31

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 71, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 496, in get
    return await self.handle(request, camera)
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 531, in handle
    return await camera.handle_async_mjpeg_stream(request)
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 396, in handle_async_mjpeg_stream
    return await self.handle_async_still_stream(request, self.frame_interval)
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 386, in handle_async_still_stream
    return await async_get_still_stream(
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 192, in async_get_still_stream
    img_bytes = await image_cb()
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 382, in async_camera_image
    return await self.hass.async_add_executor_job(self.camera_image)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/blink/camera.py", line 92, in camera_image
    return self._camera.image_from_cache.content
AttributeError: 'NoneType' object has no attribute 'content'

I got a notification of the core-2021.3.4 update. But there’s no changelog for it?

1 Like
1 Like

How to track down? If it’s a device issue, how to identify a „problematic“ one? :thinking: :pleading_face:

I don’t know. All I saw was that it was an error with the device registry, which is where HA stores its devices.

Even more interesting:

[17:41:04] INFO: Please be patient, this might take a few minutes...
**ERROR: After October 2020 you may experience errors when installing or updating packages. 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 the new resolver before it becomes the default.**
**aiohttp 3.7.4 requires chardet<4.0,>=2.0, but you'll have chardet 4.0.0 which is incompatible.**
[17:42:17] INFO: Installed Home Assistant 2021.3.4

Nothing within my control I guess.

Update:
Gave it a try (by creating a snapshot backup before of course) and updated to 2021.3.4. Worked without any issues, HA log clear (discovered nothing new). So that make´s me really rethink the value of the Check Home Assistant configuration addon…

ever since I updated to 2021.3.4, my Google assistent doesn’t see any of my hass-devices. And removing and readding the Home Assistent Cloud option does nothing to improve the situation.

I do encounter an issue in the logs around this, but I don’t know exactly how it relates nor how to solve it:

Logger: homeassistant.components.google_assistant.smart_home
Source: helpers/network.py:124
Integration: google_assistant (documentation, issues)
First occurred: 9:01:59 PM (410 occurrences)
Last logged: 9:19:14 PM

Error serializing switch.corner_lamp_on_off
Error serializing light.bedroom_panel_level_light_color_on_off
Error serializing switch.ikea_of_sweden_tradfri_control_outlet_40399cfe_on_off
Error serializing light.bookcase_lamp_level_light_color_on_off
Error serializing media_player.tv_in_slaapkamer
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 493, in sync_serialize
    "baseUrl": get_url(self.hass, prefer_external=True),
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 84, in get_url
    request_host = _get_request_host()
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 124, in _get_request_host
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

And I noticed this too in my logs¿

Logger: homeassistant.components.cloud.google_config
Source: components/cloud/google_config.py:146
Integration: Home Assistant Cloud (documentation, issues)
First occurred: 4:39:54 PM (58 occurrences)
Last logged: 9:22:12 PM

Error reporting state - 5: Requested entity was not found.

Im really tired, update and new problem, maybe someone can help ?
After 2021.3.4 i have this:

Never ending rotating circles on all enetities in chart view in lovelace.
All default no customizations.
This is not entities problem because all states are correct and problem includes all entities i tried like battery, linkquality, current, energy etc.
I have tried 2021.2.3 snapshot but same thing.
Host restarted few times.
Im using mariadb for recorder.

Any ideas what throubleshooting steps i should take ?

My system

Raspberry Pi4

Supervisor 2021.3.4
Core 2021.3.4
HASSOS 5.10

Im using HASSOS 64bit from HA site.
No custom docker installation.

Clear your browser cache.

1 Like

:slight_smile: thx for this advice anyway.

Did it, even tried from different freshly installed browsers and different devices, but no go.

Thanks for reply I have got Node Red working again. Its just that as a novice user if left me stumped for quite a while. But then again we learn more when things do not work right away.

How do you actually configure the Mullvad portion?

I installed the integration but I see no documentation for anything after that. It adds then asks if I want to configure but the only option I get is to click ‘Submit’ and then it says it’s completed.

I don’t get any option to add an account #.

In the release notes I can read: “Recently, it became possible to not only assign devices to areas, but entities as well.” Can somebody please explain to me how I can do this with my Rflink-entities (they do not belong to parent device)?
Thanx!

Configuration -> Entities

But the entities need to have a unique_id. If the Rflink integration does not create unique_ids for each item/device/entity, you will not be able to change the area.

No, that is what I thought so.

So the Rflink integration needs to be changed to get uniqueID’s?

I read on the Rflink website that they are now doing the final testing after a long refactoring of the RFLink Gateway code.

Maybe integration with Home Assistant is easier now?

Thanks for pointing me to the problem, however I’m not very fond of it.
How can I clean the manifest files?

There is an example of the broken dist info directory structure that needs to be moved away in https://github.com/home-assistant/core/issues/47699#issuecomment-794666957