sujitha-saranam commented on issue #53797:
URL: https://github.com/apache/airflow/issues/53797#issuecomment-3139636802
hi @r-richmond
I’ve tested the setup using the provided bash script and was able to run it
successfully without any issues. Everything is working fine on my end.
Since I’m not using Google Cloud, I removed the GCP related environment
variables and volume mounts from the script. Other than that, I didn’t make any
changes.
Here is the bash script I used to reproduce the setup (with GCP-related
lines removed since I'm not using Google Cloud):
``` json
#!/bin/bash
# Mount your local DAGs folder (./files/dags) into the Airflow container
DAG_FILES_TO_MOUNT="-v ./files/dags/:/opt/airflow/dags/repo/dags_bkp/"
REPO='apache/airflow:3.0.3'
# Build the docker run command
DOCKER_CMD="docker run -p 8080:8080 \
-e AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGINS='' \
-e AIRFLOW__API__EXPOSE_CONFIG=non-sensitive-only \
-e AIRFLOW__API_AUTH__JWT_SECRET=aaaabbbbccccddddeeeeaaaabbbb8888 \
-e AIRFLOW__CORE__DAGS_FOLDER=/opt/airflow/dags/repo/dags_bkp \
-e AIRFLOW__CORE__EXECUTOR=LocalExecutor \
-e AIRFLOW__CORE__LOAD_EXAMPLES=False \
-e AIRFLOW__CORE__SIMPLE_AUTH_MANAGER_ALL_ADMINS=True \
-e AIRFLOW__CORE__STRICT_DATASET_URI_VALIDATION=True \
-e AIRFLOW__DAG_PROCESSOR__BUNDLE_REFRESH_CHECK_INTERVAL=30 \
-e AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=sqlite:////opt/airflow/airflow.db \
-e AIRFLOW__LOGGING__FAB_LOGGING_LEVEL=DEBUG \
-e AIRFLOW__LOGGING__LOGGING_LEVEL=INFO \
-e AIRFLOW__LOGGING__SIMPLE_LOG_FORMAT='[%(asctime)s]
{%(filename)s:%(lineno)d} %(levelname)s - %(message)s' \
-e AIRFLOW__METRICS__METRICS_USE_PATTERN_MATCH=True \
-e AIRFLOW__SCHEDULER__CATCHUP_BY_DEFAULT=False \
-e AIRFLOW__WEBSERVER__DEFAULT_DAG_RUN_DISPLAY_NUMBER=10 \
-e ENVIRONMENT=dev_local \
-e PYTHONPATH=/opt/airflow/dags/repo/ \
-e DEV_USER=\"$(whoami)\" \
$DAG_FILES_TO_MOUNT \
--name airflow-local \
-it --rm --entrypoint \"/bin/bash\" $REPO -c \"airflow standalone\""
# Print and run the command
echo -e "Running command: $DOCKER_CMD"
eval $DOCKER_CMD
exit 0
```
You can also refer to the screenshots below for reference.
So far, everything is working fine on my end, and I'm not able to reproduce
the issue.
Let me know if there are any specific changes or steps you'd like me to try
to help debug further
<img width="1859" height="1128" alt="Image"
src="https://github.com/user-attachments/assets/4427e14d-1393-4956-b659-57d80f918605"
/>
--
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]