Update completes, but version doesn't change

I just recently attempted to update my Home Assistant from 0.60.1 to 0.61.1. I’ve got it running on a virtual environment in Raspbian. I ran through the upgrade procedure the first time and everything seemed to download and install without any issues. I restarted the Home Assistant service, but in the GUI, it still lists the version as 0.60.1. I tried rebooting the PI with the same result. Now, if I run through the process, it tells me everything is updated already, but still stuck with the old version number. Any suggestions?

pi@raspberrypi:~ $ sudo su -s /bin/bash homeassistant
homeassistant@raspberrypi:/home/pi $ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@raspberrypi:/home/pi $ sudo pip3 install --upgrade homeassistant
Requirement already up-to-date: homeassistant in /usr/local/lib/python3.5/dist-packages
Requirement already up-to-date: async-timeout==2.0.0 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: pip>=8.0.3 in /usr/lib/python3/dist-packages (from homeassistant)
Requirement already up-to-date: pytz>=2017.02 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: aiohttp==2.3.7 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: jinja2>=2.9.6 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: yarl==0.18.0 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: chardet==3.0.4 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: typing<4,>=3 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: pyyaml<4,>=3.11 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: requests==2.18.4 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: voluptuous==0.10.5 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: astral==1.4 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: certifi>=2017.4.17 in /usr/local/lib/python3.5/dist-packages (from homeassistant)
Requirement already up-to-date: multidict>=3.0.0 in /usr/local/lib/python3.5/dist-packages (from aiohttp==2.3.7->homeassistant)
Requirement already up-to-date: MarkupSafe>=0.23 in /usr/local/lib/python3.5/dist-packages (from jinja2>=2.9.6->homeassistant)
Requirement already up-to-date: idna>=2.0 in /usr/local/lib/python3.5/dist-packages (from yarl==0.18.0->homeassistant)
Requirement already up-to-date: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.5/dist-packages (from requests==2.18.4->homeassistant)
(homeassistant) homeassistant@raspberrypi:/home/pi $

https://home-assistant.io/docs/installation/hassbian/common-tasks/

$ sudo systemctl stop [email protected]
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade homeassistant
$ exit
$ sudo systemctl start [email protected]

As above, the main point being that you don’t put sudo before pip3.

You may find that you get permission issue when you try to do it properly now, if you do come back and we’ll get your permissions sorted.

Thanks. I’d tried to do it both with and without sudo and this was just the latest iteration. The one thing I hadn’t done up to this point was to stop the HA service before starting the upgrade. I’d just been attempting a restart after the fact. That seems to have been the missing magic. I’ll note these commands for future upgrades. Thank you for the extremely quick resolution. Love this software, but the community is even better.

1 Like