I’m having a problem with InfluxDB that I just noticed. I’m getting this error message in my log:
2019-04-25 17:28:28 WARNING (SyncWorker_14) [homeassistant.components.influxdb] Database host is not accessible due to ‘HTTPConnectionPool(host=‘a0d7b954-influxdb’, port=8086): Max retries exceeded with url: /write?db=homeassistant (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fc99de3f780>: Failed to establish a new connection: [Errno -2] Name does not resolve’))’, please check your entries in the configuration file (host, port, etc.) and verify that the database exists and is READ/WRITE. Retrying again in 60 seconds.
This made me think it couldn’t resolve the host name, but I’m using the one from the guide in my config. It looks like this:
So the influxDB addon is clearly broken. If it’s not going to be fixed, please let us know, remove it from the add-on’s and I’ll figure out some other way to make it work.
I’m not trying to be a jerk about this, but it seems like this issue is being ignored.
Wed May 08 2019 21:11:27 GMT+0200 (heure d’été d’Europe centrale)
Database host is not accessible due to ‘HTTPSConnectionPool(host=‘a0d7b954_influxdb’, port=8086): Max retries exceeded with url: /write?db=home_assistant (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9f4329b0>: Failed to establish a new connection: [Errno -2] Name does not resolve’))’, please check your entries in the configuration file (host, port, etc.) and verify that the database exists and is READ/WRITE. Retrying again in 60 seconds.
I can’t seem to find a simple, consistent tutorial on how to configure InfluxDB. When I tried it in March, it worked right away. I told myself that I had a lot to learn to set up the queries and graphs that I wanted, so I set it aside to develop the rest of my automation sytem unitl July, accepting all the HA and HASSIO updates along the way. Then InfluxDB no longer worked and still doesn’t after repeated reinstalls.
Cannot connect to InfluxDB due to ‘HTTPConnectionPool(host=‘a0d7b954_influxdb’, port=8086): Max retries exceeded with url: /write?db=home_assistant (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x665d1d78>: Failed to establish a new connection: [Errno -3] Try again’))’. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
Thankyou, worked. Had the same issue. I had to delete the line “prefix: localhost” and then it worked fine. That’s another 12 hours I’ll never get back…
I was thinking this may be my problem. Localhost never works in my application. Where in the configuration (or in this thread for that matter ) is “prefix:localhost” ?
I made fatal change in my ha setup and enabled auto-updates for the influxdb addon. Now all of a sudden (read ha update to latest 2023.02.02) ha is complaing about being unable to connect to the db.
The influxdb itself seems to be running fine, I can check old entries in the WebGUI and my Grafana addon is fine pulling out old data, just no new data is written into the db by ha.
anyone has any pointers what I could try to get it going again?
here the error for reference, looks like the aboves:
Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='a0d7b954-influxdb', port=8086): Max retries exceeded with url: /write?db=homeassistant (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2d54d874c0>: Failed to establish a new connection: [Errno -3] Try again'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
nm, found it. Was more then just the ha update, or in fact it had nothing todo with it or the influx addon. My latest OS updates seem to have enabled apparmor and everything only went smooth again after hard disabling it, even though HA now whines about that it is disabled.
Cannot connect to InfluxDB due to ‘HTTPConnectionPool(host=‘a0d7b954-influxdb’, port=8086): Max retries exceeded with url: /write?db=homeassistant (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f71e7aa4cd0>: Failed to establish a new connection: [Errno 113] Host is unreachable’))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
ffs. spent like an entire day trying all sorts of different settings thinking it was SSL or my reverse proxy. I just copy pasted the hostname from the url, but the url has the underscore and it needs to be a hyphen as you say. Thanks so much!