InfluxDB/Grafana username and password issue

Hi,

I am just installed InfluxDB and Grafana. Great stuff. I setup some dashboards and got it working as i need. Next day i try to log into home assistant, go to grafana and all of a sudden its asking me to log in again. So i log in, get to the main dashboard, but when i go to a custom dashboard, a pop up appears and asks me for user name and password. I enter it, then it asks again, over and over.

Any idea whats causing this/how to remedy this? Ill try and upload some screen shots.

Here is my config in Hass.io: (Tried with and without the auth variables)

{
  "ssl": false,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "plugins": [],
  "env_vars": [
    {
      "name": "GF_AUTH_ANONYMOUS_ENABLED",
      "value": "true"
    },
    {
      "name": "GF_AUTH_ANONYMOUS_ENABLED",
      "value": "true"
    }
  ]
}

1 Like

Stange… Issue is fixed. I went into user in InfluxDB and reset the passwords, then re-enetered them in Grafana. However the passwords were DEFINITELY correct as they were working 12 hours prior without touching it inbetween.

To my experience for some odd reasons this problems keeps popping up, the solution only works for few hrs.

I think we have the same issue.
A work around is suggested in the link below:

Thanks. I have commented there.

Same issue using a Pi 3+ on Hassio, with the InfluxDB + Grafana add-ons.

Is this a grafana problem, or a hassio / browser thing?

Same here, was working fine, made a graph, could see it getting filled.
At the point making my dashboard a favorite I needed to log in - I have nog login credentials set.

Stil no solution

After some research I took back control ofter te system, by configuring the Grafana Add-In.
Also this made smtp operational zo I can reset my password.

Hope this helpes others out

{
  "plugins": [],
  "env_vars": [
    {
      "name": "GF_SECURITY_ADMIN_PASSWORD",
      "value": "admin"
    },
    {
      "name": "GF_SECURITY_ADMIN_USER",
      "value": "hassio"
    },
    {
      "name": "GF_AUTH_ANONYMOUS_ORG_NAME",
      "value": "Main Org"
    },
    {
      "name": "GF_AUTH_ANONYMOUS_ENABLED",
      "value": "true"
    },
    {
      "name": "GF_SMTP_HOST",
      "value": "192.168.2.4:25"
    },
    {
      "name": "GF_SMTP_ENABLED",
      "value": "true"
    },
    {
      "name": "GF_SMTP_FROM_ADDRESS",
      "value": "[email protected]"
    },
    {
      "name": "GF_SMTP_SKIP_VERIFY",
      "value": "true"
    }
  ]
}

Hi,
can you explain briefly where to mod the code?
I am looking in every folder of the root but i don’t find where to change the password.
Thanks!!!