You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "psongyoo (via GitHub)" <gi...@apache.org> on 2025/03/24 08:16:08 UTC

[D] Can't diplay Thumbnail dashboard and chart? [superset]

GitHub user psongyoo created a discussion: Can't diplay Thumbnail dashboard and chart?

I use docker. I try to set parameter in superset_config_docker.py 
DEFAULT_FEATURE_FLAGS: dict[str, bool] = {
 "THUMBNAILS": True,
 "THUMBNAILS_SQLA_LISTENERS": True,
 "ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS": True,
 "ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT": True,
 "PLAYWRIGHT_REPORTS_AND_THUMBNAILS": True,
 }

SCREENSHOT_PLAYWRIGHT_WAIT_EVENT = "load"
SCREENSHOT_PLAYWRIGHT_DEFAULT_TIMEOUT = 60000
THUMBNAIL_CACHE_CONFIG = {
    'CACHE_TYPE': 'RedisCache',
    'CACHE_DEFAULT_TIMEOUT': 7 * 86400,  # 7 days
    'CACHE_KEY_PREFIX': 'thumbnail_',
    'CACHE_REDIS_HOST': "localhost",
    'CACHE_REDIS_PORT': 6379,
    'CACHE_REDIS_DB': 1
}
WEBDRIVER_BASEURL = "http://localhost:8088/"
WEBDRIVER_BASEURL_USER_FRIENDLY = WEBDRIVER_BASEURL

![image](https://github.com/user-attachments/assets/6b2deddb-8549-4684-9f20-1ac0c45d1d6e)


GitHub link: https://github.com/apache/superset/discussions/32812

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] Can't diplay Thumbnail dashboard and chart? [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Can't diplay Thumbnail dashboard and chart?

<!-- Answer -->
To resolve the "ExecutorNotFoundError: Scheduled task executor not found" error, ensure that the `THUMBNAIL_EXECUTORS` configuration in your `superset_config.py` is correctly set up. This error typically occurs due to a misconfiguration of the executors used for thumbnail caching tasks.

1. **Verify `THUMBNAIL_EXECUTORS` Configuration**: Check that the `THUMBNAIL_EXECUTORS` setting is correctly defined in your configuration file. The default configuration is `[ExecutorType.CURRENT_USER]` <sup>[[1]](https://github.com/apache/superset/blob/master/superset/config.py)</sup>.

2. **Check Executor Availability**: Ensure that the executors you have defined are available and correctly implemented. The `get_executor` function should be able to fetch the executor based on your configuration.

If the configuration is correct and the error persists, review the implementation of the `get_executor` function to ensure it aligns with your setup <sup>[[2]](https://github.com/apache/superset/blob/master/superset/tasks/cache.py)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/superset/tasks/thumbnails.py)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/c2139309-3ae0-405e-afb9-cc144c563ed0?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c2139309-3ae0-405e-afb9-cc144c563ed0?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c2139309-3ae0-405e-afb9-cc144c563ed0?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c2139309-3ae0-405e-afb9-cc144c563ed0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c2139309-3ae0-405e-afb9-cc144c563ed0?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c2139309-3ae0-405e-afb9-cc144c563ed0?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c2139309-3ae0-405e-afb9-cc144c563ed0?feedback_type=other)</sup>


GitHub link: https://github.com/apache/superset/discussions/32812#discussioncomment-12601820

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] Can't diplay Thumbnail dashboard and chart? [superset]

Posted by "psongyoo (via GitHub)" <gi...@apache.org>.
GitHub user psongyoo added a comment to the discussion: Can't diplay Thumbnail dashboard and chart?

@dosu I still error like this. ERROR/ForkPoolWorker-1] Task cache_chart_thumbnail[192d5fc5-4b5c-4e50-8252-ba5773f272aa] raised unexpected: ExecutorNotFoundError(l'Scheduled task executor not found')


GitHub link: https://github.com/apache/superset/discussions/32812#discussioncomment-12601801

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] Can't diplay Thumbnail dashboard and chart? [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Can't diplay Thumbnail dashboard and chart?

<!-- Answer -->
Ensure that the `THUMBNAIL_EXECUTORS` configuration is correctly set in your `superset_config_docker.py`. It should be defined as follows:

