Grafana upgrade to 8.4.3 break the datasource

Hi there,

Today I just upgraded the Grafana from 8.3.5 to 8.4.3, suddenly grafana can’t show the dashboard content from any datasource, elasticsearch, prometheus…
The problem is Grafana show origin not allowed, even I want to add new datasource.
I use Mariadb as grafana backend.
I also tried to reinstall from scratch of the grafana except the grafana.ini that I already copied to other location and change the default grafana.ini from fresh installation.

Also, i use nginx as reverse proxy and already add the config as follow:

      proxy_pass          http://grafana.staged-by-discourse.com;
      proxy_read_timeout  90;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-Host $host;
      proxy_set_header X-Forwarded-Server $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

The strange condition is that I could not add new datasource, modified datasource, so the result of the dashboard always broken.

Other information:
There a Loadbalancing in front of nginx using openresty. I already add the config:
proxy_set_header Host $host; in the openresty, but no luck.

Is there any workaround to solve this issue?

Regards,
Fadjar Tandabawana

Hi @fadjar340

there was a change made to how Grafana handles some headers. It was buried in a changelog and lots of folks missed it. See here for solution:

2 Likes

The install instructs have been updated as well:

2 Likes

Thanks @mattabrams

Already solved…
I have wrong node in the reverse proxy… :rofl:

Regards,
Fadjar T

1 Like