Sending scheduled report via email #35178
Replies: 6 comments 3 replies
-
Hi @cvrdev! I'm Dosu and I’m helping the superset team. Your error is likely caused by a mismatch or missing configuration for the headless browser inside your Docker worker container. Superset relies on Selenium WebDriver (with Firefox/Chrome) for generating report screenshots, and the default Docker image does not include a browser or driver by default. The AttributeError about 'capabilities' usually means the WebDriver configuration is not matching what Selenium expects, or the browser/driver is missing or misconfigured [source]. How to fix:
If you still see the AttributeError, double-check that your More details and example Dockerfiles are in the updated documentation: Let me know if you need a specific example for your Dockerfile or config! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Your error is likely caused by a misconfiguration in the WebDriver settings for screenshot generation in Superset. The default Docker config uses 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": "",
},
} 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 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 Also, check that Let me know if you need example Dockerfile snippets or more details on browser installation! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Working example Dockerfile would be appreciated. Thanks. As Chrome is not part of Debian repositories, is it OK to install Chromium instead of Chrome to use it for screenshots? |
Beta Was this translation helpful? Give feedback.
-
Thank you, @dosu, for the code. i followed exactly your instructions. In the Docker file you can remove line "ln -sf /usr/bin/chromium-driver /usr/bin/chromedriver" as the chromium-driver is installed in Debian 13 directly with name chromedriver and the link command deletes it. Now I have both driver and chromium in container installed. Unfortunately taking screenshots still does not work, but error is now different: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
Hello,
I have configured sending a report via email in scheduler. The sending is correctly triggered but it fails always with an error (see the screenshot). I use docker installation downloaded form master branch. I use default configuration, did not change anything yet. But it seems to be some problem with browser inside of the container. I tried also to install full firefox-esr inside of container but it did not help. I have not found any solution for this issue on any web source.
Regards,
Luděk
Screenshots/recordings
Superset version
master / latest-dev
Python version
I don't know
Node version
I don't know
Browser
Not applicable
Additional context
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions