Hi,
I just updated home-assistant from 0.25 to 0.30.2. And now the influxdb connection seems to be not working any more. I tried logging onto the database, checking permission for the home-assistant user and nothing has changed. It also works fine to access it through grafana. I also have another service that pushes stats onto it and that also still works fine.
I didn’t notice any changes in how influxdb is supposed to be set up in the release notes and nor in the wiki/config-help. Only thing that seems to have happened is that there’s a non customizeable timeout added which seem to have something to do with the errors popping up for me.
Has this happened for anyone else?
23:49:19 hass[12940]: ERROR:homeassistant.bootstrap:Error during setup of component influxdb
23:49:19 hass[12940]: Traceback (most recent call last):
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 393, in _make_request
23:49:19 hass[12940]: six.raise_from(e, None)
23:49:19 hass[12940]: File "<string>", line 2, in raise_from
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 389, in _make_request
23:49:19 hass[12940]: httplib_response = conn.getresponse()
23:49:19 hass[12940]: File "/usr/lib/python3.4/http/client.py", line 1227, in getresponse
23:49:19 hass[12940]: response.begin()
23:49:19 hass[12940]: File "/usr/lib/python3.4/http/client.py", line 386, in begin
23:49:19 hass[12940]: version, status, reason = self._read_status()
23:49:19 hass[12940]: File "/usr/lib/python3.4/http/client.py", line 348, in _read_status
23:49:19 hass[12940]: line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
23:49:19 hass[12940]: File "/usr/lib/python3.4/socket.py", line 374, in readinto
23:49:19 hass[12940]: return self._sock.recv_into(b)
23:49:19 hass[12940]: socket.timeout: timed out
23:49:19 hass[12940]: During handling of the above exception, another exception occurred:
23:49:19 hass[12940]: Traceback (most recent call last):
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 423, in send
23:49:19 hass[12940]: timeout=timeout
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 640, in urlopen
23:49:19 hass[12940]: _stacktrace=sys.exc_info()[2])
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/retry.py", line 261, in increment
23:49:19 hass[12940]: raise six.reraise(type(error), error, _stacktrace)
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/packages/six.py", line 686, in reraise
23:49:19 hass[12940]: raise value
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
23:49:19 hass[12940]: chunked=chunked)
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 395, in _make_request
23:49:19 hass[12940]: self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 315, in _raise_timeout
23:49:19 hass[12940]: raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
23:49:19 hass[12940]: requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=8086): Read timed out. (read timeout=5)
23:49:19 hass[12940]: During handling of the above exception, another exception occurred:
23:49:19 hass[12940]: Traceback (most recent call last):
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 102, in _setup_component
23:49:19 hass[12940]: result = component.setup(hass, config)
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/influxdb.py", line 75, in setup
23:49:19 hass[12940]: influx.query("select * from /.*/ LIMIT 1;")
23:49:19 hass[12940]: File "/var/lib/home-assistant/deps/influxdb/client.py", line 336, in query
23:49:19 hass[12940]: expected_response_code=expected_response_code
23:49:19 hass[12940]: File "/var/lib/home-assistant/deps/influxdb/client.py", line 245, in request
23:49:19 hass[12940]: timeout=self._timeout
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 475, in request
23:49:19 hass[12940]: resp = self.send(prep, **send_kwargs)
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 596, in send
23:49:19 hass[12940]: r = adapter.send(request, **kwargs)
23:49:19 hass[12940]: File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 499, in send
23:49:19 hass[12940]: raise ReadTimeout(e, request=request)
23:49:19 hass[12940]: requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8086): Read timed out. (read timeout=5)