InfluxDB database is not accessible due to ‘401

Hi,

After todays update I get the folowing fault:

Blockquote
Logger: homeassistant.components.influxdb
Source: components/influxdb/init.py:479
Integration: InfluxDB (documentation, issues)
First occurred: 10:05:33 (143 occurrences)
Last logged: 12:27:37

InfluxDB database is not accessible due to ‘401: {“error”:“authorization failed”}’. Please check that the database, username and password are correct and that the specified user has the correct permissions set. Retrying in 60 seconds.

This fault started after the opdate!

Regards,

Remco

ever figure this out? I’m having the exact same issue

Same here, this issue remains. Does does end up going into InfluxDB, as I can see it in Grafana, but the log is full of these 401 entires.

Just to keep this alive - have the same issue now.

Logger: homeassistant.components.influxdb.sensor
Source: components/influxdb/sensor.py:167
Integration: InfluxDB (documentation, issues)
First occurred: 16:15:19 (7 occurrences)
Last logged: 16:29:03

Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='a0d7b954-influxdb', port=8086): Max retries exceeded with url: /query?q=SHOW+DATABASES%3B (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b6f73a0>: Failed to establish a new connection: [Errno 111] Connection refused'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible.
InfluxDB database is not accessible due to '401: {"error":"authorization failed"}'. Please check that the database, username and password are correct and that the specified user has the correct permissions set.

I’ve installed InfluxDB just now and have the same problem!

First time ever I try to setup InfluxDB to try and work with grafana and getting the same error and can’t find a solution…

also having this error

I had the “error reading InfluxDB. Status Code: 401” issue as well.
I had just installed the InfluxDB and Grafana Addons for the first time.

The solution that worked for me was to go into the Configuration tabs for BOTH of the addons and disable the SSL toggle, and restart the addons.

I then deleted and recreated my datasource in Grafana.
(I’m not certain if recreating was required.)

Just a reminder to anyone still having trouble with this. The default is pointed to either localhost or Grafana cloud, so make sure you’re setting the proper host and port settings in your yaml file.

today i also installed influxdb for the first time.

I had the same issue and tried everything i found online:
Disabled ssl
changed the port nr
changed the hostname
nothing did really help.

Then i recreated the db and the user.
This time both in plain text no numbers or signs.

That solved my problem.
I hope this is usefull for someone.

1 Like