Thumbnails work for Dashboards, not for charts #34325
Replies: 7 comments
-
Hey there, @brantian! I'm a bot here to help you with bugs, questions, and becoming a contributor. I'm here to assist you while you wait for a human maintainer. The issue you're encountering with different cache keys for chart thumbnails versus dashboard thumbnails likely stems from a discrepancy in how the cache keys are generated and used in the code. For dashboards, the cache keys are consistent, but for charts, it seems there is a mismatch. This can be due to differences in the key prefix or the way the keys are constructed in the code. Here are a few steps to troubleshoot and potentially resolve this issue:
By following these steps, you should be able to identify and resolve the issue with inconsistent cache keys for chart thumbnails. If the problem persists, you might need to dive deeper into the specific implementation details of the thumbnail caching logic in the Superset codebase [1][2]. |
Beta Was this translation helpful? Give feedback.
-
Facing the same issue, this is reproducible when you have Celery Workers and needs a fix. |
Beta Was this translation helpful? Give feedback.
-
+1 |
Beta Was this translation helpful? Give feedback.
-
This has been silent for >200 days, and is at risk of being closed as stale. Is anyone on this thread still facing this? The feature definitely works (we use it on Preset), so I'm not sure if there's a Superset bug here at all, but more of a config/ifra issue that needs to be wrangled. We might therefore move it to a Discussion if we want to keep it going. |
Beta Was this translation helpful? Give feedback.
-
I still have this issue |
Beta Was this translation helpful? Give feedback.
-
Sorry... the feature still seems to work, so there is some sort of infra/config issue happening: I'll go ahead and move this to a Discussion. ![]() |
Beta Was this translation helpful? Give feedback.
-
Upgrading to v5.0.0 fixed this issue here |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
Hello!
I was able to successfully make the Thumbnails feature work, but for some reason it works only for Dashboard thumbnails, not for Charts. I'm using Redis for cache
Based on the logs for the Web App and the Celery Worker, it seems they are generating different cache keys. So when the thumbnail is requested, I can see that the screenshot is taken and cached successfully, but the
cache_key
generated to save the image in the Redis server by the Celery worker is different than thecache_key
used by the web to retrieve the screenshot:When the thumbnail is the requested by calling
/api/v1/chart/93/thumbnail/8a61c658366e2896618441f3f43d34ec/
, this is what I see in the Web App logs:And the Celery Worker logs:
Notice that both the Web App and Celery are working with thumbnail for chart 93, but the thumbail keys are different. For dashboards, which work sucessfully, the keys are the same.
How to reproduce the bug
Screenshots/recordings
No response
Superset version
4.0.1
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions