Tni04 commented on issue #56120: URL: https://github.com/apache/airflow/issues/56120#issuecomment-3367729771
I run Airflow using containers and faced the same issue. While waiting for an official fix, I applied the changes from the related pull request [#56191](https://github.com/apache/airflow/pull/56191) only to the api-server container, and so far everything has been working correctly. Here is my Dockerfile: ``` FROM apache/airflow:slim-3.1.0-python3.12 EXPOSE 8080 WORKDIR /opt/airflow ARG INSTALL_MYSQL_CLIENT=false ARG INSTALL_MSSQL_CLIENT=false # Copy requirements and webserver_config COPY ./requirements-apiserver.txt /opt/airflow/requirements.txt COPY ./webserver_config.py /opt/airflow/webserver_config.py COPY ./airflow.cfg /opt/airflow/airflow.cfg # Install uv for faster package installation RUN pip install uv # Install Python dependencies using uv RUN uv pip install --no-cache-dir -r /opt/airflow/requirements.txt # Fix for the remote logging issue in Airflow COPY ./airflow-fix/*.py /home/airflow/.local/lib/python3.12/site-packages/airflow/utils/log/ # Switch to non-root user USER airflow CMD ["airflow", "api-server"] ``` -- 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]
