I had to reinstall HASS recently and im having a load of problems. I dont know where to start with this and im tempted to remove HASS and install again but before i do i want to get other peoples thoughts on this:
Error 1:
2017-06-14 07:08:30 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 326, in handle
msg = yield from wsock.receive_json()
File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 328, in receive_json
data = yield from self.receive_str(timeout=timeout)
File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 310, in receive_str
msg = yield from self.receive(timeout)
File "/home/homeassistant/.homeassistant/deps/aiohttp/web_ws.py", line 273, in receive
msg = yield from self._reader.read()
File "/home/homeassistant/.homeassistant/deps/aiohttp/streams.py", line 627, in read
return (yield from super().read())
File "/home/homeassistant/.homeassistant/deps/aiohttp/streams.py", line 509, in read
yield from self._waiter
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 269, in result
raise CancelledError
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/deps/aiohttp/web_protocol.py", line 421, in start
resp = yield from self._request_handler(request)
File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 303, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
res = yield from res
File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
res = yield from res
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware_handler
return (yield from handler(request))
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 424, in handle
result = yield from result
File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
res = yield from res
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 388, in handle
yield from self._writer_task
File "/usr/lib/python3.4/asyncio/futures.py", line 390, in __iter__
return self.result() # May raise too.
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/websocket_api.py", line 238, in _writer
yield from self.wsock.send_json(message, dumps=JSON_DUMP)
File "/home/homeassistant/.homeassistant/deps/aiohttp/http_writer.py", line 128, in drain
yield from self._protocol._drain_helper()
File "/usr/lib/python3.4/asyncio/streams.py", line 197, in _drain_helper
yield from waiter
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/asyncio/selector_events.py", line 858, in _write_ready
n = self._sock.send(self._buffer)
File "/usr/lib/python3.4/ssl.py", line 678, in send
v = self._sslobj.write(data)
BrokenPipeError: [Errno 32] Broken pipe
2017-06-14 07:08:32 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-06-14 07:08:36 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
Error 2:
2017-06-14 08:51:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.desk_lightstrip is taking over 10 seconds
2017-06-14 08:51:45 ERROR (Thread-3) [phue] GET Request to 192.168.1.8/api/vGJJIrE-ADXHYwOtMu1xt9PkvoVXAE8dctsC6GNE timed out.
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/deps/phue.py", line 651, in request
connection.request(mode, address)
File "/usr/lib/python3.4/http/client.py", line 1090, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 859, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 509, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 500, in create_connection
sock.connect(sa)
socket.timeout: timed out
2017-06-14 08:51:45 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.desk_lightstrip fails
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/deps/phue.py", line 651, in request
connection.request(mode, address)
File "/usr/lib/python3.4/http/client.py", line 1090, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 859, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 509, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 500, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 224, in async_update_ha_state
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 455, in update
self.update_lights(no_throttle=True)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 182, in update_lights
api = bridge.get_api()
File "/home/homeassistant/.homeassistant/deps/phue.py", line 838, in get_api
return self.request('GET', '/api/' + self.username)
File "/home/homeassistant/.homeassistant/deps/phue.py", line 661, in request
raise PhueRequestTimeout(None, error)
phue.PhueRequestTimeout: (None, 'GET Request to 192.168.1.8/api/vGJJIrE-ADXHYwOtMu1xt9PkvoVXAE8dctsC6GNE timed out.')
This morning i removed my phue.conf file and reconfigured the connection from HASS. The lights work fine but this is logged quite often. Also i noticed that my device tracker is wonky, sometimes it starts tracking and other times it doesnt.
The UI works, automatons work, notifications work to my iPhone but sometimes things just stop working randomly.