Hi guys,
Since python 3.4 will be deprecated in 2018 I upgraded my Hassbian installatie from jessie to stretch. The installation was succesfull but now the log shows a lot of repeated warnings and errors related to the websockets package. Beside that there are multiple “timer got out of sync” errors. What does these warnings and errors mean? and what can I do to fix the problem.
Thanks in adcance!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/protocol.py", line 441, in run
yield from self.fail_connection(1002)
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/protocol.py", line 650, in fail_connection
yield from self.close_connection()
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/protocol.py", line 607, in close_connection
"in the {} state".format(self.state_name))
websockets.exceptions.InvalidState: Cannot close a WebSocket connection in the CONNECTING state
2017-10-19 07:20:26 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:20:35 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:20:37 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:20:46 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:20:48 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:20:56 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:20:58 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:21:06 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:21:08 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:21:12 WARNING (MainThread) [websockets.server] Invalid handshake
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/server.py", line 174, in read_http_request
path, headers = yield from read_request(self.reader)
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/http.py", line 83, in read_request
raise ValueError("Unsupported HTTP method: %r" % method)
ValueError: Unsupported HTTP method: b'POST'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/server.py", line 69, in handler
extra_headers=self.extra_headers)
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/server.py", line 297, in handshake
path, request_headers = yield from self.read_http_request()
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/server.py", line 176, in read_http_request
raise InvalidMessage("Malformed HTTP message") from exc
websockets.exceptions.InvalidMessage: Malformed HTTP message
2017-10-19 07:21:17 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-10-19 07:21:17 ERROR (Recorder) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/protocol.py", line 434, in run
msg = yield from self.read_message()
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/protocol.py", line 456, in read_message
frame = yield from self.read_data_frame(max_size=self.max_size)
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/protocol.py", line 511, in read_data_frame
frame = yield from self.read_frame(max_size)
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/protocol.py", line 546, in read_frame
self.reader.readexactly, is_masked, max_size=max_size)
File "/srv/homeassistant/lib/python3.5/site-packages/websockets/framing.py", line 90, in read_frame
raise WebSocketProtocolError("Reserved bits must be 0")
websockets.exceptions.WebSocketProtocolError: Reserved bits must be 0
During handling of the above exception, another exception occurred: