daniel-t800 opened a new issue, #48931:
URL: https://github.com/apache/airflow/issues/48931

   ### Apache Airflow version
   
   2.10.5
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I installed Airflow using docker and ran the contained examples, all went to 
#task-state-changed-externally.
   When setting AIRFLOW_UID, everything works fine. Took me several days to 
find that error. There is only a warnign during docker compose, afterwards 
nothing indicates it.
   
   **Details**:
   OS: Windows 10.0.22631 /Windows 11 Enterprise
   Docker: Docker version 27.5.1-rd, build 0c97515
   Desktop: Rancher 1.18.2 with CE:moby and Kubernetes deactivated
   docker-compose.yaml: original from 
https://airflow.apache.org/docs/apache-airflow/2.10.5/docker-compose.yaml today
   **env:**
   C:\Users\user> $env:AIRFLOW_UID
   C:\Users\dtollkoe> $env:AIRFLOW_IMAGE_NAME
   apache/airflow:2.10.5
   **Installation:**
   C:\Users\users\Documents\dockerfiles\Airflow> docker compose up airflow-init
   ...
   airflow-init-1 exited with code 0
   
   C:\Users\users\Documents\dockerfiles\Airflow> docker compose up -d
   
   **Result:** All example dags result in
   Executor CeleryExecutor(parallelism=32) reported that the task instance 
<TaskInstance: example_python_decorator.print_the_context 
manual__2025-04-08T11:17:36.080018+00:00 [queued]> finished with state failed, 
but the task instance's state attribute is queued. Learn more: 
https://airflow.apache.org/docs/apache-airflow/stable/troubleshooting.html#task-state-changed-externally
   
   **Further comments:**
   I have identified that out of the resons given at the URL in the eror 
message, zombie is the relevant one. 
   
   
![Image](https://github.com/user-attachments/assets/b72b409d-c7cf-408e-b0a0-ceb9c4fa1e8f)
   
   
![Image](https://github.com/user-attachments/assets/8e34ca62-8676-4130-936a-4bdb0a8b566d)
   
   When setting AIRFLOW_UID, everything works fine.
   
   Also, only dags not run before get that error. I.e., when I do install with 
AIRFLOW_UID set, run some dags, remove containers and images, reinstall and run 
these dags again, they work fine.
   
   ### What you think should happen instead?
   
   1.  Use default value of 5000 AIRFLOW_UID if env variable is not set
   2. Clear error message for the error - currently only the obscure 
#task-state-changed-externally is present
   
   ### How to reproduce
   
   Described in "what happened". Please ask if further info helps.
   
   ### Operating System
   
   WSL Ubuntu 22.04.1 LTS
   
   ### Versions of Apache Airflow Providers
   
   Docker via docker-compose.yaml
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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]

Reply via email to