Under which category would you file this issue?
Airflow Core
Apache Airflow version
3.1.8
What happened and how to reproduce it?
I run into a problem when updating airflow from 3.1.8 to 3.2.2
Setup
- Upgrading Apache Airflow 3.1.8 → 3.2.2, Python 3.13 → 3.14.
- Helm chart 1.18.0, kept as-is (image-only bump)
- Metadata DB is PostgreSQL, accessed through in-house pgbouncer (not Airflow's)
- Previous 3.0 → 3.1.8 upgrade completed with no downtime, through the Airflow chart's own pgbouncer.
Migrations involved
What happened:
- The migration log shows all 22 core revisions applying in ~3 seconds, then the run moved on to the FAB chain (6709f7a774b9 → 02ca36b0235b).
- The migration job pod then kept running for ~50 minutes. During that time the migration was not progressing (it seemed like it hanged, there weren't any errors in the migrations pod).
- New 3.2.2 pods were in CrashLoopBackOff: their wait-for-airflow-migrationsinit container runs airflow db check-migrations, which times out after 60 seconds. The init log shows it counting up and then raising TimeoutError: There are still unapplied migrations after 60 seconds, withMigrationHead(s) in DB: {'1d6611b6ab7c'}equal toMigration Head(s) in Source Code: {'1d6611b6ab7c'}(i.e. the core head matched). These pods only reached the init container; their main containers never started.
- Old 3.1.8 pods were crashing, reporting that the DB needed migration ("you need to run airflow db migrate in airflow 3.1.8").
- After i manually deleted one of the crashlooping new pods, the migration pod appeared to finish (i think it somehow restarted) and the other pods began recovering.
What you think should happen instead?
Migrations are applied correctly and upgrade is completed without issues
Operating System
Ubuntu
Deployment
Other Docker-based deployment
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
No response
Official Helm Chart version
1.18.0
Kubernetes Version
Not Applicable
Helm Chart configuration
Not Applicable
Docker Image customizations
Not applicable
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Under which category would you file this issue?
Airflow Core
Apache Airflow version
3.1.8
What happened and how to reproduce it?
I run into a problem when updating airflow from 3.1.8 to 3.2.2
Setup
Migrations involved
What happened:
What you think should happen instead?
Migrations are applied correctly and upgrade is completed without issues
Operating System
Ubuntu
Deployment
Other Docker-based deployment
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
No response
Official Helm Chart version
1.18.0
Kubernetes Version
Not Applicable
Helm Chart configuration
Not Applicable
Docker Image customizations
Not applicable
Anything else?
No response
Are you willing to submit PR?
Code of Conduct