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

OnCall was not able to load the current user. Try refreshing the page, (Detail: Non-Existent or Anonymous User). #4894

Open
Krunal-Dharme opened this issue Aug 21, 2024 · 1 comment

Comments

@Krunal-Dharme
Copy link

What went wrong?

What happened:

  • I am getting message like OnCall was not able to load the current user. Try refreshing the page.
    Plugin is connecting to Grafana OnCall but it is not loading and getting OnCall was not able to load the current user. Try refreshing the page.

What did you expect to happen:

  • We should not get the message like OnCall was not able to load the current user. Try refreshing the page.

How do we reproduce it?

  1. Open Grafana OnCall by adding username and password.
  2. Now click on Grafana OnCall Menu and click on OnCall.
  3. Now we will get -> OnCall was not able to load the current user. Try refreshing the page.
Anonymous User

Expected Result: We should not get message like OnCall was not able to load current user (Non-Existent or Anonymous user)

Grafana OnCall Version

v1.3.94

Product Area

Helm/Kubernetes/Docker

Grafana OnCall Platform?

Docker

User's Browser?

Chrome

Anything else to add?

Anonymous User
@mderynck
Copy link
Contributor

mderynck commented Sep 6, 2024

Recommend updating to a newer version of Grafana OnCall, and use Grafana 11

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

2 participants