Skip to main content

Fixed: "Bundle 'dags-folder' path does not exist … This may cause DAG loading issues" in Apache Airflow®

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

The first start of Apache Airflow® in a new folder went fine until the Dag processor printed a warning: Bundle 'dags-folder' path does not exist, followed by Found 0 files. Nothing was broken yet, but Airflow had nowhere to look for Dags. The fix is one mkdir, and this post shows how I found that out.

What I Was Doing​

I was setting up a new Airflow 3.4.0 project for a tutorial: a virtual environment, AIRFLOW_HOME pointing at the project folder, and then airflow standalone. I hadn't written a Dag yet, so the project had no dags folder.

What I Expected​

Airflow to start and look for Dags in dags inside the project, finding none, without complaint.

What I Got​

Terminal
airflow standalone
Output (excerpt)
dag-processor | 2026-12-01T03:21:02.581432Z [info ] DAG bundles loaded: dags-folder [airflow.dag_processing.bundles.manager.DagBundlesManager] loc=manager.py:344
dag-processor | 2026-12-01T03:21:02.587716Z [warning ] Bundle 'dags-folder' path does not exist: /Users/you/source/bundle-path/dags. This may cause DAG loading issues. [airflow.dag_processing.bundles.base] loc=base.py:349
dag-processor | 2026-12-01T03:21:02.588384Z [info ] Searching for Dag definitions in dags-folder at /Users/you/source/bundle-path/dags [airflow.dag_processing.manager.DagFileProcessorManager] loc=manager.py:1012
dag-processor | 2026-12-01T03:21:02.588598Z [info ] Found 0 files for bundle dags-folder (dag_discovery_safe_mode=True) [airflow.dag_processing.manager.DagFileProcessorManager] loc=manager.py:1033

The airflow standalone output: the Dag processor loads the dags-folder bundle, warns Bundle 'dags-folder' path does not exist with the path to the dags folder, This may cause DAG loading issues, then searches that path and finds 0 files.

The warning came once, when the Dag processor started. Every refresh after it logged Found 0 files.

What I Checked​

Where Airflow looks for Dags. In Airflow 3, Dags come from bundles. The default one, dags-folder, reads the folder in the [core] dags_folder setting:

Terminal
airflow config get-value core dags_folder
Output
/Users/you/source/bundle-path/dags

That's the path in the warning. The setting's description in Airflow's configuration reference says it's "The folder where your airflow pipelines live", and its default is {AIRFLOW_HOME}/dags.

Whether the folder existed. It didn't: the project held only airflow.cfg, the database, logs and the password file, all created by Airflow on that first start.

What Airflow does about it. The warning comes from the start-up code of a bundle in Airflow 3.4.0 (airflow/dag_processing/bundles/base.py): if the bundle's path doesn't exist, it logs this warning and carries on. Nothing creates the folder.

Why It Happens​

Airflow creates airflow.cfg, the database and logs in a new AIRFLOW_HOME on its own, but not dags. The Dag processor then reads a path that isn't there, warns, and finds no files. Any Dag you write has to be in that folder, so it has to exist.

The Fix​

Stop Airflow with Ctrl+C. Create the folder:

Terminal
mkdir dags

Put a Dag in it. A small one, dags/hello.py:

dags/hello.py
from airflow.sdk import dag, task


@dag(schedule=None)
def hello():
@task
def say_hello():
print("Hello from Airflow")

say_hello()


hello()

Then start Airflow again with airflow standalone.

After the Fix​

Output (excerpt)
dag-processor | 2026-12-01T03:21:57.042978Z [info ] Searching for Dag definitions in dags-folder at /Users/you/source/bundle-path/dags [airflow.dag_processing.manager.DagFileProcessorManager] loc=manager.py:1012
dag-processor | 2026-12-01T03:21:57.043488Z [info ] Found 1 files for bundle dags-folder (dag_discovery_safe_mode=True) [airflow.dag_processing.manager.DagFileProcessorManager] loc=manager.py:1033
...
dag-processor | 2026-12-01T03:21:58.874061Z [info ] Creating ORM DAG for hello [airflow.dag_processing.collection] loc=collection.py:104

The airflow standalone output after the fix: no warning, Found 1 files for bundle dags-folder, and Creating ORM DAG for hello.

No warning. The Dag processor found one file, and Creating ORM DAG for hello means it stored the hello Dag in the database, so it shows up in the UI.

Common Mistakes​

MistakeWhat happensDo this instead
Creating dags in another folderThe warning stays: Airflow reads $AIRFLOW_HOME/dagscd into your AIRFLOW_HOME first, or check the path in the warning
Naming it dagThe path still doesn't existUse the exact path from the warning
Ignoring the warningDags you write later in the wrong place never appearCreate the folder the warning names

Troubleshooting​

SymptomLikely causeFix
Found 0 files with the folder in placeThe folder is empty, or your Dag file is elsewherePut the .py file in the folder from the warning
The path in the warning isn't your projectAIRFLOW_HOME isn't set in this terminalExport it, then start again

FAQ​

Is the warning harmful?​

Not by itself: Airflow keeps running. It tells you Airflow can't load any Dags until the folder exists.

Can I keep my Dags somewhere else?​

Yes: set [core] dags_folder to an absolute path. The warning then names that path if it doesn't exist.

Conclusion​

Bundle 'dags-folder' path does not exist meant exactly that: [core] dags_folder pointed at dags in my AIRFLOW_HOME, which Airflow doesn't create. After mkdir dags and a Dag file in it, Airflow found the file and created the Dag, with no warning.

Additional Resources​

Apache®, Apache Airflow and Airflow® are either registered trademarks or trademarks of The Apache Software Foundation in the United States and/or other countries. No endorsement by The Apache Software Foundation is implied by the use of these marks.