Open kanottonp opened 5 months ago
@kanottonp the only thing I could think of might be that your RDS database might have become corrupted.
If this is a new Airflow deployment (so you don't care about the old run metadata), you might try dropping the airflow
database and recreating it.
@thesuperzapper I've already drop the database (also try delete RDS and recreate it) but the result is still the same, while the db-migration has done well. is there anything i have to look into? I have no idea what i was wrong
airflow-db-migrations logs after trying create new db
/home/airflow/.local/lib/python3.11/site-packages/airflow/configuration.py:738 DeprecationWarning: The sql_alchemy_conn option in [core] has been moved to the sql_alchemy_conn option in [database] - the old setting has been used, but please update your config.
/home/airflow/.local/lib/python3.11/site-packages/airflow/settings.py:195 DeprecationWarning: The sql_alchemy_conn option in [core] has been moved to the sql_alchemy_conn option in [database] - the old setting has been used, but please update your config.
/home/airflow/.local/lib/python3.11/site-packages/airflow/models/base.py:72 DeprecationWarning: The sql_alchemy_conn option in [core] has been moved to the sql_alchemy_conn option in [database] - the old setting has been used, but please update your config.
[[34m2024-06-28T04:53:16.592+0000[0m] {[34mdb.py:[0m813} INFO[0m - Waiting for migrations... 0 second(s)[0m
[[34m2024-06-28T04:53:16.595+0000[0m] {[34mdb_migrations.py:[0m53} WARNING[0m - there are unapplied db migrations, triggering apply...[0m
[[34m2024-06-28T04:53:16.595+0000[0m] {[34mdb_migrations.py:[0m45} INFO[0m - -------- START - APPLY DB MIGRATIONS --------[0m
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.runtime.migration] Running stamp_revision -> 686269002441
INFO [/mnt/scripts/db_migrations.py] -------- FINISH - APPLY DB MIGRATIONS --------```
Checks
User-Community Airflow Helm Chart
.Chart Version
8.9.0
Kubernetes Version
Helm Version
Description
I was trying to run deployment with the below helm chart on EKS.
Every services look great but not with airflow-sync-user. There is an error
sqlalchemy.exc.InvalidRequestError: Multiple classes found for path "Permission" in the registry of this declarative base. Please use a fully module-qualified path.
I don't know why but I think that I didn't modify the Helm values that much. Please take a look to it.Thank you!
Relevant Logs
Custom Helm Values