InfluxDB suddenly can't connect. But entries are persisting

Hi,

Sinds a couple of days, i’ve found this:

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 checked the credentials with a influxdbviewer, and it all works. Even when i check entries of, let’s say, 5 minutes ago, i’ll see new ones in the database. So, it seems it still works. But why is HA giving this error message? I don’t get it.

I’m using the default InfluxDB plugin on HA.

anyone? This still occurs:

Logger: homeassistant.components.influxdb.sensor
Source: components/influxdb/sensor.py:149
Integration: InfluxDB (documentation, issues)
First occurred: 5 maart 2021 11:38:35 (928 occurrences)
Last logged: 9:52:27

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.

Nevermind, found it!

It seems that you’ll also need to enter credentials in sensors of influxdb. Which i hadn’t.

So i added:

username: !secret influxdb_user
password: !secret influxdb_pass

Have a nice day! :slight_smile:

Unfortunately not.

Cannot quick reload all YAML configurations because the configuration is not valid: Error loading /config/configuration.yaml: Secret influxdb_user not defined

The real user/password of the used database in InfluxDB don`t work either.