Grafana on nginx gives {"message":"invalid username or password","traceID":""}

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?
    Access remotely over nginx

  • How are you trying to achieve it?
    the normal way

  • What happened?
    No matter how I configure, I get the error {"message":"invalid username or password","traceID":""}

  • What did you expect to happen?
    Got to the login screen

  • Can you copy/paste the configuration(s) that you are having problems with?
    I have this in the nginx config

    location /dashboard/ {
        proxy_set_header Host $http_host;

I first had to change the admin password from the initial one. Then I had to set up the nginx config like this

location /dashboard/ {
        proxy_set_header Host $http_host;

and then set up the grafana config like this

domain =
root_url = %(protocol)s://%(domain)s:%(http_port)s/dashboard/
serve_from_sub_path = true