I am upgrading from 0.44.1 to 0.45.1 and I am encountering an error I have not seen before. Any ideas on the permission error. I am running in a virtualenv. Python version is 3.5.2. Everything works fine in 0.44.1
Traceback (most recent call last):
File "/srv/homeassistant/bin/hass", line 11, in <module>
sys.exit(main())
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 396, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 307, in setup_and_run_hass
log_rotate_days=args.log_rotate_days)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 167, in from_config_file
config_path, hass, verbose, skip_pip, log_rotate_days)
File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 202, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 87, in async_from_config_dict
None, conf_util.process_ha_config_upgrade, hass)
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py", line 290, in process_ha_config_upgrade
shutil.rmtree(lib_path)
File "/srv/homeassistant/lib/python3.5/shutil.py", line 474, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/srv/homeassistant/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/srv/homeassistant/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/srv/homeassistant/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'top_level.txt'