After upgrade 2.27.0 PMM not working, all dashboards have no data

Hi, Team
After upgrading from 2.26.0 to 2.27.0, the Grafana is upgraded to 8.3.5, all dashboards refuse to work.
It complains:

origin not allowed

On almost every page.

Could someone help to figure out this? Thanks

I searched google and find something maybe help: Unable to Create/Save Dashboard after v8.3.5 Update · Issue #45117 · grafana/grafana · GitHub

But when I checked the Nginx config, I find the mentioned workaround is already there.

 # Grafana
    rewrite ^/$ $scheme://$http_host/graph/;
    rewrite ^/graph$ /graph/;
    location /graph {
      proxy_cookie_path / "/;";
      proxy_pass http://127.0.0.1:3000;
      rewrite ^/graph/(.*) /$1 break;
      proxy_read_timeout 600;
      proxy_http_version 1.1;
      proxy_set_header Connection $connection_upgrade;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Host $http_host;
    }

1 Like

I found a way workaround for myself and you can try this:
in your Nginx configuration file using the real domain name replace the $http_host and restart Nginx

# proxy_set_header Host $http_host;
proxy_set_header Host example.com;

It worked for me, hope it can help you also.

1 Like

@Luke03011 I have a small question, do you have a proxy in front of PMM? nginx or something like this?

1 Like

Hi, @nikita.beletskii I Think I got you. I thought you mean the Nginx in PMM docker, but soon I realize you mean Nginx on the host running the docker. Yes, I just find there is an Nginx in front of PMM docker.

and after I add

proxy_set_header Host $http_host;

to the Nginx config(the host Nginx not the Nginx in the PMM docker) and reload it, It works fine. Thanks.

2 Likes