GitHub user U12358 added a comment to the discussion: DAG execution fails with 
'state mismatch' error when behind an NGINX reverse proxy

Today I played with similar issue, want to share my expirience. Airflow 3.1.7, 
K8s + Ingress.
Goal is configure dev system where http://localhost/airflow next to 
http://localhost/pgadmin, http://localhost/mlflow, ... everything shares one 
local host, one port and different subdir. Of course minimize resources.

Tried 3 variants:
1. Standalone, 100% unworking

AIRFLOW__API__BASE_UR=http://localhost:8080/airflow
(as result 
AIRFLOW__CORE__EXECUTION_API_SERVER_URL={AIRFLOW__API__BASE_UR}/execution)

<img width="690" height="168" alt="Screenshot from 2026-02-28 23-12-11" 
src="https://github.com/user-attachments/assets/8c4b5a81-9d8b-458e-b401-c90ce670bc44";
 />
 
3. Standalone, 50/50 either fully unworking or half broken

AIRFLOW__API__BASE_UR=http://localhost:8080/airflow
AIRFLOW__CORE__EXECUTION_API_SERVER_URL=http://localhost:8080/execution
<img width="690" height="168" alt="Screenshot from 2026-02-28 23-12-20" 
src="https://github.com/user-attachments/assets/7ad113be-36c5-4e27-9e24-a1bba2add78b";
 />
or
<img width="690" height="168" alt="Screenshot from 2026-02-28 23-12-11" 
src="https://github.com/user-attachments/assets/5317d01a-e8fd-4951-ae90-d9b45907e669";
 />

5. Two containers, two api-servers, 100% working
```
1st container only api-server as Web
AIRFLOW__API__BASE_UR=http://localhost:8080/airflow

2nd container the second api-server as API + scheduler, triggerer, 
dag-proccessor
AIRFLOW__CORE__EXECUTION_API_SERVER_URL=http://localhost:8080/
```
<img width="690" height="168" alt="Screenshot from 2026-02-28 23-23-18" 
src="https://github.com/user-attachments/assets/497a890a-f2aa-4ba8-a153-4587a070175a";
 />


GitHub link: 
https://github.com/apache/airflow/discussions/54565#discussioncomment-15957848

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to