Since the upgrade from 0.75.3 to 0.76.0 my hassio has basically been broken.
I am getting this error in the HA log.
2018-08-18 14:00:39 ERROR (MainThread) [homeassistant.setup] Error during setup of component onboarding
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/onboarding/__init__.py", line 38, in async_setup
for user in await hass.auth.async_get_users():
File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/__init__.py", line 80, in async_get_users
return await self._store.async_get_users()
File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py", line 31, in async_get_users
await self.async_load()
File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py", line 171, in async_load
for ac_dict in data['access_tokens']:
KeyError: 'access_tokens'
2018-08-18 14:00:40 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: onboarding
2018-08-18 14:00:40 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.
2018-08-18 14:00:43 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of logbook. Setup failed for dependencies: frontend
2018-08-18 14:00:43 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not setup all dependencies.
2018-08-18 14:00:43 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of panel_iframe. Setup failed for dependencies: frontend
2018-08-18 14:00:43 ERROR (MainThread) [homeassistant.setup] Setup failed for panel_iframe: Could not setup all dependencies.
2018-08-18 14:00:43 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of panel_custom. Setup failed for dependencies: frontend
2018-08-18 14:00:43 ERROR (MainThread) [homeassistant.setup] Setup failed for panel_custom: Could not setup all dependencies.
Any ideas? I tried disabling recorder going to external MySQL server and nuked the local HA db already.
76.0 is a complete disaster. Seems to run, but GUI not available on 8123, so can’t really see it. SSH to hassio for hassio ha stop - results in hassio crash. Had to rebuild everything. Took all day.
With a clean 75.3 and no errors in log tried 76 install again. Same disastrous result.
Did you post any error you were getting so the devs maybe able to fix. i updated to 76 and no issues, so it could be something else that stopping your upgrade. i know i had to wait around 20 mins for the initial start up as mentioned in the notes. there was some other posts about the db upgrade not completing, so fix was to delete the HA db
I fixed the OP stated issue “Error during setup of component onboarding” by deleting .storage. Restarting created a new one. Otherwise 0.76 is working perfectly. Something with the upgrade and the new auth system introduced recently.
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
----------------------------------------
Installed pip 18 as suggested, but still got same error. Read about installing Cython. No help.
Stopped HA, deleted DB. Used ssh hassio ha update to specifically install 76.0. Said OK.
Rebooted. I know that some portions of HA were running since one of my startup automations plays with a LIFX bulb. IP sniffer finds the HA IP active, but after 45 minutes the GUI was not available on 8123.
Back in on SSH. Hassio ha stop results in crash:
core-ssh:~# hassio ha stop
ERROR
panic: interface conversion: interface is nil, not string
This is a new package introduced in 0.76, and it request a package cffi!=1.11.3,>=1.7 which don’t have wheel, so pip has to download source code and compile it.
I am having similar issues. Logbook recorder and history all unable to load. I think it came from the database migration.
Error during connection setup: (sqlite3.OperationalError) index ix_events_context_id already exists [SQL: ‘CREATE INDEX ix_events_context_id ON events (context_id)’] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
Just want to add on. Upgrade from 75.2 to 76 seemed to just get stuck. Reconnnected and did an INFO and it reported the version as 76, but on restart I get this:
panic: interface conversion: interface is nil, not string
2018-08-19 13:50:03 ERROR (MainThread) [homeassistant.setup] Error during setup of component onboarding
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
hass, processed_config)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/onboarding/init.py”, line 38, in async_setup
for user in await hass.auth.async_get_users():
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/init.py”, line 80, in async_get_users
return await self._store.async_get_users()
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 31, in async_get_users
await self.async_load()
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 171, in async_load
for ac_dict in data[‘access_tokens’]:
KeyError: ‘access_tokens’
2018-08-19 13:50:04 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: onboarding
2018-08-19 13:50:04 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.
2018-08-19 13:50:08 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of logbook. Setup failed for dependencies: frontend
2018-08-19 13:50:08 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not setup all dependencies.
2018-08-19 13:50:09 ERROR (MainThread) [homeassistant.setup] Error during setup of component hassio
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
hass, processed_config)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/init.py”, line 179, in async_setup
user = yield from hass.auth.async_get_user(data[‘hassio_user’])
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/init.py”, line 84, in async_get_user
return await self._store.async_get_user(user_id)
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 38, in async_get_user
await self.async_load()
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 171, in async_load
for ac_dict in data[‘access_tokens’]:
KeyError: ‘access_tokens’
2018-08-19 13:50:17 WARNING (MainThread) [homeassistant.components.media_player.cast] Setting configuration for Cast via platform is deprecated. Configure via Cast component instead.
2018-08-19 13:50:21 ERROR (MainThread) [homeassistant.components.device_tracker.owntracks] Unable to parse payload as JSON: Hello
I had the same error and resolved it by editing the change_id column of the schema_version table that contained 0 for version 6 causing the query that checks if the upgrade has already been done to 0.76 to fail.
I added a value equals to the largest value that was present in the change_id column plus one. Not sure if this helps you but it’s worth to check it out.
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
----------------------------------------