You are not logged in.

#1 2023-06-17 17:30:22

InFerYes
Member
Registered: 2012-11-13
Posts: 37

home-assistant fails to start properly after update

Hi, I recently did a system update and since then home-assistant ceased to work. I'm not sure where to continue my search or what might be causing the issues specifically.

Here is a snippet of the journal (complete log here):

Jun 17 18:58:29 sarge hass[67083]: 2023-06-17 18:58:29.767 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of fnv-hash-fast==0.3.1
Jun 17 18:58:31 sarge hass[67083]: 2023-06-17 18:58:31.678 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package fnv-hash-fast==0.3.1: error: externally-managed-environment
Jun 17 18:58:31 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:31 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:31 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:31 sarge hass[67083]:     install.
Jun 17 18:58:31 sarge hass[67083]:     
Jun 17 18:58:31 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:31 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:31 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:31 sarge hass[67083]:     
Jun 17 18:58:31 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:31 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:31 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:31 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:31 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:31 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:31 sarge hass[67083]: 2023-06-17 18:58:31.682 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of fnv-hash-fast==0.3.1
Jun 17 18:58:33 sarge hass[67083]: 2023-06-17 18:58:33.617 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package fnv-hash-fast==0.3.1: error: externally-managed-environment
Jun 17 18:58:33 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:33 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:33 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:33 sarge hass[67083]:     install.
Jun 17 18:58:33 sarge hass[67083]:     
Jun 17 18:58:33 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:33 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:33 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:33 sarge hass[67083]:     
Jun 17 18:58:33 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:33 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:33 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:33 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:33 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:33 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:33 sarge hass[67083]: 2023-06-17 18:58:33.702 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of psutil-home-assistant==0.0.1
Jun 17 18:58:35 sarge hass[67083]: 2023-06-17 18:58:35.646 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package psutil-home-assistant==0.0.1: error: externally-managed-environment
Jun 17 18:58:35 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:35 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:35 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:35 sarge hass[67083]:     install.
Jun 17 18:58:35 sarge hass[67083]:     
Jun 17 18:58:35 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:35 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:35 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:35 sarge hass[67083]:     
Jun 17 18:58:35 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:35 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:35 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:35 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:35 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:35 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:35 sarge hass[67083]: 2023-06-17 18:58:35.647 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of psutil-home-assistant==0.0.1
Jun 17 18:58:37 sarge hass[67083]: 2023-06-17 18:58:37.577 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package psutil-home-assistant==0.0.1: error: externally-managed-environment
Jun 17 18:58:37 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:37 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:37 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:37 sarge hass[67083]:     install.
Jun 17 18:58:37 sarge hass[67083]:     
Jun 17 18:58:37 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:37 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:37 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:37 sarge hass[67083]:     
Jun 17 18:58:37 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:37 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:37 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:37 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:37 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:37 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:37 sarge hass[67083]: 2023-06-17 18:58:37.579 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of psutil-home-assistant==0.0.1
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.506 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package psutil-home-assistant==0.0.1: error: externally-managed-environment
Jun 17 18:58:39 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:39 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:39 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:39 sarge hass[67083]:     install.
Jun 17 18:58:39 sarge hass[67083]:     
Jun 17 18:58:39 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:39 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:39 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:39 sarge hass[67083]:     
Jun 17 18:58:39 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:39 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:39 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:39 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:39 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:39 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.511 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Requirements for recorder not found: ['sqlalchemy==2.0.15', 'psutil-home-assistant==0.0.1', 'fnv-hash-fast==0.3.1'].
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.513 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of search. Setup failed for dependencies: websocket_api
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.514 ERROR (MainThread) [homeassistant.setup] Setup failed for search: (DependencyError(...), 'Could not setup dependencies: websocket_api')
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.515 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of analytics. Setup failed for dependencies: websocket_api
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.516 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: (DependencyError(...), 'Could not setup dependencies: websocket_api')
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.518 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.519 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics')
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.520 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: file_upload, onboarding, search, websocket_api
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.522 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: file_upload, onboarding, search, websocket_api')
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.523 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 1: {'cloud', 'webhook', 'http'}
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.524 INFO (MainThread) [homeassistant.setup] Setting up webhook
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.525 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds
Jun 17 18:58:39 sarge hass[67083]: 2023-06-17 18:58:39.612 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of hass-nabucasa==0.67.1
Jun 17 18:58:41 sarge hass[67083]: 2023-06-17 18:58:41.535 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package hass-nabucasa==0.67.1: error: externally-managed-environment
Jun 17 18:58:41 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:41 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:41 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:41 sarge hass[67083]:     install.
Jun 17 18:58:41 sarge hass[67083]:     
Jun 17 18:58:41 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:41 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:41 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:41 sarge hass[67083]:     
Jun 17 18:58:41 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:41 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:41 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:41 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:41 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:41 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:41 sarge hass[67083]: 2023-06-17 18:58:41.536 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of hass-nabucasa==0.67.1
Jun 17 18:58:43 sarge hass[67083]: 2023-06-17 18:58:43.454 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package hass-nabucasa==0.67.1: error: externally-managed-environment
Jun 17 18:58:43 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:43 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:43 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:43 sarge hass[67083]:     install.
Jun 17 18:58:43 sarge hass[67083]:     
Jun 17 18:58:43 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:43 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:43 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:43 sarge hass[67083]:     
Jun 17 18:58:43 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:43 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:43 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:43 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:43 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:43 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:43 sarge hass[67083]: 2023-06-17 18:58:43.455 INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of hass-nabucasa==0.67.1
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.375 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package hass-nabucasa==0.67.1: error: externally-managed-environment
Jun 17 18:58:45 sarge hass[67083]: × This environment is externally managed
Jun 17 18:58:45 sarge hass[67083]: ╰─> To install Python packages system-wide, try 'pacman -S
Jun 17 18:58:45 sarge hass[67083]:     python-xyz', where xyz is the package you are trying to
Jun 17 18:58:45 sarge hass[67083]:     install.
Jun 17 18:58:45 sarge hass[67083]:     
Jun 17 18:58:45 sarge hass[67083]:     If you wish to install a non-Arch-packaged Python package,
Jun 17 18:58:45 sarge hass[67083]:     create a virtual environment using 'python -m venv path/to/venv'.
Jun 17 18:58:45 sarge hass[67083]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip.
Jun 17 18:58:45 sarge hass[67083]:     
Jun 17 18:58:45 sarge hass[67083]:     If you wish to install a non-Arch packaged Python application,
Jun 17 18:58:45 sarge hass[67083]:     it may be easiest to use 'pipx install xyz', which will manage a
Jun 17 18:58:45 sarge hass[67083]:     virtual environment for you. Make sure you have python-pipx
Jun 17 18:58:45 sarge hass[67083]:     installed via pacman.
Jun 17 18:58:45 sarge hass[67083]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
Jun 17 18:58:45 sarge hass[67083]: hint: See PEP 668 for the detailed specification.
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.378 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Requirements for cloud not found: ['hass-nabucasa==0.67.1'].
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.379 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'auth', 'device_automation', 'search', 'analytics', 'api', 'config', 'lovelace', 'diagnostics', 'safe_mode', 'websocket_api', 'persistent_notification', 'image_upload', 'onboarding', 'file_upload', 'person', 'repairs'}
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.380 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of safe_mode. Setup failed for dependencies: frontend, cloud
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.381 ERROR (MainThread) [homeassistant.setup] Setup failed for safe_mode: (DependencyError(...), 'Could not setup dependencies: frontend, cloud')
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.383 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 29.41s
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.383 INFO (MainThread) [homeassistant.core] Starting Home Assistant
Jun 17 18:58:45 sarge hass[67083]: 2023-06-17 18:58:45.390 INFO (MainThread) [homeassistant.components.http] Now listening on port 8123

