Closed pixeldublu closed 5 years ago
I got the same-ish error last night when I tried to upgrade to 0.81.0 from 0.80.1. It has a similar signature with some differences. I'm running hassio on an intel NUC.
The only thing stands out to me is that part of the stack trace points to zeroconf, but I don't see why that would be a problem. There is also an AlarmDecoder message at the bottom, but that seems more like a consequence of the previous errors more than anything - not sure though. Seems like something is wrong with async stuff, but I don't know python or the library used well enough to understand it.
Error log:
2018-10-28 17:44:31 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2018-10-28 17:44:45 ERROR (SyncWorker_18) [concurrent.futures] exception calling callback for <Future at 0x7f9daa2149e8 state=finished raised RuntimeError>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/zeroconf.py", line 62, in setup
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, stop_zeroconf)
File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 586, in listen_once
self._hass.loop, self.async_listen_once, event_type, listener,
File "/usr/local/lib/python3.6/site-packages/homeassistant/util/async_.py", line 202, in run_callback_threadsafe
loop.call_soon_threadsafe(run_callback)
File "uvloop/loop.pyx", line 1258, in uvloop.loop.Loop.call_soon_threadsafe
File "uvloop/loop.pyx", line 603, in uvloop.loop.Loop._call_soon
File "uvloop/loop.pyx", line 607, in uvloop.loop.Loop._call_soon_handle
File "uvloop/loop.pyx", line 636, in uvloop.loop.Loop._check_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.6/concurrent/futures/_base.py", line 324, in _invoke_callbacks
callback(self)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 417, in _call_set_state
dest_loop.call_soon_threadsafe(_set_state, destination, source)
File "uvloop/loop.pyx", line 1258, in uvloop.loop.Loop.call_soon_threadsafe
File "uvloop/loop.pyx", line 603, in uvloop.loop.Loop._call_soon
File "uvloop/loop.pyx", line 607, in uvloop.loop.Loop._call_soon_handle
File "uvloop/loop.pyx", line 636, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
2018-10-28 17:44:45 ERROR (SyncWorker_12) [concurrent.futures] exception calling callback for <Future at 0x7f9db6c98a90 state=finished returned NoneType>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 324, in _invoke_callbacks
callback(self)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 417, in _call_set_state
dest_loop.call_soon_threadsafe(_set_state, destination, source)
File "uvloop/loop.pyx", line 1258, in uvloop.loop.Loop.call_soon_threadsafe
File "uvloop/loop.pyx", line 603, in uvloop.loop.Loop._call_soon
File "uvloop/loop.pyx", line 607, in uvloop.loop.Loop._call_soon_handle
File "uvloop/loop.pyx", line 636, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
2018-10-28 17:44:46 ERROR (SyncWorker_9) [concurrent.futures] exception calling callback for <Future at 0x7f9d9a604a20 state=finished returned NoneType>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 324, in _invoke_callbacks
callback(self)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 417, in _call_set_state
dest_loop.call_soon_threadsafe(_set_state, destination, source)
File "uvloop/loop.pyx", line 1258, in uvloop.loop.Loop.call_soon_threadsafe
File "uvloop/loop.pyx", line 603, in uvloop.loop.Loop._call_soon
File "uvloop/loop.pyx", line 607, in uvloop.loop.Loop._call_soon_handle
File "uvloop/loop.pyx", line 636, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
2018-10-28 17:44:47 ERROR (SyncWorker_11) [concurrent.futures] exception calling callback for <Future at 0x7f9dae94c860 state=finished returned NoneType>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 324, in _invoke_callbacks
callback(self)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 417, in _call_set_state
dest_loop.call_soon_threadsafe(_set_state, destination, source)
File "uvloop/loop.pyx", line 1258, in uvloop.loop.Loop.call_soon_threadsafe
File "uvloop/loop.pyx", line 603, in uvloop.loop.Loop._call_soon
File "uvloop/loop.pyx", line 607, in uvloop.loop.Loop._call_soon_handle
File "uvloop/loop.pyx", line 636, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
2018-10-28 17:44:49 WARNING (Thread-3) [homeassistant.components.alarmdecoder] AlarmDecoder unexpectedly lost connection.
I had a very similar error. Couldn't start, stop, or restart hassio from the command prompt. Ran the check command from the command prompt, noticed this line.
twilio.base.obsolete.ObsoleteException:
TwilioRestClient has been removed from this version of the library. Please refer to current documentation for guidance.
So I removed the twilio component and related references in configuration.yaml. The Hassio UI fired right back up after rebooting the host. I did notice I am not able to restart hassio from the UI for some reason now. I have to restart it from the command line. Might have something to do with the Nest config error that popped up in 0.81.0
Anyway, hope this helps.
Indeed... twillio seems to be the problem. Removed it and i could startup homeassistant.
@jazzyisj Yep, looks like it was twilio for me as well, though when I ran the check it didn't tell me that for some reason like it told you! Good call though, thanks.
Looks like fix is in the next point release: https://github.com/home-assistant/home-assistant/pull/17895
Home assistant not starting after update to 0.81.0
Home Assistant release with the issue: 0.81.0
Last working Home Assistant release (if known): 0.80.3
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io
Component/platform: Maybe xiaomi aqara ? Not sure
Description of problem: Home assistant not starting anymore... multiple errors.
Traceback (if applicable):