Error 401 unauthorized grafana image renderer

  • What Grafana version and what operating system are you using? Grafana 12.0.2 on Raspberry Pi 3 Model B Rev 1.2

What are you trying to achieve? Fix the 401 Unauthorized error

How are you trying to achieve this? By reading most of the available documentation on the subject.

What happened? I get a 401 Unauthorized error when using the command curl -H “Authorization: Bearer <MY_TOKEN>” http://localhost:8081/render

What did you expect to happen? Return a success message or something similar.

Can you copy/paste the configuration(s) you’re having trouble with?

version: ‘2’

services:
renderer:
image: grafana-image-renderer-armv7:latest
network_mode: host
environment:
AUTH_TOKEN: MY_TOKEN

Did you receive any errors in the Grafana interface or related logs? If so, please let us know exactly what they were. On the Raspberry Pi terminal, use curl {“statusCode”:401,“error”:“Unauthorized”,“message”:“Unauthorized request”}

Did you follow any online instructions? If so, what is the URL? GitHub - grafana/grafana-image-renderer: A Grafana backend plugin that handles rendering of panels & dashboards to PNGs using headless browser (Chromium/Chrome)

I have already configured the grafana.ini file to accept the same token in the [rendering] and [plugin.grafana-image-renderer] sections but I was unsuccessful. I’m using grafana running on the host, that is, on the raspberry PI itself, so I just created a docker image of grafana-image-renderer