I had a working HA before upgrading to 32.1, installed from Hasbian so permission’s were set as per instruction for virtualenv. I get the follow error. Any advice would be appreciated. Thanks.
pi@raspberrypi:/srv/hass $ sudo -u hass -H /srv/hass/hass_venv/bin/hass
Config directory: /home/hass/.homeassistant
INFO:homeassistant.config:Upgrading config directory from 0.31.1 to 0.32.1
Traceback (most recent call last):
File "/srv/hass/hass_venv/bin/hass", line 11, in <module>
sys.exit(main())
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.py", line 380, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.py", line 293, in setup_and_run_hass
log_rotate_days=args.log_rotate_days)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 457, in from_config_file
hass.loop.run_until_complete(future)
File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_until_complete
return future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 448, in _async_init_from_config_file
config_path, hass, verbose, skip_pip, log_rotate_days)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 490, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 385, in async_from_config_dict
None, conf_util.process_ha_config_upgrade, hass)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/config.py", line 251, in process_ha_config_upgrade
shutil.rmtree(lib_path)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 463, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 401, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 421, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 419, in _rmtree_safe_fd
os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'PKG-INFO'