GitHub user gaetan-mdb added a comment to the discussion: Could not read served logs: Invalid URL 'http://:8793....': Not host supplied
Hello. I'm using Airflow 3.1.3, deployed on ECS, with LocalExecutor. Three containers (API server, scheduler, and DAG processor) are in the same ECS task (equivalent to a Kubernetes pod). No airflow.cfg file is used; all parameters are passed via environment variables. I encountered the same problem (the task fails with the message "Invalid URL http://:8793…") in the user interface. After a debugging session, it appears that the following is missing: - the AIRFLOW__CORE__EXECUTION_API_SERVER_URL environment variable. Since my Airflow user interface is accessible at https://mycompany/airflow, I modified the AIRFLOW__API__BASE_URL variable to https://mycompany/airflow, but I forgot to update AIRFLOW__CORE__EXECUTION_API_SERVER_URL to http://localhost:8080/airflow. - It's also necessary to use the same values for AIRFLOW__API_AUTH__JWT_SECRET and AIRFLOW__API__SECRET_KEY in all three containers, as described in the Airflow documentation. After adding these changes, the error disappeared, and the logs and tasks are working correctly. Hope this helps. GitHub link: https://github.com/apache/airflow/discussions/45525#discussioncomment-15288392 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
