GitHub user dosubot[bot] added a comment to the discussion: Sending scheduled
report via email
<!-- Answer -->
Your error is likely caused by a misconfiguration in the WebDriver settings for
screenshot generation in Superset. The default Docker config uses
`"log_output"` in the `WEBDRIVER_CONFIGURATION` dictionary, but Selenium
expects `"log_path"` instead. To fix this, update your `superset_config.py` so
the `service` section uses `"log_path"`:
```python
WEBDRIVER_CONFIGURATION = {
"service": {
"executable_path": "/usr/local/bin/chromedriver", # or geckodriver for
Firefox
"log_path": "/var/log/superset",
"service_args": [],
"port": 0,
"env": {},
},
"options": {
"capabilities": {},
"preferences": {},
"binary_location": "",
},
}
```
[Reference](https://github.com/apache/superset/discussions/34062)
If you use Chrome, make sure both Chrome and chromedriver are installed in your
worker container. For Firefox, install both firefox-esr and geckodriver. Only
the worker container needs the browser for scheduled reports. You can verify
installation by running `firefox --headless` or `chromedriver --version` inside
the container. [Reference](https://github.com/apache/superset/pull/34908)
If you’re on Superset >=4.1.x, consider switching to Playwright with Chrome for
more reliable screenshot generation. This requires installing Playwright and
enabling the `PLAYWRIGHT_REPORTS_AND_THUMBNAILS` feature flag in your config.
[Reference](https://github.com/apache/superset/pull/34908)
Also, check that `ALERT_REPORTS_NOTIFICATION_DRY_RUN` is set to `False` in your
worker container environment, or reports will appear dispatched but not
actually be sent. [Reference](https://github.com/apache/superset/issues/32001)
Let me know if you need example Dockerfile snippets or more details on browser
installation!
<!-- 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/5b4129bf-a3d7-4c5a-b941-76278a168961?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/5b4129bf-a3d7-4c5a-b941-76278a168961?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/5b4129bf-a3d7-4c5a-b941-76278a168961?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/5b4129bf-a3d7-4c5a-b941-76278a168961?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/5b4129bf-a3d7-4c5a-b941-76278a168961?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/5b4129bf-a3d7-4c5a-b941-76278a168961?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/5b4129bf-a3d7-4c5a-b941-76278a168961?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](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/35178)
GitHub link:
https://github.com/apache/superset/discussions/35178#discussioncomment-14432565
----
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]