```python
from superset.tasks.types import ExecutorType

THUMBNAIL_EXECUTORS = [ExecutorType.CURRENT_USER]
```

If you have already set this and the issue persists, consider the following:

1. **Check Redis Connection**: Verify that your Redis server is running and accessible. Use a Redis client to connect to the server and ensure it is reachable at the specified host and port.

2. **Review Logs**: Check the Superset and Celery worker logs for any error messages or stack traces that might provide more insight into the issue.

3. **Playwright and Browser Dependencies**: Ensure that Playwright and the necessary browser dependencies are installed and up-to-date. Run `playwright install` to ensure all required components are installed.

4. **Celery Worker Configuration**: Make sure your Celery workers are running and properly configured to handle thumbnail generation tasks. Check that they have access to the necessary environment variables and configurations.

If these steps do not resolve the issue, further investigation into the logs and configurations may be necessary to identify any underlying problems.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/50391afc-f31d-4f94-b7b3-f413a46ea129?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/50391afc-f31d-4f94-b7b3-f413a46ea129?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/50391afc-f31d-4f94-b7b3-f413a46ea129?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/50391afc-f31d-4f94-b7b3-f413a46ea129?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/50391afc-f31d-4f94-b7b3-f413a46ea129?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/50391afc-f31d-4f94-b7b3-f413a46ea129?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/50391afc-f31d-4f94-b7b3-f413a46ea129?feedback_type=other)</sup>


GitHub link: https://github.com/apache/superset/discussions/32812#discussioncomment-12601981

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] Can't diplay Thumbnail dashboard and chart? [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Can't diplay Thumbnail dashboard and chart?

<!-- Answer -->
I found a similar unsolved discussion that might be relevant to your issue: [Superset 4.0.2: The REST API for thumbnail download is not working](https://github.com/apache/superset/discussions/30988) <sup>[[1]](https://github.com/apache/superset/discussions/30988)</sup>.

For your current setup, ensure the following:

1. **Redis Configuration**: Verify that your Redis server is running and accessible at the specified host and port. Connection issues with Redis can prevent thumbnails from being cached or retrieved properly <sup>[[2]](https://github.com/apache/superset/blob/master/tests/integration_tests/superset_test_config_thumbnails.py)</sup>.

2. **Playwright Setup**: Ensure that Playwright and the necessary browser dependencies are correctly installed. This includes running `playwright install-deps` and installing the required browsers (e.g., `playwright install chromium`) <sup>[[3]](https://github.com/apache/superset/blob/master/Dockerfile)</sup>.

3. **WEBDRIVER_BASEURL**: Make sure that the `WEBDRIVER_BASEURL` is correctly configured and accessible from the worker environment. If there are issues with the URL or authentication, it can prevent the worker from generating thumbnails <sup>[[4]](https://github.com/apache/superset/blob/master/docs/docs/configuration/alerts-reports.mdx)</sup>.

4. **Feature Flags**: Double-check that all necessary feature flags are enabled in your configuration, as you have done. This includes `THUMBNAILS`, `THUMBNAILS_SQLA_LISTENERS`, `ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS`, and `ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT` <sup>[[5]](https://github.com/apache/superset/blob/master/superset/config.py)</sup>.

If these configurations are correct and the issue persists, consider checking the logs for any error messages that might provide more insight into the problem.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/94fa83b3-eb43-490a-9090-d1706b1f5140?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/94fa83b3-eb43-490a-9090-d1706b1f5140?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/94fa83b3-eb43-490a-9090-d1706b1f5140?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/94fa83b3-eb43-490a-9090-d1706b1f5140?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/94fa83b3-eb43-490a-9090-d1706b1f5140?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/94fa83b3-eb43-490a-9090-d1706b1f5140?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/94fa83b3-eb43-490a-9090-d1706b1f5140?feedback_type=other)</sup>


GitHub link: https://github.com/apache/superset/discussions/32812#discussioncomment-12598900

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] Can't diplay Thumbnail dashboard and chart? [superset]

Posted by "psongyoo (via GitHub)" <gi...@apache.org>.
GitHub user psongyoo added a comment to the discussion: Can't diplay Thumbnail dashboard and chart?

@dosu I already set this and still can not display thumbnails


GitHub link: https://github.com/apache/superset/discussions/32812#discussioncomment-12601953

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org