-
Notifications
You must be signed in to change notification settings - Fork 296
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] Escalation mobile push fail with "HTTP client error 403" while test notif works #3206
Comments
I also had troubles to configure GRAFANA_CLOUD_ONCALL_API_URL using env variables and needed to enable FEATURE_LIVE_SETTINGS_ENABLED. |
Hi @bmalynovytch, thank you for opening an issue! I'm trying to reproduce this now, could you please tell more about how you've passed the
Have you passed this env variable both to |
Hi @vadimkerr |
Sorry @vadimkerr |
So ... I tried providing the token twice, using LiveSettings AND env variable. I tried removing the env variable, I get the 403 error again. There seem to be a big mess with LiveSettings and env variables 😞 |
Glad it's now working for you @bmalynovytch! I'll try to reproduce this and see if there's something we can do about it. |
@bmalynovytch can you please share what exactly and how have you configured GRAFANA_CLOUD_ONCALL_API_URL ? i have oncall in k8s cluster and with all what i've tried I still have token is invalid |
The trick is that you need to provide token twice, one with env variables and another one with an override in LiveSettings. In the helm values, here's the relevant section :
|
yesterday i've tried to add env on grafana instead of oncall on woalla second clikc on connect oncall to cloud go through. So if anyone has the same issue as me try to add this for Grafana
@bmalynovytch thanks for info, I will try it to find what is the difference between that |
@TomasHradecky is this how you solved it? This is currently not working for us, we still get 404 (403 if services:
grafana:
environment:
ONCALL_CLOUD_API_URL: 'https://oncall-prod-eu-west-0.grafana.net/oncall/api/v1/integrations' # we also tried without /api/v1/integrations here
on-call-engine:
environment:
FEATURE_LIVE_SETTINGS_ENABLED: 'true' # should be default anyway
GRAFANA_API_URL: 'http://grafana:3000' # local network url
GRAFANA_CLOUD_ONCALL_API_URL: 'https://oncall-prod-eu-west-0.grafana.net/oncall'
GRAFANA_CLOUD_ONCALL_TOKEN: '<our-cloud-token>'
GRAFANA_CLOUD_NOTIFICATIONS_ENABLED: 'true'
|
@Patrick-Remy |
This was the issue, in compose-setup, only the public accessible endpoint worked! Afterwards it was required to save the token twice in the settings. The first time it resulted in 403 (?!), and just because of frustration we pressed the button again and voilà everything was connected. This is so extremely weird and buggy, thanks a lot for your help! |
happy to help, completely same behavior, just frustration helped to make it work. |
What went wrong?
What happened:
What did you expect to happen:
How do we reproduce it?
Grafana OnCall Version
v1.3.47 (Docker)
Product Area
Alert Flow & Configuration, Mobile App
Grafana OnCall Platform?
Kubernetes
User's Browser?
No response
Anything else to add?
Test notifications are working properly from the user's profile, but logs are seen in "engine" while failing notifications fail in "celery".
Their might be something wrong with GRAFANA_CLOUD_ONCALL_API_URL not being properly set/used in celery, which makes it auth on the default Grafana Cloud platform instead of https://oncall-prod-eu-west-0.grafana.net/oncall as it should.
The text was updated successfully, but these errors were encountered: