Unable to update

Hi all,

I can’t update my HA to the last version.
When I try to do it I receive the following error:
Uninstalling homeassistant-0.50.1:
Exception:
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/shutil.py”, line 522, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permesso negato: ‘/sr
v/homeassistant/homeassistant_venv/lib/python3.4/
site-packages/homeassistant-0.50.1.dist-info/DESC
RIPTION.rst’ -> ‘/tmp/pip-pq9lw61v-uninstall/srv/
homeassistant/homeassistant_venv/lib/python3.4/si
te-packages/homeassistant-0.50.1.dist-info/DESCRI
PTION.rst’

During handling of the above exception, another e
xception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/basecommand.py”, lin
e 215, in main
status = self.run(options, args)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/commands/install.py”
, line 342, in run
prefix=options.prefix_path,
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/req/req_set.py”, lin
e 778, in install
requirement.uninstall(auto_confirm=True)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/req/req_install.py”,
line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/req/req_uninstall.py
", line 115, in remove
renames(path, new_path)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/utils/init.py”,
line 267, in renames
shutil.move(old, new)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/shutil.py”, line 535, in move
os.unlink(src)
PermissionError: [Errno 13] Permesso negato: ‘/sr
v/homeassistant/homeassistant_venv/lib/python3.4/
site-packages/homeassistant-0.50.1.dist-info/DESC
RIPTION.rst’

Can someone please help me?

did you type sudo before the update command. If you didn’t, you should.

I followed this instructions actually

As done for the previous upgrades

Up?

I’m the only one with this issue?

I have the same issue. As Treno already said I believe you have to use sudo to update (it’s missing in the tutorial).
I tried that and then the update did finish correctly. Unfortunately there is still something wrong. My frontend keeps saying that there is another update (0.51.2). The update command stated everything is up to date. but when i check my version it says 0.50.2.
Somethng is going wrong with the latest updates…

my config:
Raspberry Pi 3B
Raspian Jessie (full, not lite)
HASS-config: in Virtualenv

I did run the update with sudo and with the created user “homeassistant”. I hope somebody can help.

I already found out… When using the Virtualenv the installation tutorial says: repeat steps 3, 5 and 6. That worked.
I just executed the regular update command with the homeassistant user.

Uhm Can you please specify? I still have the issue

This is what I do:

sudo su -s /bin/bash homeassistant
Source /srv/homeassistant/homeassistant_venv/bin/activate
sudo pip3 install --upgrade homeassistant
(Without sudo I receive a permission error).

But then the front end doesn’t work!

Please help me restore my HA!

I used the exact commands from the tutorial. They are slightly different from yours, but maybe you changed something when installing Hass.

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
sudo pip3 install --upgrade homeassistant
1 Like

That’s because I followed this tutorial.

But I can’t still make it work!

I updated successfully to the dev branch 0.52

But I can’t still launch frontend.

Log file is still updated to a week a go and I can’t figure out what is still wrong.