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!
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!
FS#75204 - [home-assistant] version 2022.6.7 fails to start
Attached to Project:
Community Packages
Opened by Steve M (smmalis37) - Friday, 01 July 2022, 00:49 GMT
Last edited by Maxime Gauduin (Alucryd) - Tuesday, 09 August 2022, 09:34 GMT
Opened by Steve M (smmalis37) - Friday, 01 July 2022, 00:49 GMT
Last edited by Maxime Gauduin (Alucryd) - Tuesday, 09 August 2022, 09:34 GMT
|
DetailsDescription:
After installing 2022.6.7 over 2022.4.6, attempting to start it prints this error log into journalctl: Jun 30 20:38:56 smalis-nuc hass[12524]: 2022-06-30 20:38:56 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package home-assistant-frontend==20220601.0: WARNING: No metadata found in ./deps/lib/python3.10/site-packages Jun 30 20:38:56 smalis-nuc hass[12524]: ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/lib/python3.10/site-packages/hass_frontend' Jun 30 20:38:58 smalis-nuc hass[12524]: 2022-06-30 20:38:58 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package home-assistant-frontend==20220601.0: WARNING: No metadata found in ./deps/lib/python3.10/site-packages Jun 30 20:38:58 smalis-nuc hass[12524]: ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/lib/python3.10/site-packages/hass_frontend' Jun 30 20:39:00 smalis-nuc hass[12524]: 2022-06-30 20:39:00 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package home-assistant-frontend==20220601.0: WARNING: No metadata found in ./deps/lib/python3.10/site-packages Jun 30 20:39:00 smalis-nuc hass[12524]: ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/lib/python3.10/site-packages/hass_frontend' Jun 30 20:39:00 smalis-nuc hass[12524]: 2022-06-30 20:39:00 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Requirements for frontend not found: ['home-assistant-frontend==20220601.0']. Downgrading to 2022.4.6 restores full functionality. |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Tuesday, 09 August 2022, 09:34 GMT
Reason for closing: Fixed
Additional comments about closing: 1:2022.8.2-1
Tuesday, 09 August 2022, 09:34 GMT
Reason for closing: Fixed
Additional comments about closing: 1:2022.8.2-1
https://github.com/home-assistant/core/blob/dev/homeassistant/util/package.py#L94
https://stackoverflow.com/a/4495175
https://stackoverflow.com/questions/4495120/combine-user-with-prefix-error-with-setup-py-install/4495175#comment32831892_4495175
I was able to run things normally by monkey-patching util/package.py to comment out the `--prefix=` argument. Given Arch doesn't seem to have the distutils.cfg problem, maybe we just want to patch out that line and tell upstream to fix things up, because the "workaround" seems actively harmful now?
EDIT: Filed upstream https://github.com/home-assistant/core/issues/74405
For those following this bug, you can download each of the files in the Gist and run makepkg. The .service file is unchanged, but I felt that it should be included for completeness :) The $pkgrel was bumped to 2 so the package will be a higher version than what's currently in the mirrors.
Proper fix will be in 2022.7.4 looks like, but `git cherry-pick 7d27dad1902336e959fab97db2e6e5bad33520d3` in PKGBUILD should suffice for now.