grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.53k stars 292 forks source link

If Grafana https enabled, oncall does not start, status 500 #5252

Open StefanSa opened 2 weeks ago

StefanSa commented 2 weeks ago

What went wrong?

What happened: As soon as you activate https in Grafana, the oncall app does not start with this error message.

t=2024-11-12T20:42:27.543981299Z level=error msg="Error getting user" error="failed to parse JSON response: invalid character 'C' looking for beginning of value body=Client sent an HTTP request to an HTTPS server.\n"

t=2024-11-12T20:42:27.544508774Z level=error msg="Request Completed" method=GET path=/api/plugins/grafana-oncall-app/resources/plugin/status status=500 remote_addr=10.82.234.130 time_ms=22 duration=22.982466ms size=173 referer=https://grafana.testgroup.local:3000/plugins/grafana-oncall-app handler=/api/plugins/:pluginId/resources/* status_source=downstream

What did you expect to happen: That oncall also works with activated https on Grafana.

How do we reproduce it?

activate https in grafana.ini

Grafana OnCall Version

v1.12.1

Product Area

Helm/Kubernetes/Docker

Grafana OnCall Platform?

Docker

User's Browser?

No response

Anything else to add?

No response

sirvincent commented 1 week ago

Did you try re-provisioning the plugin after activating https on grafana? Maybe #5197 might help by provisioning with a service token (change those grafana http calls to https)

bpedersen2 commented 14 hours ago

Make sure your oncall configuration is adjusted as well:

GRAFANA_API_URL= https://....

or in the helm chart

externalGrafana:
  url: https://<....>