HELP :) Log keeps on filling up with errors - getting desperate

Having reached the point where I’m almost about to throw everything out of the house, I decided to give it one more try through the HA community to find out what exactly is causing my config to be so unstable.

Below an extract of my log since last reboot… And as you can see, it’s just beyond acceptable, the number of errors… Typically, in the morning when I wake up or in the evening when I come home, I’m having endless logs with errors like this… Every morning, it’s waiting to see if my morning routine will start. Sometimes it does, sometimes it doesn’t, sometimes there is a delay on some parts…

I tried reinstalling from scratch, I tried deactivating certain components, I tried optimizing my network, I really think that I’ve considered all what is possible, including making sure template sensors only update based on changed for certain entity_ids, no discovery, etc… etc… I considered swapping my hardware as I wondered if the RPI 3 can handle all this, bu

For those interested or wanting to have a look, my config is here: https://github.com/farstreet/my-home-assistant-configuration It has an overview of my hardware used and of course you can look into the different component configs and automations. Current DB size is about 225 MB, I have purge on 1 day but I never get to 24h without rebooting, so that’s happing never…

I shared my config initially to help people with their setups, right now I need help from the community back :slight_smile:

If there’s anyone in Northern California (SF South Bay), I got to the point that I’m willing to pay for support :smiley:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        17-04-12 23:35:25 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-12 23:35:30 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-12 23:35:46 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-12 23:35:58 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-12 23:36:55 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-12 23:36:55 WARNING (Thread-15) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (Thread-22) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (Thread-19) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (Thread-16) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (Thread-18) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (Thread-21) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (Thread-17) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (Thread-20) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:36:55 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.all_living_room_lights is taking over 10 seconds.
17-04-12 23:36:55 WARNING (Thread-14) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-12 23:38:24 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-12 23:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.uberx_time is taking over 10 seconds.
17-04-12 23:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.bednightlamp_jurgen is taking over 10 seconds.
17-04-12 23:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.living_room_thermostat_operation_mode is taking over 10 seconds.
17-04-12 23:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.travel_work_benoit_to_work_jurgen is taking over 10 seconds.
17-04-12 23:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.maximum_disk_temp_volume_2 is taking over 10 seconds.
17-04-12 23:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.soundtouch_bathroom is taking over 10 seconds.
17-04-12 23:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.bureaustandinglampbulb1 is taking over 10 seconds.
17-04-12 23:38:25 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:30
17-04-12 23:38:25 WARNING (MainThread) [homeassistant.components.sensor] Updating uber sensor took longer than the scheduled update interval 0:00:30
17-04-12 23:38:25 WARNING (MainThread) [homeassistant.components.light] Updating flux_led light took longer than the scheduled update interval 0:00:30
17-04-12 23:38:25 WARNING (MainThread) [homeassistant.components.sensor] Updating nest sensor took longer than the scheduled update interval 0:00:30
17-04-12 23:38:25 WARNING (MainThread) [homeassistant.components.sensor] Updating google_travel_time sensor took longer than the scheduled update interval 0:00:30
17-04-12 23:38:25 WARNING (MainThread) [homeassistant.components.sensor] Updating synologydsm sensor took longer than the scheduled update interval 0:00:30
17-04-12 23:38:25 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-12 23:46:12 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-12 23:53:03 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.soundtouch_bathroom is taking over 10 seconds.
17-04-12 23:53:04 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-12 23:53:15 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-12 23:53:26 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-12 23:53:37 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-12 23:53:48 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-13 00:02:27 WARNING (Thread-14) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:27 WARNING (Thread-22) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:27 WARNING (Thread-15) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:27 WARNING (Thread-20) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:26 WARNING (Thread-16) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:27 WARNING (Thread-17) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:27 WARNING (Thread-19) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:27 WARNING (Thread-21) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:27 WARNING (Thread-18) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 00:02:29 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-13 00:02:26 ERROR (Thread-8) [homeassistant.components.sensor.speedtest] Error executing speedtest: Command '['/srv/homeassistant/bin/python3', '/home/homeassistant/.homeassistant/deps/speedtest.py', '--simple']' returned non-zero exit status -9
17-04-13 00:02:31 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from nmap_tracker took longer than the scheduled scan interval 0:00:20
17-04-13 00:02:32 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-13 00:07:35 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-13 00:07:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.soundtouch_bathroom is taking over 10 seconds.
1 Like

What HASS version are you on?

Is the CPU on the Pi running high?

Are there any other services running on the pi that might make it busy?

I have homebridge running on my pi (a pi2). Sometimes it flips out after a restart of HASS (and even reboot) as it is not finding HASS and causing heaps of errors and traffic on the pi, slowing everything else dosn.

I setup a command line script to restart the homebridge service, and I also monitor my disk usage & CPU usage to help diagnose if those things are happening.

Just some thoughts - can’t share config right now as I am at work.

Hope this helps

I’m going to put some monitoring on CPU load. Hopefully that gives some insight.
The RPI3 is used only for Home Assistant and affiliated services (Flicd, Mosquitto, Happy Bubbles Presence server). I disabled WIFI as I have the RPI3 connected immediately to my router.

Last night was a lot of fun again…

