Issue while downloading superset dashboard as image #40066
Replies: 2 comments 9 replies
-
|
This is a commonly reported issue with the dashboard screenshot/image download feature. The message stays indefinitely because the backend screenshot generation is failing silently. Here are the most likely causes and fixes: 1. Celery worker not running or misconfigured The screenshot feature works asynchronously — a Celery task captures the screenshot using a headless browser. If Celery isn't running or isn't properly connected to Redis, the task never completes [1]. Make sure you have: # superset_config.py
class CeleryConfig:
broker_url = "redis://127.0.0.1:6379/0"
result_backend = "redis://127.0.0.1:6379/1"
THUMBNAIL_CACHE_CONFIG = {
"CACHE_TYPE": "RedisCache",
"CACHE_REDIS_URL": "redis://127.0.0.1:6379/0",
"CACHE_DEFAULT_TIMEOUT": 604800,
}2. Required feature flags not enabled Ensure these are set [2]: DEFAULT_FEATURE_FLAGS = {
"THUMBNAILS": True,
"ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS": True,
"ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT": True,
}3. Authentication failure in the headless browser The WebDriver authenticates as a configured user (usually "admin"). If that account is inactive or doesn't have access to the dashboard, the screenshot silently fails [3]. Verify that 4. Timeout — dashboard too heavy If your dashboard has many charts, the headless browser may time out before everything loads. Try increasing timeouts [4]: SCREENSHOT_LOCATE_WAIT = 100
SCREENSHOT_LOAD_WAIT = 6005. Control characters in dashboard title If your dashboard title was copy-pasted from an external source, it may contain hidden control characters that crash the headless browser [5]. Try manually retyping the title. Troubleshooting steps:
Which version of Superset are you running, and are you using Docker or a custom deployment? That would help narrow things down further. To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issues while trying to download a dashboard as image on SS, I click on Download as image and this message keeps triggering but doesn't download it ever, I've tried refreshing the dashboard, loading again, and hasn't work yet. (Not working from anyone from SOC )
@dosu Please help
Beta Was this translation helpful? Give feedback.
All reactions