Help please. upgrade to 0.40.2 totally bricked my HA

HA won’t load. Here is the log file:

17-03-23 16:13:51 ERROR (MainThread) [homeassistant.setup] Not initializing tts because could not install dependency mutagen==1.36.2
17-03-23 16:13:51 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not install all requirements.
17-03-23 16:13:54 ERROR (MainThread) [homeassistant.setup] Not initializing emulated_hue because could not install dependency aiohttp_cors==0.5.0
17-03-23 16:13:54 ERROR (MainThread) [homeassistant.setup] Setup failed for emulated_hue: Could not install all requirements.
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Not initializing http because could not install dependency aiohttp_cors==0.5.0
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Could not install all requirements.
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of config. Setup failed for dependencies: http
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not setup all dependencies.
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of media_player. Setup failed for dependencies: http
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Setup failed for media_player: Could not setup all dependencies.
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not setup all dependencies.
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of api. Setup failed for dependencies: http
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not setup all dependencies.
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api
17-03-23 16:13:58 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.
17-03-23 16:13:58 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
17-03-23 16:13:58 WARNING (MainThread) [homeassistant.setup] Setup of remote is taking over 10 seconds.
17-03-23 16:13:58 WARNING (MainThread) [homeassistant.setup] Setup of notify is taking over 10 seconds.
17-03-23 16:13:58 WARNING (MainThread) [homeassistant.setup] Setup of automation is taking over 10 seconds.
17-03-23 16:13:59 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
17-03-23 16:14:00 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera. Setup failed for dependencies: http
17-03-23 16:14:00 ERROR (MainThread) [homeassistant.setup] Setup failed for camera: Could not setup all dependencies.
17-03-23 16:14:01 ERROR (MainThread) [homeassistant.setup] Not initializing recorder because could not install dependency sqlalchemy==1.1.5
17-03-23 16:14:01 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Could not install all requirements.
17-03-23 16:14:02 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of logbook. Setup failed for dependencies: recorder, frontend
17-03-23 16:14:02 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not setup all dependencies.
17-03-23 16:14:02 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of history. Setup failed for dependencies: recorder, http
17-03-23 16:14:02 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not setup all dependencies.
17-03-23 16:14:37 WARNING (Thread-9) [homeassistant.components.zwave] zwave not ready after 30 seconds, continuing anyway

I think i would recommend you to shutdown HASS, delete the “deps” folder inside your hassconfig folder and start HASS

Thanks but after doing this I am still getting the exact same errors in the log file :frowning:

It says cannot install dependencies.
You have HDD space and user has folder permission?

I’ve had similar issue after Logs filled SD card and install didn’t complete

How did you install?
No errors during upgrade?

Not sure what was the problem. Ended up reinstalling everything and now it works

Please pass on the magic. I have HA running on a RPI virtual install. I’m used to the typical errors with pubnubsub and zeroconf, and discovery not loading the first time and having to be manually installed. This time, even after installing the dependencies that HA complained about, I’m getting the following errors.

(homeassistant_venv) homeassistant@hass2:~/.homeassistant$ cat home-assistant.log | grep ERROR
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.input_select. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component input_select
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for input_select: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.http. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component http
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.device_tracker. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component device_tracker
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading proximity dependency: device_tracker
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for proximity: Unable to resolve component or dependencies.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.history. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component history
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.light. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component light
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for light: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.config. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component config
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.media_player. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component media_player
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for media_player: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.camera. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component camera
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for camera: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.api. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component api
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading zeroconf dependency: api
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for zeroconf: Unable to resolve component or dependencies.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.logbook. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component logbook
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.input_slider. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component input_slider
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for input_slider: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.input_boolean. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component input_boolean
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.setup] Setup failed for input_boolean: Component not found.
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.sensor.template. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.template
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.sensor.speedtest. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.speedtest
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.sensor.template. Make sure all dependencies are installed
17-03-25 11:33:37 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.template
17-03-25 11:33:38 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.device_tracker. Make sure all dependencies are installed
17-03-25 11:33:38 ERROR (MainThread) [homeassistant.loader] Unable to find component device_tracker
17-03-25 11:33:38 ERROR (MainThread) [homeassistant.setup] Setup failed for device_tracker: Component not found.
17-03-25 11:33:38 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.frontend. Make sure all dependencies are installed
17-03-25 11:33:38 ERROR (MainThread) [homeassistant.loader] Unable to find component frontend
17-03-25 11:33:38 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Component not found.
17-03-25 11:33:44 ERROR (MainThread) [homeassistant.setup] Error during setup of component wink
17-03-25 11:33:59 ERROR (Thread-8) [homeassistant.components.sensor.snmp] Please check the details in the configuration file

What worries me most as these are dealing with errors like device_tracker, input_select, camera, and other standard HA components.

my upgrade process was as follows

  1. sudo systemctl stop homeassistant (or whatever usually I just hit tab after home and it fills in the rest)
  2. pip3 install --upgrade homeassistant (typing from memory forgive if I misspelled the actual homeassistant part)
    Install ran through without any errors.
  3. installed mysqlclient (I’m using mysql for my database)
  4. sudo systemctl start homeassistant (again I just hit tab after home and it fills in the rest so this command line may be slightly off.
  5. tail -f home-assistant.log
    wait for the log to quiet down
  6. ps -ef | grep dependency (this shows me the dependencies that failed and their version so I can load them manually.
  7. load the missing dependencies specifying version and a target of ~/.homeassistant/deps (I do not use sudo)
    loop between 6 and 7 until missing dependencies are done
  8. restart HA using sudo systemctl restart homeassistant (again same tab disclaimer)
  9. go back to 5 and repeat till no more dependencies missing

This time though after step 9 I was getting these errors and the frontend wasn’t working.

I rebooted… No good
I removed the deps directory and re-ran the upgrade same steps as above – no good
I rebooted my RPI – No good

So now I’m asking the group…

help please.

Oh yea 22G available disk space.

I think the root of the problem goes back to this.

17-03-25 13:13:31 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.api.

I just completely uninstalled HA and reinstalled. Same problem.

I have the exact same problem. Happened after upgrade. Have tried everything. Have you solved it?

I ended up reinstalling the entire raspberry pi. Since I had all the configuration files stored somewhere else the whole process took less than an hour until I had the exact same system up and running again

It ended up being the pyatv component for me. i reloaded all missing components except that one and everything was fine. A later release apparently fixed. the problem. I upgraded to 0.43.2 today and other than having to reload the same typical components everything went fine.