PluginAppClientSecret not set in config
What went wrong?
What happened:
- Fresh install of everything, ran the curls per the README.
- /api/plugins/grafana-oncall-app/resources/plugin/status returns
PluginAppClientSecret not set in config
What did you expect to happen:
- Oncall to create it's Service account
How do we reproduce it?
- Fresh install of Grafana and oncall
- follow README
- Check status api
Grafana OnCall Version
1.11.3
Product Area
Other
Grafana OnCall Platform?
Docker
User's Browser?
No response
Anything else to add?
No response
The same issue with standalone grafana latest and oncall plugin latest
logger=plugin.grafana-oncall-app t=2024-10-23T19:36:10.084977473Z level=error msg="Error getting settings from context" error="PluginAppClientSecret not set in config"
I have been able to confirm that downgrading grafana to 11.2.3 fixes the issue
This also affects existing Grafana installations recently upgraded to v11.3, rendering OnCall unable to be viewed from Grafana.
It looks like if I remove the service account it doesn't create a new one on Grafana v11.3. But if I downgrade to v11.2.3 is does create the service account.
I uninstalled plugin, installed it. That's how I checked this.
see also #5100
I'm running Grafana 11.4.0 and Grafana Oncall Engine 1.13.11 and Grafana OnCall App Plugin 1.13.11 and I had this same error.
The solution in this comment #3761 worked for me
I'm running Grafana 11.4.0 and Grafana Oncall Engine 1.13.11 and Grafana OnCall App Plugin 1.13.11 and I had this same error.
The solution in this comment #3761 worked for me
Still experiencing the issue when upgrading. Running in k8s using OSS and 2 replicas
I ran into the same problem, and the solution is given here: #5100 Ensuring that in the grafana.ini these feature_toggles are set:
[feature_toggles]
accessControlOnCall = false
enable = externalServiceAccounts
and that the grafana container has the following environment variable:
GF_AUTH_MANAGED_SERVICE_ACCOUNTS_ENABLED=true
fixed it for me.
This is also what has been done in this commit
Why is it always OnCall that requires so many dumb workarounds?...
I use Kubernetes and thus configure Grafana entirely through the environment. Any alternative to putting these settings in place?
Thanks!
@senpro-ingwersenk frankly speaking I prefer bitnami charts comparing to grafana's, so I managed that. I think the approach might be similar:
- create the config map, like:
- apiVersion: v1 kind: ConfigMap metadata: name: grafana-oncall-plugin-provisioning data: # ref.: https://github.com/grafana/oncall/issues/4829#issuecomment-2567046523 # stackid should be set to 5 and orgid 100 for all self hosted instances grafana-oncall-app.yaml: | apiVersion: 1 apps: - type: grafana-oncall-app name: grafana-oncall-app disabled: false jsonData: stackId: 5 orgId: 100 onCallApiUrl: http://grafana-oncall-engine:8080 #grafanaUrl: http://grafana:3000 - then mount that into grafana container to
...conf/provisioning/plugins/grafana-oncall-app.yamlwith extravolumes
Seriously facing this issue. Not being able to setup oncall since 2 months.
@weibeu After each Grafana restart, OnCall goes goldfish-brain and forgets its whole self, with this very error. What I have done is, after each restart, where this happens, I run this command:
curl -k -X POST 'https://grafana.yourdomain.tld/api/plugins/grafana-oncall-app/settings' \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"jsonData": {
"stackId": 5,
"orgId": 1,
"onCallApiUrl": "https://oncall.grafana.youromain.tld/",
"grafanaUrl": "https://grafana.yourdomain.tld/"
}
}' \
-u '[email protected]:yourpasswordhere'
These are the steps:
- After it restarts, I log in and head straight to the OnCall tab in the menu.
- Click the blue "Configure now" button
- Click the red "Disable" button in the top right
- Click the now blue "Enable" button
- Refresh the config page once
- Run the above command - twice. (sometimes it needs that and idk why...)
- Refresh the config page, and click the blue button - now OnCall works.
I have no idea why this extra metadata is needed or what the heck the grand idea with all of this was/is if it can not be set in the GUI. And if we hadn't put a triple-digit amount of hours into our setup here, we'd have switched. This is annoying as fuck.