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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 8
Private No

Details

Description:
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
Comment by Ignacio Sabido Parejo (isabido) - Friday, 01 July 2022, 08:17 GMT
The same problem.
Comment by Ignacio Sabido Parejo (isabido) - Friday, 01 July 2022, 08:25 GMT
I have downgraded to 2022.4.6, now the service starts and i have access to the frontend, but for example it is not possible to add new integrations. Have you been able to try it Steve?
Comment by Henry Tung (compgamer89) - Monday, 04 July 2022, 10:30 GMT
Suspicious:

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
Comment by Max Pray (synthead) - Wednesday, 06 July 2022, 03:49 GMT
@compgamer89, I attempted your workaround, and it works great! I put your suggestion into a Gist: https://gist.github.com/synthead/819fa9bad91f9ba905125b2c7f34937d

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.
Comment by Henry Tung (compgamer89) - Monday, 11 July 2022, 19:07 GMT
Upstream has merged https://github.com/home-assistant/core/pull/74922

Proper fix will be in 2022.7.4 looks like, but `git cherry-pick 7d27dad1902336e959fab97db2e6e5bad33520d3` in PKGBUILD should suffice for now.
Comment by Maxime Gauduin (Alucryd) - Friday, 15 July 2022, 11:05 GMT
2022.7.4 is up guys, please give it a try.
Comment by ⁣ (eimis) - Friday, 15 July 2022, 11:16 GMT
Thanks, after installing `python-orjson`, `2022.7.4` launches and works fine.
Comment by Maxime Gauduin (Alucryd) - Friday, 15 July 2022, 11:17 GMT
Adding it to the deps.
Comment by Steve M (smmalis37) - Saturday, 16 July 2022, 00:03 GMT
Can confirm everything looks good so far with the new version on my system too.

Loading...