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

v1.9.8 cannot load in Grafana 10 or 11 #4887

Open
fhera opened this issue Aug 21, 2024 · 4 comments
Open

v1.9.8 cannot load in Grafana 10 or 11 #4887

fhera opened this issue Aug 21, 2024 · 4 comments

Comments

@fhera
Copy link

fhera commented Aug 21, 2024

What went wrong?

What happened:

  • After upgrade Grafana and Grafana OnCall versions We can not see anything from Grafana OnCall. If we configure from start and analize network, We can see:

imagen

We have a nginx ingress with a domain prefix, /grafana, to reach Grafana. But in previous picture we can see one call to the Grafana API with domain and without prefix.

If we go to alert group view, we can see this error:

imagen

What did you expect to happen:

  • Plugin works until now.

How do we reproduce it?

  1. Open Grafana OnCall plugin and configure from zero.
  2. We can observe this call to the API with 404 http response.
  3. We can not finish the configuration correctly,

Grafana OnCall Version

v1.9.8

Product Area

Alert Flow & Configuration, API, Helm/Kubernetes/Docker

Grafana OnCall Platform?

Kubernetes

User's Browser?

Firefox

Anything else to add?

No response

@fhera fhera added the bug Something isn't working label Aug 21, 2024
@fhera fhera changed the title v1.9.8 cannot load in Grafana 10/11 v1.9.8 cannot load in Grafana 10 or 11 Aug 21, 2024
@diogenesblip
Copy link

Same problem here

@eirisdg
Copy link

eirisdg commented Aug 22, 2024

Same here, with newer version too.
If we assign to grafana a root_url ending in /grafana, the plugin seems that doesn't do the resurrection, pointing to /api, instead of /grafana/api

@eirisdg
Copy link

eirisdg commented Aug 25, 2024

Solved in 1.9.13
5f5eefb

@mderynck
Copy link
Contributor

mderynck commented Sep 6, 2024

Recently we made some changes to the way Grafana OnCall is initialized. Use 1.9.22, there were quite a few changes along the way from 1.9.0-1.9.22 to get things working.

  • If you are running Grafana 11 and newer you must have externalServiceAccounts feature toggle enabled.
    This has already been enabled in the docker compose files and helm charts in the oncall repo.
  • Plugin settings must be provided to the plugin using an API call if you are installing for the first time (Note: credentials and hostnames need to be adjusted for your configuration, stackId and orgId are expected to be the listed constants in a self-hosted configuration)
curl -X POST 'http://admin:admin@localhost:3000/api/plugins/grafana-oncall-app/settings' -H "Content-Type: application/json" -d '{"enabled":true, "jsonData":{"stackId":5, "orgId":100, "onCallApiUrl":"http://engine:8080/", "grafanaUrl":"http://grafana:3000/"}}'
  • Once settings are configured use this API call to install:
curl -X POST 'http://admin:admin@localhost:3000/api/plugins/grafana-oncall-app/resources/plugin/install'

Grafana OnCall should now be ready to use.
For additional troubleshooting see here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants