ERROR: You need to initialize the database. Please run airflow db init - when upgrading chart from before 7.14 to 8.8.0
#825
Unanswered
jstefanska
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EDIT: We fixed it by adding airflow db init to container command, but still if anybody has info why it was removed in the first place I'd appreciate it - from my understanding, it won't work without initializing metadata db, so why was it removed?
Hi, I have some issue with Airflow deployment with Celery execution on GKE cluster. As this is my first time working with Airflow, and we had a very old version that was not very well maintained by different team, I'm having a bit of a struggle with understanding the error I have.
Each of my pods (web, scheduler, worker) have the following error:
ERROR: You need to initialize the database. Please run airflow db init. Make sure the command is run using Airflow version 2.6.3.and it's in CrashLoopBackOff because of it. I see that in the old Chart there wasairflow init dbcommand in starting script for scheduler. How was it replaced?I use postgres built-in, as it's our scratch environment. Is it an issue with connecting to the DB?
check-dbcan connect to postgres built-in.This is my scheduler manifest:
Beta Was this translation helpful? Give feedback.
All reactions