-
Notifications
You must be signed in to change notification settings - Fork 298
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
OSS OnCall fails to set-up connection to Grafana Cloud OnCall: "Invalid token" #5214
Comments
I reported a similar issue on the forum a while ago. I have screenshots of how to reproduce this issue: https://community.grafana.com/t/trying-to-connect-selfhosted-grafana-to-cloud-oncall/129985/6 In our case we are using plugin version 1.11.3, but we also had this issue with 1.9.22 and with some earlier version. Our grafana version 10.4.1 in self-hosted kubernetes. |
This sounds like related to #5100 |
We have managed to fix this problem by specifying grafana cloud on call api URL in the environment: Our cloud grafana is in europe not US. We have a new consecutive problem that the IRM app sparingly scans (registers) the QR code, for both the OSS & cloud version. However that is a separate problem so I will close this issue. |
I am using helm to deploy an OSS copy of Grafana and Grafana OnCall separately. @sirvincent Where did you set that environment variable? On Grafana? On the Oncall OSS deployment? Both? Elsewhere? |
I set it in the x-environment: &oncall-environment
GRAFANA_CLOUD_ONCALL_API_URL: https://oncall-prod-eu-west-0.grafana.net/oncall I do not know how to set environment variables for the production helm install. |
You can add it to the env:
GRAFANA_CLOUD_ONCALL_API_URL: https://oncall-prod-eu-west-0.grafana.net/oncall |
Thanks sirvincent for posting your solution. I think this should be mentioned somewhere in the readme, as it caught me out too. |
I agree, I opened a pull request for it, because I was blocked on setting up OnCall for several months over this issue |
@youve Brilliant! thank you for doing the work I did not have the time/willpower to do :) |
What went wrong?
What happened:
What did you expect to happen:
How do we reproduce it?
Grafana OnCall Version
v1.11.3
Product Area
API
Grafana OnCall Platform?
Docker
User's Browser?
firefox 131.0.2
Anything else to add?
For the complete picture:
We run locally grafana OSS version 11.2.2 but use our cloud dashboard API key.
Which communicates to Grafana OnCall OSS (v1.11.3) within it's docker container.
I do not see anything strange, no errors or similar, in the grafana logs, docker celery and engine logs.
The text was updated successfully, but these errors were encountered: