This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
migrateDatabaseJob fails when upgrading to 2.6.1 with Sentry enabled #31374
Labels
affected_version:2.6
Issues Reported for 2.6
area:core
kind:bug
This is a clearly a bug
pending-response
Apache Airflow version
2.6.1
What happened
When upgrading Airflow from 2.5.3 to 2.6.1 the
airflow-run-migration
job fails.I have deployed the same setup to our DEV environment (where Sentry is disabled) and the upgrade succeeded without an issue.
After that I tried deploying to our PROD environment where Sentry is enabled and the job failed with the error below.
I tried enabling Sentry on DEV and the upgrade failed.
Took a look at
airflow.executors.executor_loader.py
at lines 162-185 when the exception is raised from. Setting the environment variable_AIRFLOW__SKIP_DATABASE_EXECUTOR_COMPATIBILITY_CHECK=1
fixed the error getting in the upgrade job. (Our metadb is Postgres)What you think should happen instead
migrateDatabaseJob should not fail when Sentry is enabled
How to reproduce
Upgrade from 2.5.3 to 2.6.1 with CeleryKubernetesExecutor and Sentry enabled
Operating System
Debian GNU/Linux 11 (bullseye)
Versions of Apache Airflow Providers
apache-airflow-providers-amazon==8.0.0
apache-airflow-providers-celery==3.1.0
apache-airflow-providers-cncf-kubernetes==6.1.0
apache-airflow-providers-common-sql==1.4.0
apache-airflow-providers-docker==3.6.0
apache-airflow-providers-elasticsearch==4.4.0
apache-airflow-providers-ftp==3.3.1
apache-airflow-providers-google==8.3.0
apache-airflow-providers-grpc==3.1.0
apache-airflow-providers-hashicorp==3.3.1
apache-airflow-providers-http==4.3.0
apache-airflow-providers-imap==3.1.1
apache-airflow-providers-jenkins==3.2.1
apache-airflow-providers-microsoft-azure==6.0.0
apache-airflow-providers-mysql==5.0.0
apache-airflow-providers-odbc==3.2.1
apache-airflow-providers-postgres==5.3.1
apache-airflow-providers-redis==3.1.0
apache-airflow-providers-salesforce==5.3.0
apache-airflow-providers-sendgrid==3.1.0
apache-airflow-providers-sftp==4.2.4
apache-airflow-providers-slack==7.2.0
apache-airflow-providers-snowflake==4.0.5
apache-airflow-providers-sqlite==3.3.2
apache-airflow-providers-ssh==3.6.0
apache-airflow-providers-tableau==4.1.0
Deployment
Official Apache Airflow Helm Chart
Deployment details
Airflow deployed on an EKS cluster using the official Airflow Helm Chart (V1.9.0)
MetaBD is a Postgres RDS
CeleryKubernetesExecutor
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: