kevinbazira commented on issue #42136: URL: https://github.com/apache/airflow/issues/42136#issuecomment-2954860562
I experienced the same issue where task logs failed to render due to an invalid log URL: `Invalid URL 'http://:8793/...': No host supplied` Setting the following environment variable fixed the issue in the `docker-compose.yaml` file from: https://airflow.apache.org/docs/apache-airflow/2.10.5/docker-compose.yaml ``` x-airflow-common: &airflow-common # ... (image, build, etc.) environment: &airflow-common-env AIRFLOW__CORE__EXECUTOR: CeleryExecutor # ... other AIRFLOW__ variables ... # --- THE FIX --- # This enables all services to use the simple, reliable hostname lookup. AIRFLOW__CORE__HOSTNAME_CALLABLE: socket.gethostname # ---------------------------------------- AIRFLOW__CORE__FERNET_KEY: '' AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: 'true' # ... (rest of the common environment variables) ``` After applying the fix (`docker compose down -v && docker compose up`), logs were rendered correctly and accessible through the web UI. -- 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]
