When I paste that key on https://,y-grafana/a/grafana-oncall-app/cloud I got an “Invalid token” error"
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
On the oncall container I see this log entries:
2023-02-24 15:03:56 source=engine:app google_trace_id=none logger=apps.oss_installation.models.cloud_connector Unable to sync with cloud. GRAFANA_CLOUD_ONCALL_TOKEN is invalid
2023-02-24 15:03:56 source=engine:app google_trace_id=none logger=apps.oss_installation.models.cloud_connector Unable to sync with cloud. GRAFANA_CLOUD_ONCALL_TOKEN is invalid
“The token between my grafana on premise and the grafana cloud was set wrong”
Can you explain please? I have exactly the same problem.
my token looks like b2b67cefd63c54efd6ecfe016a3745a4a2dc455cec000ca73d5b9b84facac242
(32 rand hex)
I had the same problem and fixed it by setting the API URL manually through the environment variable GRAFANA_CLOUD_ONCALL_API_URL. The URL can be found on the Grafana Cloud OnCall settings page.
How does one set this value for non-Docker Grafana deployments? I’m running Grafana from a deb repository and OnCall on a different machine using Docker, as it was a later addition and it has served us well.
But Grafana won’t connect to the cloud instance at all, I checked with tcpdump. So missing this setting seems relevant.