DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

Home Assistant 2024.10 failed after update from 2024.9.3

Open whyisthisbroken opened this issue 4 months ago • 48 comments

ADMIN EDIT

To solve the issue now:

sudo systemctl stop home-assistant
sudo grep -q 'UV_SYSTEM_PYTHON' /home/homeassistant/pyenv-activate.sh || sudo sed -i '/^export /a\export UV_SYSTEM_PYTHON=1' /home/homeassistant/pyenv-activate.sh
sudo rm -R /mnt/dietpi_userdata/homeassistant/deps
sudo ln -sf /home/homeassistant/.pyenv/versions/3.12.*/lib/python3.12/site-packages /mnt/dietpi_userdata/homeassistant/deps
sudo systemctl restart home-assistant

Creating a bug report/issue

  • [x] I have searched the existing open and closed issues

Required Information

  • DietPi version G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=7 G_DIETPI_VERSION_RC=1 G_GITBRANCH='beta' G_GITOWNER='MichaIng'
  • Distro version bookworm 0
  • Kernel version Linux HomeNetDNS 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • SBC model RPI 4 8GB

Additional Information (if applicable)

  • Software title | Home Assistant
  • Home Assistant 2024.9.3 / Frontend 20240909.1
  • Can this issue be replicated on a fresh installation of DietPi? I dont know

Steps to reproduce

  1. /home/homeassistant/homeassistant-update.sh
  2. Home Assistant update in background much depencies..
  3. Home Assistant starts but could not load anything.

Expected behaviour

  • Update and work like before :)

Actual behaviour

  • Update and not working like before :(

Extra details

  • This Error comes at evry update depencie: error: No virtual environment found; run uv venv to create an environment, or pass --system to install into a non-virtual environment

After Update and HA want start this comes...

  • Oct 03 08:15:58 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:58.319 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'recovery_mode'. Setup failed for dependencies: ['frontend', 'cloud'] Oct 03 08:15:58 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:58.320 ERROR (MainThread) [homeassistant.setup] Setup failed for 'recovery_mode': Could not setup dependencies: frontend, cloud

Example of most of the Errors coming during the installation:

Oct 03 08:14:46 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:14:46.547 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package home-assistant-intents==2024.10.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:14:49 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:14:49.444 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package home-assistant-intents==2024.10.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:14:52 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:14:52.313 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package zeroconf==0.135.0: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:14:55 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:14:55.097 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package zeroconf==0.135.0: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:14:57 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:14:57.929 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package zeroconf==0.135.0: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:14:57 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:14:57.932 ERROR (MainThread) [homeassistant.setup] Setup failed for 'zeroconf': Requirements for zeroconf not found: ['zeroconf==0.135.0'].
Oct 03 08:15:00 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:00.747 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package cached-ipaddress==0.6.0: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:03 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:03.570 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package cached-ipaddress==0.6.0: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:06 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:06.393 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package cached-ipaddress==0.6.0: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:06 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:06.395 ERROR (MainThread) [homeassistant.setup] Setup failed for 'dhcp': Requirements for dhcp not found: ['cached-ipaddress==0.6.0'].
Oct 03 08:15:09 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:09.218 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package python-matter-server==6.5.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:12 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:12.070 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package python-matter-server==6.5.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:14 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:14.934 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package python-matter-server==6.5.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:14 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:14.937 ERROR (MainThread) [homeassistant.setup] Setup failed for 'cloud': Requirements for matter not found: ['python-matter-server==6.5.2'].
Oct 03 08:15:14 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:14.965 ERROR (MainThread) [homeassistant.setup] Setup failed for 'shelly': Requirements for zeroconf not found: ['zeroconf==0.135.0'].
Oct 03 08:15:14 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:14.970 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'logbook'. Setup failed for dependencies: ['frontend']
Oct 03 08:15:14 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:14.971 ERROR (MainThread) [homeassistant.setup] Setup failed for 'logbook': Could not setup dependencies: frontend
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.003 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'my'. Setup failed for dependencies: ['frontend']
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.005 ERROR (MainThread) [homeassistant.setup] Setup failed for 'my': Could not setup dependencies: frontend
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.007 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'hacs'. Setup failed for dependencies: ['frontend']
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.008 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'hacs': Could not setup dependencies: frontend
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.032 ERROR (MainThread) [homeassistant.setup] Setup failed for 'hue': Requirements for zeroconf not found: ['zeroconf==0.135.0'].
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.034 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'map'. Setup failed for dependencies: ['frontend']
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.035 ERROR (MainThread) [homeassistant.setup] Setup failed for 'map': Could not setup dependencies: frontend
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.196 ERROR (MainThread) [homeassistant.setup] Setup failed for 'conversation': Requirements for conversation not found: ['home-assistant-intents==2024.10.2'].
Oct 03 08:15:15 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:15.617 ERROR (MainThread) [homeassistant.setup] Setup failed for 'mobile_app': Requirements for conversation not found: ['home-assistant-intents==2024.10.2'].
Oct 03 08:15:18 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:18.057 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'assist_pipeline'. Setup failed for dependencies: ['conversation']
Oct 03 08:15:18 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:18.058 ERROR (MainThread) [homeassistant.setup] Setup failed for 'assist_pipeline': Could not setup dependencies: conversation
Oct 03 08:15:18 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:18.090 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'esphome'. Setup failed for dependencies: ['assist_pipeline']
Oct 03 08:15:18 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:18.091 ERROR (MainThread) [homeassistant.setup] Setup failed for 'esphome': Could not setup dependencies: assist_pipeline
Oct 03 08:15:18 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:18.168 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package numpy==1.26.4: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:20 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:20.874 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package numpy==1.26.4: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:23 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:23.725 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package numpy==1.26.4: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:23 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:23.728 ERROR (MainThread) [homeassistant.setup] Setup failed for 'stream': Requirements for stream not found: ['numpy==1.26.4'].
Oct 03 08:15:23 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:23.729 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['assist_pipeline', 'cloud', 'conversation', 'dhcp', 'logbook', 'map', 'mobile_app', 'my', 'stream', 'zeroconf']
Oct 03 08:15:23 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:23.730 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: assist_pipeline, cloud, conversation, dhcp, logbook, map, mobile_app, my, stream, zeroconf
Oct 03 08:15:26 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:26.623 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package reolink-aio==0.9.11: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:29 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:29.475 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package reolink-aio==0.9.11: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:32 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:32.282 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package reolink-aio==0.9.11: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:32 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:32.285 ERROR (MainThread) [homeassistant.setup] Setup failed for 'reolink': Requirements for reolink not found: ['reolink-aio==0.9.11'].
Oct 03 08:15:32 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:32.287 WARNING (MainThread) [homeassistant.bootstrap] Detected that frontend did not load. Activating recovery mode
Oct 03 08:15:35 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:35.624 ERROR (SyncWorker_9) [homeassistant.util.package] Unable to install package home-assistant-frontend==20241002.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:38 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:38.432 ERROR (SyncWorker_9) [homeassistant.util.package] Unable to install package home-assistant-frontend==20241002.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:41 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:41.259 ERROR (SyncWorker_9) [homeassistant.util.package] Unable to install package home-assistant-frontend==20241002.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:41 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:41.262 ERROR (MainThread) [homeassistant.setup] Setup failed for 'frontend': Requirements for frontend not found: ['home-assistant-frontend==20241002.2'].
Oct 03 08:15:44 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:44.102 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package home-assistant-intents==2024.10.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:46 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:46.934 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package home-assistant-intents==2024.10.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:49 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:49.745 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package home-assistant-intents==2024.10.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:52 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:52.598 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package python-matter-server==6.5.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:55 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:55.489 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package python-matter-server==6.5.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:58 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:58.314 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package python-matter-server==6.5.2: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
Oct 03 08:15:58 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:58.317 ERROR (MainThread) [homeassistant.setup] Setup failed for 'cloud': Requirements for matter not found: ['python-matter-server==6.5.2'].
Oct 03 08:15:58 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:58.319 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'recovery_mode'. Setup failed for dependencies: ['frontend', 'cloud']
Oct 03 08:15:58 HomeNetDNS Home Assistant[1936]: 2024-10-03 08:15:58.320 ERROR (MainThread) [homeassistant.setup] Setup failed for 'recovery_mode': Could not setup dependencies: frontend, cloud

whyisthisbroken avatar Oct 03 '24 06:10 whyisthisbroken