17-04-13 01:47:10 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-13 02:00:17 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.soundtouch_living_room is taking over 10 seconds.
17-04-13 02:00:18 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-13 02:34:40 WARNING (Thread-17) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 02:34:40 WARNING (Thread-18) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 02:34:41 WARNING (Thread-19) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 03:24:48 WARNING (Thread-20) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 03:24:48 WARNING (Thread-22) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 03:24:48 WARNING (Thread-21) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 03:46:34 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-13 03:47:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.soundtouch_living_room is taking over 10 seconds.
17-04-13 03:47:41 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-13 03:47:52 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-13 03:48:03 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
17-04-13 03:48:04 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.soundtouch_living_room fails
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 356, in _make_request
    conn.request(method, url, **httplib_request_kw)
  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 "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x6dd81970>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 649, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 376, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.119', port=8090): Max retries exceeded with url: /now_playing (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x6dd81970>: Failed to establish a new connection: [Errno 113] No route to host',))

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 225, in async_update_ha_state
    None, 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/media_player/soundtouch.py", line 263, in update
    self._status = self._device.status()
  File "/home/homeassistant/.homeassistant/deps/libsoundtouch/device.py", line 238, in status
    self.refresh_status()
  File "/home/homeassistant/.homeassistant/deps/libsoundtouch/device.py", line 96, in refresh_status
    "http://" + self._host + ":" + str(self._port) + "/now_playing")
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/adapters.py", line 487, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.1.119', port=8090): Max retries exceeded with url: /now_playing (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x6dd81970>: Failed to establish a new connection: [Errno 113] No route to host',))
17-04-13 03:48:17 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.soundtouch_living_room fails
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 356, in _make_request
    conn.request(method, url, **httplib_request_kw)
  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 "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x6dd02fb0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 649, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 376, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.119', port=8090): Max retries exceeded with url: /now_playing (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x6dd02fb0>: Failed to establish a new connection: [Errno 113] No route to host',))

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 225, in async_update_ha_state
    None, 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/media_player/soundtouch.py", line 263, in update
    self._status = self._device.status()
  File "/home/homeassistant/.homeassistant/deps/libsoundtouch/device.py", line 238, in status
    self.refresh_status()
  File "/home/homeassistant/.homeassistant/deps/libsoundtouch/device.py", line 96, in refresh_status
    "http://" + self._host + ":" + str(self._port) + "/now_playing")
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/requests/adapters.py", line 487, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.1.119', port=8090): Max retries exceeded with url: /now_playing (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x6dd02fb0>: Failed to establish a new connection: [Errno 113] No route to host',))
17-04-13 04:33:21 WARNING (Thread-16) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 04:33:21 WARNING (Thread-15) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 04:33:21 WARNING (Thread-14) [pychromecast.socket_client] Heartbeat timeout, resetting connection
17-04-13 04:33:22 ERROR (Thread-16) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
17-04-13 04:33:22 ERROR (Thread-15) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
17-04-13 04:33:22 ERROR (Thread-14) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
17-04-13 04:52:05 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-13 05:56:05 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-13 06:44:57 WARNING (MainThread) [homeassistant.helpers.entity] Update for light.bednightlamp_jurgen is already in progress
17-04-13 06:44:57 WARNING (MainThread) [homeassistant.helpers.entity] Update for light.bednightlamp_benoit is already in progress
17-04-13 07:00:18 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-13 07:57:59 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-13 09:01:50 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-04-13 10:05:21 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host

All those errors appear to be related to connections - are you able to connect to the devices from your Pi at the command line? I’m wondering if you’ve got some kind of firewall in place that is causing the problems.

No firewall, all these devices work fine most of the time. Issue occurs with connections to devices within my own LAN (e.g. my SoundTouch speaker in the above log), but also to the Uber platform, Google Calendar, etc…
Every time, I check if there was a general issue, nothing though…

When it happens, does it happen to ALL your ‘remote’ devices? Or just certain ones? And if it is just certain ones, does it always happen to the same devices?

Nope, never a general problem. That would have been easier… There is no pattern… Except maybe that Chromecast timeouts happen every night… But I did read once here that this was something other people recognized too.

Is it possible that you have some power fluctuations?
Sometimes see the light going a little darker, then normal or so?
Maybe you can find something in /var/log/syslog.
Ever seen the power led on the pi going off?
https://www.raspberrypi.org/forums/viewtopic.php?t=82373

Crazy problems, just an idea.
Good luck!

To try and determine whether the problem is with HA/the Pi, try setting up a script on another machine (such as your desktop) that pings one of the devices continually and logs the output (with the time). You could do the same thing from the Pi as well. Then when you see the problem device come up in the HA log, look at your ping log and see if the problem happens from the Pi and/or other machine as well.

That will at least tell you whether the problem is internal to HA, the Pi, or generally unavailable everywhere.

I had the same … took longer than the scheduled update interval 0:00:10 error on all of my components.
Automations didn’t work anymore, strange switch behavior.
Not sure when the problem started (Not so active in the Domotica at the moment), but I think it was with one of the latest updates.
After stopping Home Assistant and deleting the home-assistant_v2.db file everything was fine again.

Problem is back, deleting the database is temporary workaround.

I shutdown HASS for now because my house turned into a ghost house with all the failing automations and scripts.

:sob:

I am new to home assistant… I am seeing this as well seems the only cure right now is to restart the daemon… Running on an RPi3

You may want to head over the the gitter chat and ask there.

I turned off/on the power strip powering my Pi, router, and modem, to restart my internet, then was getting: OSError: [Errno 113] No route to host (Along with a ton of other connection issues.)

It turned out my problem was with my router re-assigning the Pi’s local IP from 192.168.1.129 to 192.168.1.2 and Home Assistant getting confused. My Netgear router has an “Address Reservation” area where I can set static local IP’s though, so I reserved 192.168.1.129 for my Home Assistant Pi and reserved other local IP’s for my other devices, which fixed the problem.

Here are the other HomeAssistant components that require static local IP’s in my own configuration.yaml. I’m sure there are many other components that require the same:
platform: wake_on_lan, platform: broadlink, platform: kodi, platform: tplink, platform: cast, mqtt:

2 Likes

Hey Farstreet,

Did you solve the issue (and how did you succeed)?

Having the same problems here…

mny

1 Like