Since upgrading to the latest home assistant 0.106 on my RPI3 with Hassio, I am not able to load the frontend anymore. I can still access files through my samba share so I can see logs and also create an invalid config so that I start the UI in safe mode. As soon as I take the UI out of safe mode, I cannot access the frontend anymore. I tried removing integrations and emptying my config file but so far with no success.
Here is the latest error log. What steps should I follow to solve this error (TypeError: expected string or bytes-like object
)?
2020-03-07 21:42:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2020-03-07 21:42:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2020-03-07 21:42:57 ERROR (MainThread) [homeassistant.setup] Error during setup of component hassio
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 249, in setup_and_run_hass
safe_mode=args.safe_mode,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 93, in async_setup_hass
await async_from_config_dict(config_dict, hass) is not None
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 178, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 404, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 49, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 128, in _async_setup_component
await async_process_deps_reqs(hass, config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 290, in async_process_deps_reqs
hass, integration.domain
File "/usr/src/homeassistant/homeassistant/requirements.py", line 55, in async_get_integration_with_requirements
hass, integration.domain, integration.requirements
File "/usr/src/homeassistant/homeassistant/requirements.py", line 99, in async_process_requirements
if pkg_util.is_installed(req):
File "/usr/src/homeassistant/homeassistant/util/package.py", line 44, in is_installed
return version(req.project_name) in req
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3138, in __contains__
return self.specifier.contains(item, prereleases=True)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 703, in contains
item = parse(item)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 31, in parse
return Version(version)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 200, in __init__
match = self._regex.search(version)
TypeError: expected string or bytes-like object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 170, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 159, in async_setup
if not await hassio.is_connected():
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 31, in _wrapper
data = await funct(*argv, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 161, in send_command
headers={X_HASSIO: os.environ.get("HASSIO_TOKEN", "")},
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 967, in _create_direct_connection
traces=traces), loop=self._loop)
concurrent.futures._base.CancelledError