Failed image rendering - Unauthorized request

  • What Grafana version and what operating system are you using?
    Win10 Enterprise LTSC (1809 b: 17763.3532),
    Grafana v9.0.4 (c25601297)

  • What are you trying to achieve?
    Render static image for panel

  • How are you trying to achieve it?
    Image rendering plugin

  • What happened?
    Panel>Share> Direct link rendered image>Rendering failed.

  • What did you expect to happen?
    Rendered image

  • Can you copy/paste the configuration(s) that you are having problems with?
    default configuration for rendering plugin

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    logger=rendering renderer=plugin t=2022-11-03T15:31:24.0344825+01:00 level=info msg=Rendering path=“d-solo/PzBgXWI4k/turbina-t1?orgId=2&refresh=5s&from=1667399017410&to=1667485417410&panelId=2&width=1000&height=500&tz=Europe%2FWarsaw”
    logger=rendering renderer=plugin t=2022-11-03T15:31:24.0376857+01:00 level=debug msg=“Calling renderer plugin” req=“url:"http://grafana.staged-by-discourse.com/d-solo/PzBgXWI4k/turbina-t1?orgId=2&refresh=5s&from=1667399017410&to=1667485417410&panelId=2&width=1000&height=500&tz=Europe%2FWarsaw&render=1\” width:1000 height:500 deviceScaleFactor:1 filePath:"C:\\Program Files\\GrafanaLabs\\grafana\\data\\png\\dV1DlP894DnHgTEw2bfk.png" renderKey:"ChXwRoNFerJWWckmzNuO0F1FKaaF8sTI" domain:"localhost" timeout:60 timezone:"Europe/Warsaw" headers:{key:"Accept-Language" value:{values:"pl,en-US;q=0.7,en;q=0.3"}}"
    logger=context traceID=00000000000000000000000000000000 userId=1 orgId=2 uname=admin t=2022-11-03T15:31:24.0437867+01:00 level=error msg=“Rendering failed.” error=“rpc error: code = Unauthenticated desc = Unauthorized request”
    logger=context traceID=00000000000000000000000000000000 userId=1 orgId=2 uname=admin t=2022-11-03T15:31:24.0442648+01:00 level=error msg=“Request Completed” method=GET path=/render/d-solo/PzBgXWI4k/turbina-t1 status=500 remote_addr=10.217.80.23 time_ms=13 duration=13.1765ms size=1344 referer= traceID=00000000000000000000000000000000

  • Did you follow any online instructions? If so, what is the URL?
    Troubleshooting | Grafana documentation

Additional notes:
After request for rendering folder C:\Program Files\GrafanaLabs\grafana\data\png is still empty.
I set permision for all users for this folder.

having the same problem. Cant find a solution

I had a similar issue and upgraded both Grafana and Grafana Image Renderer to latest versions. This fixed the issue. Take a look at this: Security release: New versions of Grafana and Grafana Image Renderer with a high severity security fix for CVE-2022-31176 | Grafana Labs

1 Like

Updated to [v9.2.3 (ec9c2ed029)] and image rendering works. Thanks