Open mpolatcan opened 1 month ago
@mpolatcan Hello! I'm here to help you with any bugs, questions, or contributions.
I found some similar issues that might help you:
[Question] Are dashboard thumbnails generated periodically? (Closed)
[chart] "Unexpected error" in Dashboard thumbnails (Superset 1.0.1) (Closed)
Why does only the thumbnail function in the chart work? The dashboard does not appear. (Closed)
Regarding your specific issue, the problem might be related to the caching logic for the Dashboard thumbnails. Ensure that the cache_dashboard_thumbnail
function is being triggered correctly and that the thumbnail_cache
is properly configured and accessible. Check the logs for any warnings or errors related to the caching process, as indicated by the logging statements in the code:
if not thumbnail_cache:
logging.warning("No cache set, refusing to compute")
return
If the cache is not set, the function will refuse to compute the thumbnail, which could explain why the thumbnails are not appearing on the Dashboard page [4].
Additionally, there are specific differences in how the Home, Chart, and Dashboard pages handle thumbnail caching and retrieval. The DashboardScreenshot
class has specific configurations for handling thumbnails, including different default window and thumbnail sizes, URL modifications, and cache key parameters [5][6][7][4][8].
Ensure that your S3 cache is correctly configured and accessible, and verify that the cache_dashboard_thumbnail
function is being called as expected.
To continue talking to Dosu, mention @dosu.
Assigning to @geido , but also CC-ing @yousoph / @kasiazjc - not sure how long this has gone unreported, but that makes me wonder about the utility/discoverability of the thumbnail views.
Bug description
When I visiting Home and Charts page, I can see thumbnails correctly, but when I visit Dashboard page I can't see thumbnails. I configured S3 caching for thumbnails like below in superset_config.py:
At the behind, I am seeing logs like below:
How to reproduce the bug
Screenshots/recordings
Superset version
master / latest-dev
Python version
3.11
Node version
16
Browser
Chrome
Additional context
I am using Apache Superset 4.1.0rc2 version :)
Checklist