Airflow v3 - Issue with FAB Auth – Missing "session" Table After Fresh Install #55549
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Look at fab docs. If you migrated Airflow without FAB, you need to use FAB specific CLI to setup/migrate fab database https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/upgrading.html# |
Beta Was this translation helpful? Give feedback.
-
@potiuk - Thanks for the input. Since v3 segregated FAB required to run the |
Beta Was this translation helpful? Give feedback.
-
@potiuk - So here is my observation, if we setup basic Airflow with SimpleAuth first Post initial setup update airflow.cfg to move to FAB, run High Level sequence followed
Hope this helps someone, if a direct v3 install is attempted step by step using PyPI method and then subsequent enablement of FAB. |
Beta Was this translation helpful? Give feedback.
@potiuk - So here is my observation, if we setup basic Airflow with SimpleAuth first
airflow db migrate
is done without any FAB reference even though the provider is installed,airflow db migrate
will not create session table which is expected.Post initial setup update airflow.cfg to move to FAB, run
airflow db migrate
orairflow fab-db migrate
-> These will only provision ab_* tables, but session table will be missing.I finally did
airflow db reset
-> This provisioned the only missing session tableThen do
airflow create user
to provision the first user and all also seed the base roles, permissions, etc. for FABHigh Level sequence followed
Update airflow.cfg:
external_db_managers = ai…