question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grafana returns 401 on direct image render link from the image renderer

See original GitHub issue

What happened: Following the instruction on https://grafana.com/docs/grafana/latest/administration/image_rendering/#remote-rendering-service . Image Renderer throws error on unauthorized access to grafana.

What you expected to happen: Image Renderer should be able to call grafana for direct rendered image

How to reproduce it (as minimally and precisely as possible): Following the instruction on https://grafana.com/docs/grafana/latest/administration/image_rendering/#remote-rendering-service

Anything else we need to know?:

Environment:

  • Grafana Image Renderer version: latest
  • Grafana version: 6.5.3
  • Installed plugin or remote renderer service: As a service on a container
  • OS Grafana Image Renderer is installed on: container
  • User OS & Browser: Mac OS / Chrome
  • Others:
1/21/2020 4:48:04 PM{"level":"info","message":"Render request received', 'url', http://grafana:3000/d-solo/N4gOslEWk/grafana-alert-troubleshooting?orgId=1&panelId=2&render=1"}
1/21/2020 4:48:04 PM{"0":"msg","1":"Failed to load resource: the server responded with a status of 401 (Unauthorized)","2":"url","3":"http://grafana:3000/d-solo/N4gOslEWk/grafana-alert-troubleshooting?orgId=1&panelId=2&render=1","4":"line","6":"column","level":"error","message":"Browser console error"}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erkieskencommented, Jan 31, 2020

We also ran into this, there’s a Grafana deployment with 2 pods in k8s for us, and Grafana renderer as separate deployment. And GF_RENDERING_CALLBACK_URL is using a k8s Service, so might hit one of the 2 Grafana pods, sometimes failing sometimes succeeding. Would be nice to have support for this setup too.

0reactions
marefrcommented, Feb 19, 2020

Closed by https://github.com/grafana/grafana/pull/22031 and will be included in Grafana v6.7.0. You’ll need to configure rendering callback url in Grafana to be able for renderer to callback into public/load balancer url.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grafana image renderer plugin 401/Unauthorized error ...
Trying to install and configure grafana image renders to have reports with pdf and inline images. I need to send report to emails....
Read more >
Grafana Image Renderer Data Source Authentication
I'm running Grafana 7.0.3 with Grafana Image Renderer 2.0.0 installed ... When I try and render an image from a graph (Share ->...
Read more >
Troubleshoot image rendering - Grafana documentation
Troubleshoot image rendering. In this section, you'll learn how to enable logging for the image renderer and you'll find the most common issues....
Read more >
Set up image rendering | Grafana documentation
Set up image rendering. Grafana supports automatic rendering of panels as PNG images. This allows Grafana to automatically generate images of your panels...
Read more >
Security release: New versions of Grafana and Grafana Image ...
On July 21, an internal security review identified an unauthorized file disclosure vulnerability in the Grafana Image Renderer plugin when HTTP ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found