Problem Upgrading to 0.33.0 - home-assistant.service entered failed state

Hi , here with a RPi 3 with an AIO install

did the following to update

sudo su -s /bin/bash hass
source /srv/hass/hass_venv/bin/activate
pip3 install --upgrade homeassistant

Got the following after restarting

Nov 20 10:37:08 raspberrypi hass[505]: 16-11-20 10:37:08 INFO (Thread-2) [homeassistant.config] Upgrading config directory from 0.32.4 to 0.33.0
Nov 20 10:37:09 raspberrypi hass[505]: Config directory: /home/hass/.homeassistant
Nov 20 10:37:09 raspberrypi hass[505]: Traceback (most recent call last):
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/bin/hass", line 11, in <module>
Nov 20 10:37:09 raspberrypi hass[505]: sys.exit(main())
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.py", line 380, in main
Nov 20 10:37:09 raspberrypi hass[505]: exit_code = setup_and_run_hass(config_dir, args)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.py", line 293, in setup_and_run_hass
Nov 20 10:37:09 raspberrypi hass[505]: log_rotate_days=args.log_rotate_days)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 459, in from_config_file
Nov 20 10:37:09 raspberrypi hass[505]: hass.loop.run_until_complete(future)
Nov 20 10:37:09 raspberrypi hass[505]: File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_until_complete
Nov 20 10:37:09 raspberrypi hass[505]: return future.result()
Nov 20 10:37:09 raspberrypi hass[505]: File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
Nov 20 10:37:09 raspberrypi hass[505]: raise self._exception
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 450, in _async_init_from_config_file
Nov 20 10:37:09 raspberrypi hass[505]: config_path, hass, verbose, skip_pip, log_rotate_days)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 492, in async_from_config_file
Nov 20 10:37:09 raspberrypi hass[505]: config_dict, hass, enable_log=False, skip_pip=skip_pip)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 383, in async_from_config_dict
Nov 20 10:37:09 raspberrypi hass[505]: None, conf_util.process_ha_config_upgrade, hass)
Nov 20 10:37:09 raspberrypi hass[505]: File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
Nov 20 10:37:09 raspberrypi hass[505]: yield self  # This tells Task to wait for completion.
Nov 20 10:37:09 raspberrypi hass[505]: File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
Nov 20 10:37:09 raspberrypi hass[505]: value = future.result()
Nov 20 10:37:09 raspberrypi hass[505]: File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
Nov 20 10:37:09 raspberrypi hass[505]: raise self._exception
Nov 20 10:37:09 raspberrypi hass[505]: File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
Nov 20 10:37:09 raspberrypi hass[505]: result = self.fn(*self.args, **self.kwargs)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/config.py", line 252, in process_ha_config_upgrade
Nov 20 10:37:09 raspberrypi hass[505]: shutil.rmtree(lib_path)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 463, in rmtree
Nov 20 10:37:09 raspberrypi hass[505]: _rmtree_safe_fd(fd, path, onerror)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 401, in _rmtree_safe_fd
Nov 20 10:37:09 raspberrypi hass[505]: _rmtree_safe_fd(dirfd, fullname, onerror)
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 421, in _rmtree_safe_fd
Nov 20 10:37:09 raspberrypi hass[505]: onerror(os.unlink, fullname, sys.exc_info())
Nov 20 10:37:09 raspberrypi hass[505]: File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 419, in _rmtree_safe_fd
Nov 20 10:37:09 raspberrypi hass[505]: os.unlink(name, dir_fd=topfd)
Nov 20 10:37:09 raspberrypi hass[505]: PermissionError: [Errno 13] Permission denied: 'WHEEL'
Nov 20 10:37:09 raspberrypi systemd[1]: home-assistant.service: main process exited, code=exited, status=1/FAILURE
Nov 20 10:37:09 raspberrypi systemd[1]: Unit home-assistant.service entered failed state.

Any ideas ?

I didn’t have any issues upgrading to 0.33.0 and am also using a Raspberry Pi3 with the AIO installer option. I use the fab upgrade_homeassistant command. However, AFAIK this command just invokes the same commands you’ve outlined above.

How do you run that command ??? … From the Virtual Env ???

Nov 22 14:32:58 raspberrypi hass[1809]: onerror(os.unlink, fullname, sys.exc_info())
Nov 22 14:32:58 raspberrypi hass[1809]: File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 419, in _rmtree_safe_fd
Nov 22 14:32:58 raspberrypi hass[1809]: os.unlink(name, dir_fd=topfd)
Nov 22 14:32:58 raspberrypi hass[1809]: PermissionError: [Errno 13] Permission denied: 'WHEEL'
Nov 22 14:32:58 raspberrypi systemd[1]: home-assistant.service: main process exited, code=exited, status=1/FAILURE
Nov 22 14:32:58 raspberrypi systemd[1]: Unit home-assistant.service entered failed state.