Error airflow running

Hi All,

I got this error when do command → airflow initdb
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DuplicateTable) relation “dag_stats” already exists
Have anyone suggestion?

Thank you

Hi Siswanto,

Are you installing this into an already existing airflow installation? If the database was already created you would get that error because the initdb script won’t delete anything preexisting.

Ralph