-
Notifications
You must be signed in to change notification settings - Fork 108
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
[Bug] Crash when adding or updating OAuth2 datasources in latest grafana #668
Comments
We are experiencing the same issue on v 2.0.0 and v 1.4.1 |
Hi Team, we are also experiencing the same issue, can we get someone to look into this issue? |
@paige-muon v2.0.0 and v1.4.1 |
@aps-net these are plugin versions for the datasource, the grafana version should be >=8.4.7 |
Ohh yea it is v10.2.0-60477 |
@yesoreyeram The oauth2 authentication is totally broken with grafana 10.2. I have tried updating via the UI and the API with no luck. With the API update of the datasource, it appears to not be able to write the token at all since the datasource reports unauthorized. |
+1 |
1 similar comment
+1 |
I am also facing this issue: +1 |
+1 |
2 similar comments
+1 |
+1 |
Just back to work after a break. I will take a look later this week. Meantime, workaround is to use older version of grafana or use grafana http api to configure the datasource or use grafana datasource provisioning or things such as terraform to configure the datasource. ( I can confirm that this is just a UI bug but the underlying functionality not affected ) |
Any update on this? I'm not sure what the work around is. Grafana v10.3.0-62882 (dd773e74f1) |
I have tried to implement the workaround via the HTTP API, with no luck so far. Could use some guidance as I am not too familiar with the Grafana API, particularly with using the Cloud instance. Using a Grafana cloud instance here. I have attempted to use the HTTP API to configure a new Data source but cannot get it to work.
First used the GET Data sources to see my other data sources. This works and I see the standard Grafana Cloud Data sources (Alertmanager, Loki, Prometheus, etc.) but no Infinity data sources. Next tried to create a Data source.
This Worked, on the API level, but I do not see this Data source in Grafana. Does someone have an example of the HTTP api for creating a working Infinity Data source on a Cloud instance? Or perhaps someone can point out an obvious issue I am missing. |
Wow, Workarounds
I use this plugin to remove all of the above complexities, I'm a novice at this and built a dashboard for demonstrations. I have a cloud instance of Grafana, so the simple workaround (1) is may not be available to me? is there a way to tell the cloud to use an older instance? |
So it did work, just needed to wait about 20-30 minutes until the Cloud Instance refreshed, or manually trigger the instance to reset. Made some additional tweaks to the body for it to work with my requirements. In my case I use Oauth2 Client Credentials. POST
Can trigger a reset of the instance with I will share a Postman collection that should help anyone that has a Cloud Instance. Please note, it is not possible to delete this via Grafana, can only delete via API |
@Av8tor101 My colleague confirmed that downgrading to 10.0.x works. He had Grafana Support downgrade his Cloud instance. Alternative, you can try via API. Just fork it, change the variables, and make modifications to the |
Actually, I published v2.1.0 which included some fix along with other features. But unfortunately the fix didn't help. Also noticing this happening only on grafana cloud. I am planning to work on the follow-up fix later this weekend. Sorry for the trouble. Meantime, feel free to use the workarounds suggested. |
@yesoreyeram the latest version 2.2.0 (which fixes this bug) is not available via https://grafana.com/grafana/plugins/yesoreyeram-infinity-datasource. Is there a reason why? |
It is already in grafana plugin review process queue. Usually it will take a day or two. |
@yesoreyeram...didn't know that. Then it should be available in the next few days. Thanks for the quick reply |
New version 2.2.1 is now available in grafana cloud for download with this fix. Let me know if anyone still having issue |
Thank you @yesoreyeram!! |
@yesoreyeram still facing the issue in grafana Cloud with version 2.1 installed which are the newest version avalible for download in grafana cloud. |
Can you provide more details? what error you are seeing and how to reproduce? @JesperBaertel |
Describe the bug
"An unexpected error happened" when adding OAuth2 client secret to a datasource, or when editing a datasource with OAuth2 enabled.
For example, I set up an azure AD app by following instructions on #404 and while I am able to get data from this datasource, I am unable to edit the datasource or add new OAuth2 datasources. I am able to add other types of datasource.
Steps to reproduce
Add new datasource
Use OAuth2 authentication
Fill out the fields
When I type in the field for "client secret" I get redirected to "An unexpected error happened"
When editing an existing datasource using OAuth2, most interactions with the datasource authentication lead to the same issue.
Sample Data
No data other than the error message and the screen recording below
Screenshots
Screen.Recording.2023-09-06.at.10.56.35.AM.mov
Version Details:
Additional context
I'm not sure if this is an issue with grafana or with the datasource itself or some combination of both
The text was updated successfully, but these errors were encountered: