GitHub user dosubot[bot] added a comment to the discussion: Failed at generating thumbnail SoftTimeLimitExceeded()
<!-- Greeting --> Hi @shaymongracia! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The SoftTimeLimitExceeded errors are happening because the Celery task for generating thumbnails is waiting too long for the /login/ page to load—this is a required step for Selenium to inject the session cookie before accessing the chart or dashboard. If /login/ is slow, the whole screenshot process stalls and eventually hits the 5-minute soft time limit set for the task, causing it to fail [code reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/tasks/thumbnails.py). Common causes for slow /login/ in this context are: a slow session backend (like a database or Redis), static asset loading issues, cookie misconfiguration (domain, samesite, etc.), or server resource constraints. In isolated environments, missing or misconfigured static assets or session storage can also cause delays [discussion](https://github.com/apache/superset/discussions/31464). Here’s what you can do: - Test `/login/` directly from the Celery worker host using `curl` or `wget` to see if it’s slow outside of Selenium. - Check your Superset and web server logs for errors or warnings when /login/ is accessed. - Make sure your session backend (DB, Redis, etc.) is healthy and fast. - Confirm that all static assets are present and served locally—missing assets can cause long waits. - Double-check your cookie/session domain and samesite settings, especially if you’re using containers or have changed WEBDRIVER_BASEURL. - Ensure your Selenium/ChromeDriver config is fully local. Superset ignores `WEBDRIVER_EXECUTABLE_PATH`; you must set the path via `WEBDRIVER_CONFIGURATION['service']['executable_path']` in `superset_config.py` to avoid Selenium trying to download ChromeDriver from the internet [discussion](https://github.com/apache/superset/discussions/34053). If you can’t immediately resolve the slowness, you can try increasing `SCREENSHOT_LOCATE_WAIT` and `SCREENSHOT_LOAD_WAIT` in `superset_config.py` to give Selenium more time, but this only helps if the server is just slow, not stuck [discussion](https://github.com/apache/superset/discussions/31464). If `/login/` is slow even with a direct HTTP request, focus on fixing the web server or session backend. If it’s only slow in Selenium, look at network/cookie config or container networking. Let me know if you find anything specific in the logs or if you need help with config details. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/8a4c1f6b-82b9-437e-9117-8890f79b0262?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/8a4c1f6b-82b9-437e-9117-8890f79b0262?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/8a4c1f6b-82b9-437e-9117-8890f79b0262?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/8a4c1f6b-82b9-437e-9117-8890f79b0262?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/8a4c1f6b-82b9-437e-9117-8890f79b0262?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/8a4c1f6b-82b9-437e-9117-8890f79b0262?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/8a4c1f6b-82b9-437e-9117-8890f79b0262?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34092) GitHub link: https://github.com/apache/superset/discussions/34092#discussioncomment-13687975 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org