JaeHyuckSa opened a new pull request, #66481:
URL: https://github.com/apache/airflow/pull/66481

   `airflow-init`'s chown/echo lines use `${AIRFLOW_UID}` without a default. If
   the host doesn't set `AIRFLOW_UID`, compose substitutes it to `""` at parse
   time and the script ends up running `chown -R ":0" /opt/airflow/`. Ownership
   stays unchanged, only the group flips to `0`. Workers run as `50000` (per the
   `user:` line, which already uses `${AIRFLOW_UID:-50000}`), can't write to
   logs, heartbeats fail, DAGs go zombie.
   
   Add the same `:-50000` default to the four chown/echo lines.
   
   #50162 tried this earlier with `${CHOWN_UID}`, also without a default.
   
   closes: #48931
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes — Cursor Composer 2.0
   
   Generated-by: Cursor Composer 2.0 following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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