Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78824 - [home-assistant] is already installed with the same version as the provided wheel.

Attached to Project: Arch Linux
Opened by InFeYes (InFerYes) - Sunday, 18 June 2023, 18:40 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 20 June 2023, 06:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Maxime Gauduin (Alucryd)
Alexander Epaneshnikov (alex19EP)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

Description:
The home-assistant service is in a loop that keeps going round to the same error.
The journalctl output for this specific service can be found here https://pastebin.com/raw/CvBdPqVK

The most relevant part appears to be

homeassistant is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
Jun 18 10:43:38 sarge python[72712]: [notice] A new release of pip available: 22.3.1 -> 23.1.2
Jun 18 10:43:38 sarge python[72712]: [notice] To update, run: python -m pip install --upgrade pip
Jun 18 10:43:38 sarge systemd[1]: Started Home assistant.
Jun 18 10:43:38 sarge (hass)[72734]: home-assistant.service: Failed to locate executable /var/lib/hass/.venv/bin/hass: No such file or directory
Jun 18 10:43:38 sarge (hass)[72734]: home-assistant.service: Failed at step EXEC spawning /var/lib/hass/.venv/bin/hass: No such file or directory


Additional info:
* package version(s): home-assistant-1:2023.6.2-1
* config and/or log files etc.: https://pastebin.com/raw/CvBdPqVK
* link to upstream bug report, if any

Steps to reproduce:
Start or restart the home-assistant service via systemctl

sudo systemctl restart home-assistant
This task depends upon

Comment by Toolybird (Toolybird) - Sunday, 18 June 2023, 21:52 GMT
Did you manually delete "/var/lib/hass/deps' as per  FS#78774 ?
Comment by Mathias Rohnstock (mrohnstock) - Monday, 19 June 2023, 04:50 GMT
same here, removed the complete "/var/lib/hass/deps" and reinstalled home-assistant package, but doesn't help.

// EDIT: ok, after removing "/var/lib/hass/.venv", too and a double restart, everything works again!
Comment by InFeYes (InFerYes) - Monday, 19 June 2023, 19:04 GMT
I have removed /var/lib/hass/deps/lib as described on the wiki, but I will try 1 level higher and report back
Comment by InFeYes (InFerYes) - Monday, 19 June 2023, 19:23 GMT
home-assistant finally managed to start, but still spews out errors:

Home Assistant Core
Fetch snapshot image failed from Camera1, falling back to FFmpeg
9:21:24 PM – (ERROR) ONVIF - message first occurred at 9:20:26 PM and shows up 9 times
Error handling WebRTC offer: RTSPtoWebRTC server failure: Not Found
9:21:21 PM – (ERROR) Camera - message first occurred at 9:20:41 PM and shows up 6 times
Error doing job: Task exception was never retrieved
9:16:35 PM – (ERROR) .venv/lib/python3.11/site-packages/pydaikin/discovery.py
Setup failed for history: (DependencyError(...), 'Could not setup dependencies: recorder')
9:16:30 PM – (ERROR) setup.py - message first occurred at 9:16:24 PM and shows up 4 times
Unable to set up dependencies of history. Setup failed for dependencies: recorder
9:16:30 PM – (ERROR) setup.py - message first occurred at 9:16:24 PM and shows up 4 times
Setup failed for mycroft: Dependency is disabled - Dependencies not compatible with the new pip resolver
9:16:24 PM – (ERROR) setup.py
Error doing job: Future exception was never retrieved
9:16:23 PM – (ERROR) .venv/lib/python3.11/site-packages/dbus_fast/_private/unmarshaller.py
Error during setup of component bluetooth
9:16:23 PM – (ERROR) .venv/lib/python3.11/site-packages/dbus_fast/_private/unmarshaller.py
Setup failed for recorder: Integration failed to initialize.
9:16:22 PM – (ERROR) setup.py
Error during connection setup: No module named 'mysql' (retrying in 3 seconds)
9:16:19 PM – (ERROR) recorder - message first occurred at 9:15:51 PM and shows up 10 times
Setup of recorder is taking over 10 seconds.
9:16:01 PM – (WARNING) runner.py
Comment by Toolybird (Toolybird) - Tuesday, 20 June 2023, 06:05 GMT
See also dupe  FS#78839 
Comment by Maxime Gauduin (Alucryd) - Tuesday, 20 June 2023, 06:51 GMT
Unless I'm mistaken, hass is supposed to install any missing deps itself, so that's unfortunate. Can you guys try modifying the systemd unit to pass --system-site-packages to both venv commands and daemon-reload/restart? That way you should be able to use missing packages from the repo. You might need to delete the .venv directory first, not sure if --upgrade can convert a standalone venv to one that can tap into the system.

Loading...