Grafana v11.2.0 hosted - Missing rights in datasource

Hi!
Im trying to configure a new datasource in grafana, and everytime i see this message:
Missing rights
You are not allowed to modify this data source. Please contact your server admin to update this data source.

The user is a Grafana admin AND Organization admin.
Some ideas why this happens?

What datasource are you trying to configure? Is it a built-in one?

Im trying to configure a CheckMK RAW datasource. But after some testing, the message appears in all datasources, new or old:

So who is your Grafana server admin?

That’s the thing. Im the administrator of the instance.
I already searched the DDBB to verify that the user is the administrator, in the org and in grafana.

Provide reproducible example pls.

I dont think i will be able to reproduce. The instance was maintained by another IT before me, and he left 3 months ago.
What i know, is that the original Org was modified or deleted, and now we have an Org with ID1 called administrator.

I would say this messed permissions. I would recreate DB from the scratch. Also keep in mind Grafana admin != Grafana server admin (this is “super” admin).

The admin user is already admin & super-admin (photo below).
image
There is a way to save the users, dashboards…, or at least the library panels from the recreation?

Check HTTP API

Oooook, some news:
Im trying to remake the DDBB from scratch, migrating by hand all the Datasources, panels… etc.
I have the old grafana in sqlite, and the new one works with mysql. Im switching connections between both to lookup data, but now, in the new DDBB, the same message appears:


The new rights of the admin user:
image

After some more investigating and testing, i found the problem:
CSRF was added to grafana in a update (didn’t find which one), and the NGINX config wasnt able to authenticate the admin at 100%.

Updating Nginx with the recommended config solved the issue: Run Grafana behind a reverse proxy | Grafana Labs

1 Like