The packages that home-assistant tries to install are already installed via pacman, albeit a different version than hass tries to install, or are not available through pacman (like hass-nabucasa). Of course the output says to not install packages outside of the package manager so I didn't. I believe Nabu Casa is not a requirement to run home-assistant, if it isn't installed.

The wiki says to run

# rm -r /var/lib/hass/deps/lib

and then (re)start home-assistant, but I tried that a few times, but that method didn't work. I restarted 3 times and got the above output.

How can I proceed with troubleshooting?

Offline

#2 2023-06-17 17:54:02

loqs
Member
Registered: 2014-03-06
Posts: 17,386

Re: home-assistant fails to start properly after update

Offline

#3 2023-07-10 16:50:56

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: home-assistant fails to start properly after update

It's still not starting correctly due to this bug: https://bugs.archlinux.org/task/78824

As a workaround, I have left home-assistant at 1:2023.5.4-1 and python at 3.11.3-1 until the package is fixed.

Last edited by synthead (2023-07-10 16:52:05)

Offline

#4 2023-07-17 07:41:34

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: home-assistant fails to start properly after update

Yikes, it still hasn't been fixed, and it has been broken for about a month neutral

Offline

#5 2023-08-03 17:10:30

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: home-assistant fails to start properly after update

About two months later, and this blocking bug still hasn't been fixed sad

Offline

#6 2023-08-03 22:11:29

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: home-assistant fails to start properly after update

synthead, I understand that you are frustrated by this bug. Bumping this thread to complain about it is not going to get it fixed any sooner. Please stop.

If you need to complain, we have a thread for that: https://bbs.archlinux.org/viewtopic.php?id=85474

Offline

Board footer

Powered by FluxBB