William-Yi-Weng opened a new issue, #34286: URL: https://github.com/apache/airflow/issues/34286
### Apache Airflow version Other Airflow 2 version (please specify below) ### What happened Airflow version 2.7 We get ``An error occurred while fetching the dag source code.`` on airflow web user interface, and it gets 404 Dag source not found from api call since we upgrade our existing airflow service from 2.6 to 2.7. We have about 1600 DAGs sharing about 10 DAGs templates. I can see all DAGs running correctly and the DAGs details show well. And the dags folder is attached correctly in the web server container. <img width="457" alt="image" src="https://github.com/apache/airflow/assets/46487209/d443f12a-fce9-40d3-bffc-4334425a9d84"> <img width="922" alt="image" src="https://github.com/apache/airflow/assets/46487209/a515725f-1b62-46c9-aa1b-9bed592be2dc"> ### What you think should happen instead _No response_ ### How to reproduce It seems triggers exception of ``raise NotFound("Dag source not found")`` on this line. https://github.com/apache/airflow/blob/38ecd4c4da65310f9461df769d274cb78b122630/airflow/api_connexion/endpoints/dag_source_endpoint.py#L40 Not sure it is caused by the secret key or the DAGs folder location (we are using temporary secret_key - empty value) ### Operating System Debian GNU/Linux 12 - docker image ### Versions of Apache Airflow Providers apache-airflow-providers-amazon==8.5.1 apache-airflow-providers-apache-hive==6.1.4 apache-airflow-providers-celery==3.3.2 apache-airflow-providers-common-sql==1.7.0 apache-airflow-providers-ftp==3.5.0 apache-airflow-providers-http==4.5.0 apache-airflow-providers-imap==3.3.0 apache-airflow-providers-postgres==5.6.0 apache-airflow-providers-redis==3.3.1 apache-airflow-providers-sqlite==3.4.3 apache-airflow-providers-ssh==3.7.1 ### Deployment Other Docker-based deployment ### Deployment details We bundle the docker image from AZDO and deploy it into AWS ECS fargate task. DB: RDS Postgresql-12.14 DAGs volume: EFS ### Anything else _No response_ ### Are you willing to submit PR? - [X] 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]
