-
Notifications
You must be signed in to change notification settings - Fork 157
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
image rendering times out sporadically #582
Comments
had the same issue with 11.3.1, spent more than a week troubleshooting this and it looks like downgrading to 11.2.4 fixed it. directly rendering from the grafana interface (panel -> share -> generate rendered image) works fine but rendering on alert is broken. |
I can confirm the problem |
I can confirm this issue:
The image generation takes around 5s depending on the panel.
After playing around with the renderer settings I found out that using the direct link button via the grafana UI this is wotking as fast as under v10. So the difference is that the link callled by the button contains all the vars defined in the dashboard (no matter if it is used in the panel or not). The Link looks like this now: Can anybody explain how this issues/bug can be solved/switched back to the old behaviour? Thanks in advance! |
@evictorero @lucychen-grafana do you guys test this stuff? |
I can also confirm that the issue is solved by downgrading to grafana 11.2.4 as mentioned by @mikerevellesciplay . |
Thanks for the hint, @mikerevellesciplay. I've downgraded Grafana to 11.2.4 and now rendering is reliable. |
I'm also dealing with this issue, I have an app that "recreates" grafana dashboards for posting to slack, notably, only panels that query snowflake are having issues, likely due to some small lag as the queries are fairly quick. Before we upgraded Grafana, no issues. Now, I routinely get blank panels sent to slack. Downgrading is not an option for us. |
Hi everyone. Thanks for reporting this. We are trying to triage this issue and isolate this case to be able to reproduce it. Can you help us answering these questions?
|
Can you help us answering these questions? When does it start failing? Which image renderer version are you using? Is the image renderer configured as a plugin or as an external service? Which data sources use the panels that are failing? Does this issue happen randomly or can you reproduce it consistently? If you grab the URL from the panel UI in Grafana 11.3.1. Does it fail? Also not without "&__feature.dashboardSceneSolo=false" I hope this helps. |
Hi, The problem is the seems to be the panal id. With 11.3.0 the variable for the panal id changed: Here it is &viewPanel=3 Here it is &viewPanel=panel-3. Futhermore automatically "&timezone=browser&var-disk=$__all&var-threadcount=$__all" is added for variable without a definition ($__all). ################## Icinga2 2.14.3 Grafana 11.3.2 ( But also with v11.3.0 ). With v11.2.2 it works. I hope this will help. |
We are also facing this issue, by doing the downgrade it works again. Thank you for the nice explanation and investigation of the bug |
Same here, i did some tests and there were issues rendering some panels using grafana 11.4.0 and grafana-image-renderer 3.11.6 running as external service. Once i downgraded grafana to 11.2.5, rendering panels worked 100% of the time. |
For us the perceived "timeout problem" appears to have turned out to be a missing Variable that was used in the title of the dashboard. I'm speculating that there previously was some form of redirect or url rewrite taking place which poulated that var (as the rendered image contained it's content before), but that doesn't seem to work anymore. So everyone who is having issues might want to check that all variables which are needed are provided. It doesn't seem to fail gracefully if not all are present. Just as a tip, if it's not consitently broken it might of course be something else. |
We thought that missing variables might be the root cause as well, especially since they were used in the dashboard title and sometimes they were not filled. However, after testing over several days, we observed inconsistent behavior — sometimes it worked, and other times it didn’t. |
Downgraded grafana to v11.2.4 and the renderer is working again as expected. |
I can confirm this as well, but I can't use 11.2.x because we're trying to use the slack image uploader which was fixed in 11.4.1 and 11.5.0 (grafana/alerting#256), so there's no compatible version of Grafana where both things are working properly right now. |
I am also debugging this issue. |
Tested. Same result. Any news? |
We also had to downgrade from 11.5 to 11.2 because of this bug. |
I have been digging into this trying to find a consistent way to reproduce the issue, to understand where can the problem be. I think the problem occurs when the render URL does not include certain variables in the query. This URL works in Grafana <= 11.2.x. The panel does not use any other variables apart from However, that same URL does not work in in Grafana > 11.2.x. I happen to know that the dashboard has other variables defined, so if I modify the URL to add those variables (even if I don't set any value), it starts working. The only thing I did was adding the However, does that not mean we need to add ALL the variables from the dashboard into the URL. Well, I am not sure about this, but the type of the I didn't have time to investigate more, but I think this should give enough detail for a Grafana developer to quickly find where is the problem. |
What happened:
After updating grafana (to 11.3.1) and the grafana-image-renderer (to 3.11.6), some image rendering requests fail with a timeout, while most work.
As far as I can tell it affects ~25% of requests.
The log message from the renderer is:
The influx log doesn't show anything obviously problematic.
What you expected to happen:
All requests render correctly.
How to reproduce it (as minimally and precisely as possible):
The images are used on public pages: https://freifunk-bs.de/map/#!/en/map/68725132e5cb
Anything else we need to know?:
In the error case, the renderer responds with a truncated error message instead of the image:
Environment:
The text was updated successfully, but these errors were encountered: