Hi!
I have used Hassbian on a Raspberry PI 3 together with InfluxDB for some months now. When going through the log I found this entry recurringly. It seems that writing data works sometimes, but not always. Any ideas on what might be the problem?
> 2019-01-15 17:32:38 DEBUG (InfluxDB) [homeassistant.components.influxdb] Wrote 1 events
> 2019-01-15 17:33:46 ERROR (InfluxDB) [homeassistant.components.influxdb] Write error
> Traceback (most recent call last):
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 384, in _make_request
> six.raise_from(e, None)
> File "<string>", line 2, in raise_from
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 380, in _make_request
> httplib_response = conn.getresponse()
> File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
> response.begin()
> File "/usr/lib/python3.5/http/client.py", line 297, in begin
> version, status, reason = self._read_status()
> File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
> line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
> File "/usr/lib/python3.5/socket.py", line 576, in readinto
> return self._sock.recv_into(b)
> socket.timeout: timed out
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 449, in send
> timeout=timeout
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 638, in urlopen
> _stacktrace=sys.exc_info()[2])
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/retry.py", line 367, in increment
> raise six.reraise(type(error), error, _stacktrace)
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/packages/six.py", line 686, in reraise
> raise value
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 600, in urlopen
> chunked=chunked)
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 386, in _make_request
> self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
> File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 306, in _raise_timeout
> raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
> urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=8086): Read timed out. (read timeout=5)
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/influxdb.py", line 316, in write_to_influxdb
> self.influx.write_points(json)
> File "/srv/homeassistant/lib/python3.5/site-packages/influxdb/client.py", line 490, in write_points
> tags=tags, protocol=protocol)
> File "/srv/homeassistant/lib/python3.5/site-packages/influxdb/client.py", line 551, in _write_points
> protocol=protocol
> File "/srv/homeassistant/lib/python3.5/site-packages/influxdb/client.py", line 327, in write
> headers=headers
> File "/srv/homeassistant/lib/python3.5/site-packages/influxdb/client.py", line 267, in request
> timeout=self._timeout
> File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 533, in request
> resp = self.send(prep, **send_kwargs)
> File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 646, in send
> r = adapter.send(request, **kwargs)
> File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 529, in send
> raise ReadTimeout(e, request=request)
> requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8086): Read timed out. (read timeout=5)
> 2019-01-15 17:34:16 ERROR (InfluxDB) [homeassistant.components.influxdb] Resumed, lost 3 events
> 2019-01-15 17:34:16 DEBUG (InfluxDB) [homeassistant.components.influxdb] Wrote 1 events