Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datasource not found error for some users on loading dashboards #371

Closed
shahdevangp opened this issue Apr 28, 2022 · 8 comments
Closed

Datasource not found error for some users on loading dashboards #371

shahdevangp opened this issue Apr 28, 2022 · 8 comments
Labels
datasource/ADX question Further information is requested

Comments

@shahdevangp
Copy link

Hello,

Some users are facing the error "Templating: Failed to upgrade legacy queries Datasource i690Gzynk was not found". See the screenshots. I have built these dashboards and I am able to see the dashboards correctly. I don't get any error. Other users are getting this error. I have double-checked the data source settings, and everything looks ok.

MicrosoftTeams-image (29)
MicrosoftTeams-image (28)

@andresmgot andresmgot added question Further information is requested datasource/ADX labels Apr 28, 2022
@andresmgot andresmgot moved this to Incoming in AWS Datasources Apr 28, 2022
@andresmgot andresmgot moved this from Incoming to Waiting in AWS Datasources Apr 28, 2022
@andresmgot
Copy link
Contributor

andresmgot commented Apr 28, 2022

Hi @shahdevangp,

The problem is that the UID of the data source in your Grafana instance is not the same than the one in which the dashboard is imported. To share a dashboard, you need to create a dashboard variable for the data source. Go to settings > variables and add a new variable for the data source:

Screenshot from 2022-04-28 16-47-35

Then you can reference that variable in your panels:

Screenshot from 2022-04-28 16-50-43

That way, the data source will be dynamically resolved in the importer env.

@shahdevangp
Copy link
Author

We have not imported any dashboards. We have been working in the same instance. Also, if there is a mismatch in the UID, then it should be for everyone and not just for a few users. When I load the dashboard, I don't get any errors. Other users are getting this error.

@andresmgot andresmgot moved this from Waiting to Incoming in AWS Datasources Apr 28, 2022
@andresmgot
Copy link
Contributor

Got it, if it's the same instance then it could be that those users don't have permissions to access the data source?

If that is not the case, to try to reproduce the issue, how have you defined the variables?

@andresmgot andresmgot moved this from Incoming to Waiting in AWS Datasources Apr 28, 2022
@shahdevangp
Copy link
Author

Check the screenshots below on how the variables have been defined.

image
image

@shahdevangp
Copy link
Author

They were able to see the dashboard yesterday. They cant see it today. I can put my finger on what changed between yday and today.

@andresmgot andresmgot moved this from Waiting to Incoming in AWS Datasources Apr 28, 2022
@andresmgot
Copy link
Contributor

The variable definition seems fine.

then it could be that those users don't have permissions to access the data source?

Can you check if this can be the case? Something should have changed in the administration side that caused this, does not seem a plugin issue.

@andresmgot andresmgot moved this from Incoming to Waiting in AWS Datasources Apr 29, 2022
@shahdevangp
Copy link
Author

It was a permission issue. Users were granted the right permissions and this error went away. I think the error message could be more helpful as it did not point to a permission issue.

@yaelleC yaelleC mentioned this issue May 10, 2022
2 tasks
@yaelleC
Copy link
Contributor

yaelleC commented May 10, 2022

Thanks for letting us know @shahdevangp
I have raised an issue to improve our error messaging

Closing this as resolved

@yaelleC yaelleC closed this as completed May 10, 2022
Repository owner moved this from Waiting to Done in AWS Datasources May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/ADX question Further information is requested
Projects
Archived in project
Development

No branches or pull requests

3 participants