EDIT : It was finally permissions problem, found the 2 folders that was causing the problem, changed the permissions and updated HA without any problem, everything works now
Still unable to upgrade, any help would be appreciated.
When Iām runnning journalctl -f -u home-assistant@[your user]
I get the following:
-- Logs begin at Thu 2017-03-02 08:37:38 CET. --
Mar 02 08:37:48 hostname systemd[1]: Starting Home Assistant...
Mar 02 08:37:48 hostname systemd[1]: Started Home Assistant.
Mar 02 08:37:55 hostname hass[683]: 17-03-02 08:37:55 INFO (Thread-4) [homeassistant.config] Upgrading config directory from 0.38.3 to 0.39.2
Mar 02 08:37:55 hostname hass[683]: Config directory: /home/hass/.homeassistant
And then nothing more happensā¦
When Iām running hass manually from the virt env I get the following:
(hass_venv) hass@hostname:/home/pi$ hass
Config directory: /home/hass/.homeassistant
17-03-02 09:06:40 INFO (Thread-3) [homeassistant.config] Upgrading config directory from 0.38.3 to 0.39.2
Traceback (most recent call last):
File "/srv/hass/hass_venv/bin/hass", line 11, in
sys.exit(main())
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/__main__.py", line 381, 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 480, 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 471, in asyncinit_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 513, 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 391, 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 263, in process_ha_config_upgrade
shutil.rmtree(lib_path)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 463, in rmtree
rmtreesafe_fd(fd, path, onerror)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 401, in rmtreesafe_fd
rmtreesafe_fd(dirfd, fullname, onerror)
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 421, in rmtreesafe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/srv/hass/hass_venv/lib/python3.4/shutil.py", line 419, in rmtreesafe_fd
os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'metadata.json'
Exception ignored in:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 1294, in _shutdown
t.join()
File "/usr/lib/python3.4/threading.py", line 1060, in join
self.waitfor_tstate_lock()
File "/usr/lib/python3.4/threading.py", line 1076, in waitfor_tstate_lock
elif lock.acquire(block, timeout):