GitHub user psongyoo created a discussion: Try to display thumbnail on apache
superset 4.1.1 but it show error Failed at generating thumbnail Executable
doesn't exist at /root/.cache/ms-playwright/chromium-1105/chrome-linux/chrome
I use docker to implement apache superset 4.1.1 and try to set
superset_config_docker.py to display thumbnail.
it's still not display thumbnail. when i check in superset_worker container. It
show error like
Failed at generating thumbnail Executable doesn't exist at
/root/.cache/ms-playwright/chromium-1105/chrome-linux/chrome
my superset_config_docker.py is
FEATURE_FLAGS = {
"THUMBNAILS": True,
"THUMBNAILS_SQLA_LISTENERS": True,
"PLAYWRIGHT_REPORTS_AND_THUMBNAILS": True,
# 2 อันนี้ไม่จำเป็น แต่ถ้าคุณอยากกดดาวน์โหลดจาก endpoint/UI ก็เปิดได้
"ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS": True,
"ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT": True,
"LISTVIEWS_DEFAULT_CARD_VIEW": True,
"HORIZONTAL_FILTER_BAR": True,
}
from superset.tasks.types import ExecutorType
THUMBNAIL_EXECUTORS = [ExecutorType.CURRENT_USER]
WEBDRIVER_BASEURL = "http://superset:8088"
SCREENSHOT_LOCATE_WAIT = 60
SCREENSHOT_LOAD_WAIT = 360
SCREENSHOT_PLAYWRIGHT_DEFAULT_TIMEOUT = 90000
SCREENSHOT_PLAYWRIGHT_WAIT_EVENT = "networkidle"
THUMBNAIL_CACHE_CONFIG = {
"CACHE_TYPE": "RedisCache",
"CACHE_KEY_PREFIX": "ipst_prod_thumbnail_",
"CACHE_DEFAULT_TIMEOUT": 60 * 60 * 24 * 7, # 7 วัน
"CACHE_NO_NULL_WARNING": True,
"CACHE_REDIS_HOST": "redis",
"CACHE_REDIS_PORT": 6379,
"CACHE_REDIS_DB": 3,
}
THUMBNAIL_ERROR_CACHE_TTL = 60 * 60 * 24
GitHub link: https://github.com/apache/superset/discussions/35101
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]