So I’ve started troubleshooting. Tried to start via SSH and got the following output via “ha core logs”:
~ $ ha core logs
File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 163, in _async_load_data
return cast(Optional[dict], await self.store.async_load())
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 98, in async_load
return await self._load_task
concurrent.futures._base.CancelledError
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/src/homeassistant/homeassistant/util/logging.py", line 85, in _process
self._queue.get(), self.loop
File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 433, in result
raise CancelledError()
concurrent.futures._base.CancelledError
2020-02-19 17:29:50 INFO (SyncWorker_7) [homeassistant.loader] Loaded calendar from homeassistant.components.calendar
2020-02-19 17:29:50 INFO (MainThread) [homeassistant.setup] Setting up calendar
2020-02-19 17:29:50 INFO (MainThread) [homeassistant.setup] Setup of domain calendar took 0.0 seconds.
2020-02-19 17:29:50 INFO (SyncWorker_18) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest
2020-02-19 17:29:51 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform google.calendar: Unable to set up component.
2020-02-19 17:29:51 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform google.calendar: Unable to set up component.
2020-02-19 17:29:51 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
/usr/local/lib/python3.7/asyncio/base_events.py:608: RuntimeWarning: coroutine 'async_search.<locals>.on_data' was never awaited
self._ready.clear()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/src/homeassistant/homeassistant/__main__.py", line 350, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 342, in main
exit_code = asyncio.run(setup_and_run_hass(config_dir, args))
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 89, in async_setup_hass
await async_from_config_dict(config_dict, hass)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 132, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 377, 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
2020-02-19 17:29:51 INFO (SyncWorker_18) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/users/me/calendarList?alt=json
2020-02-19 17:29:51 INFO (SyncWorker_18) [oauth2client.transport] Refreshing due to a 401 (attempt 1/2)
2020-02-19 17:29:51 INFO (SyncWorker_18) [oauth2client.client] Refreshing access_token
2020-02-19 17:29:52 ERROR (SyncWorker_18) [concurrent.futures] exception calling callback for <Future at 0x720243f0 state=finished raised RuntimeError>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 261, in _scan_for_calendars
hass.services.call(DOMAIN, SERVICE_FOUND_CALENDARS, calendar)
File "/usr/src/homeassistant/homeassistant/core.py", line 1164, in call
self._hass.loop,
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 846, in run_coroutine_threadsafe
loop.call_soon_threadsafe(callback)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 732, in call_soon_threadsafe
self._check_closed()
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 479, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 324, in _invoke_callbacks
callback(self)
File "/usr/local/lib/python3.7/asyncio/futures.py", line 365, in _call_set_state
dest_loop.call_soon_threadsafe(_set_state, destination, source)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 732, in call_soon_threadsafe
self._check_closed()
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 479, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Anything in there that catches anyone’s eye?
I see this: 2020-02-19 17:29:51 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
Not sure what that means though?
Thanks!