Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR rendering PNGs in parralel for dash #350

Open
fruchtee opened this issue Jun 8, 2023 · 7 comments
Open

ERROR rendering PNGs in parralel for dash #350

fruchtee opened this issue Jun 8, 2023 · 7 comments

Comments

@fruchtee
Copy link

fruchtee commented Jun 8, 2023

I just made an Test-dashboard, which only contains a Text-Panel. Exporting it to PDF gives me a blank page with the following error:

error rendering PNGs in parralel for dash {Title:test Description: VariableValues: Rows:[] Panels:[{Id:1 Type:text Title:Panel Title GridPos:{H:8 W:12 X:0 Y:0}}]}: error getting panel {Id:1 Type:text Title:Panel Title GridPos:{H:8 W:12 X:0 Y:0}}: Error obtaining render: 500 Internal Server Error

Is this a known issue? Or are there any fixes already?

grafana version: 9.5.3

@fruchtee
Copy link
Author

fruchtee commented Oct 9, 2023

Is it possible that the reporter is not compatible with Grafana Version 9.5.x ?

I still couldnt find a fix. Some panels just cant get rendered.

Error obtaining render for panel {Id:18 Type:stat Title: date - time GridPos: {H:2 W:6 X:7 Y:8}}, Status: 500, Retrying after 10s...
Error obtaining render for panel {Id:15 Type:volkov-echarts-panel Title: diameter GridPos: {H:8 W:13 X:0 Y:10}}, Status: 500, Retrying after 10s...
Error obtaining render for panel {Id:9 Type:gauge Title: GridPos: {H:7 W:4 X:0 Y:18}}, Status: 500, Retrying after 10s...
Error obtaining render for panel {Id:11 Type:gauge Title: GridPos: {H:7 W:4 X:4 Y:18}}, Status: 500, Retrying after 10s...
Error obtaining render for panel {Id:6 Type:histogram Title: GridPos: {H:7 W:5 X:8 Y:18}}, Status: 500, Retrying after 10s...

@markoshorro
Copy link

markoshorro commented Oct 24, 2023

Hey @fruchtee, I'm observing the same issue with Grafana 9.x. Did you manage to solve this?

EDIT: in my case checking the logs I had a missing dynamic library missing, nothing related with the app itself.

@fruchtee
Copy link
Author

No I did not find any solution for this. Did you find a fix?

@markoshorro
Copy link

@fruchtee yeah, in my case it was related with my machine, some missing libraries. You could check your logs (Grafana logs) for more information, it helped me a lot.

@fruchtee
Copy link
Author

Hi @markoshorro I am actually not finding any missing libraries. Which do you had to add?

@subhashc
Copy link

subhashc commented Nov 6, 2023

here is the solution: grafana/grafana-image-renderer#159

@alfredotasty
Copy link

HI everyone I've found the solution

error come from this problem

  1. check Grafana log
    you may seen error from plugin.grafana-image-renderer like this
logger=plugin.grafana-image-renderer t=2024-04-09T06:11:56.802277104Z level=error msg="Render request failed" url="http://localhost:3000/d-solo/{you dash board uid}/_?from=now-1h&height=500&panelId=29&theme=light&to=now&width=1000&render=1" error="Error: Failed to launch the browser process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome/linux-124.0.6351.0/chrome-linux64/chrome: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://pptr.dev/troubleshooting\n"

The log told you that you need mechanism for allocating buffers for graphics rendering.

  1. Install libgbm
    Following this command
sudo apt-get update
sudo apt-get install -y libgbm-dev

Restart grafana service and grafana-report then try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants