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 #4826

Closed
kevingarman opened this issue Aug 14, 2024 · 1 comment
Closed

OnCall was not able to load the current user #4826

kevingarman opened this issue Aug 14, 2024 · 1 comment
Labels
bug Something isn't working more info needed

Comments

@kevingarman
Copy link

kevingarman commented Aug 14, 2024

What went wrong?

What happened:
--I have an existing Grafana install on docker that is sitting behind an nginx reverse proxy
--I've installed OnCall using the "hobby" docker compose file
--In Grafana, I've set the "Oncall backend url" to "http://engine:8080" and it connects ("Connected to OnCall (v1.8.12, OpenSource)")
--In Oncall docker compose file, I have "GRAFANA_API_URL: http://grafana:3000"
--Grafana and Oncall engine containers can ping each other by name
--When I go to any of the Oncall config pages (in grafana), such as "Alerts & IRM --> OnCall --> Settings," I get, "OnCall was not able to load the current user. Try refreshing the page"

What did you expect to happen:
--I would expect the settings page to load
--I'm guessing it's a reverse proxy issue, but it also seems like the oncall engine is ignoring the configured GRAFANA_API_URL

Log Info
--my "oncall_engine" docker conntainer logs, I get....

2024-08-14 17:43:03 source=engine:app google_trace_id=none logger=apps.grafana_plugin.helpers.client Error connecting to api instance 401 Client Error: Unauthorized for url: https://our_external_domain/api/plugins/grafana-incident-app/settings 2024-08-14 17:43:04 source=engine:app google_trace_id=none logger=apps.grafana_plugin.helpers.client Error connecting to api instance 401 Client Error: Unauthorized for url: https://our_external_domain/api/plugins/grafana-labels-app/settings 2024-08-14 17:43:04 source=engine:app google_trace_id=none logger=apps.grafana_plugin.helpers.client Error connecting to api instance 401 Client Error: Unauthorized for url: https://our_external_domain/api/org/users 2024-08-14 17:43:04 source=engine:app google_trace_id=none logger=apps.grafana_plugin.helpers.client Error connecting to api instance 401 Client Error: Unauthorized for url: https://our_external_domain/api/teams/search?perpage=1000000

Grafana OnCall Version

v1.8.12, OpenSource)

Product Area

Other

Grafana OnCall Platform?

Docker

@kevingarman kevingarman added the bug Something isn't working label Aug 14, 2024
@kevingarman
Copy link
Author

I was able to get around this by disabling the enforce_domain = true in the grafana.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more info needed
Projects
None yet
Development

No branches or pull requests

1 participant