bxsx opened a new pull request, #42495: URL: https://github.com/apache/superset/pull/42495
### SUMMARY The dev Docker config points `WEBDRIVER_BASEURL` at `http://superset_app/`, but the Docker Compose files no longer set `container_name: superset_app` — the app service is reachable only as `superset` (on port 8088). As a result, on a fresh `docker compose up`, every Alerts & Reports execution that needs to reach the webserver from the worker (chart data for "Send as text"/CSV reports, screenshots) fails out of the box with: ``` urllib.error.URLError: <urlopen error [Errno -2] Name or service not known> ``` (or `ReportScheduleScreenshotFailedError` on the screenshot path). The stale hostname was also missing the port. This PR: - points the default at `http://superset:8088{SUPERSET_APP_ROOT}/` — valid for both `docker-compose.yml` and `docker-compose-non-dev.yml` (only scheme/host/port matter, since paths are joined via `urljoin`); - replaces the equally stale inline comment (`http://superset_nginx...`) with a note about using the `nginx` service for screenshots in the dev stack (where static assets are served by the webpack dev server); - updates the three places in `docs/admin_docs/configuration/alerts-reports.mdx` that still tell users to set `http://superset_app:8088` for Docker Compose. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A (config/docs only) ### TESTING INSTRUCTIONS 1. Fresh dev stack: `docker compose up` (plus a local SMTP sink and `ALERT_REPORTS_NOTIFICATION_DRY_RUN = False` to observe delivery). 2. Create a report on a table-type chart with format "Send as text" and a `* * * * *` schedule. 3. Before this fix: the worker logs `Failed generating dataframe <urlopen error [Errno -2] Name or service not known>` on every tick. After: the report is generated and delivered. Verified on a fresh `docker compose up` stack (macOS/arm64) — reports fail with the DNS error on the stale default and deliver correctly with `http://superset:8088/`. ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
