Home assistant not working after update

Hi there,

After executing " (homeassistant) root@orangepiplus2e:~# pip3 install --upgrade homeassistant "

My home assistant is not working, and I face error 404: Not Found.

When I execute this I got error:

root@orangepiplus2e:~# source /srv/homeassistant/bin/activate
(homeassistant) root@orangepiplus2e:~# hass --script check_config
INFO:homeassistant.util.package:Attempting install of colorlog==3.1.4
Testing configuration at /root/.homeassistant

After execuiting " (homeassistant) root@orangepiplus2e:~# hass "
I run on a lot of errors, please check output on: http://galicit.com/output.yaml

Please help!

Did you install HA as root user, or did you create a user specifically for HA?

1 Like

I did all folowing this wiki. How to install Home Assistant on an Orange Pi Zero – albertogonzalez.net

You need to switch to user hass before you start your upgrade and run homeassistant, otherwise it is looking at a completely different configuration.

Unfortunately, now you have run the command as root, you have probably set the permissions to files incorrectly, and it will have problems updating as user hass, but you might try it.

If it doesn’t work, the simple option is to remove the virtual environment directory and recreate from scratch, as hass user (using the instructions on that page).

1 Like

Thanks for help! Now i know for next time…

can you tell me how to remove virtual envoirment please?

As root user

mv /srv/homeassistant /srv/homeassistant-old

which keeps it, but allows you to create a new one, just in case there is something in it you want to look at later. Then at some point later you can do

rm -rf  /srv/homeassistant-old

to get rid of it permanently.