Skip to content

Users table not created even after running airflow db init #13016

Answered by XD-DENG
shubhamc183 asked this question in Q&A
Discussion options

You must be logged in to vote

I think a few things have been mixed here:

  • In 1.10.* versions, there are two sets of UIs. users table is only for the Flask-Admin based UI; If you are using RBAC UI which is Flask-AppBuilder based, the users you create are in table ab_user and users will not exist.
  • airflow db init is the new style CLI introduced in 2.0.0 (it's also available in 1.10.13/14 which are bridge versions). I'm not even sure if airflow db init would work in 1.10.12. Instead, you may use airflow initdb in 1.10.12.

What I would suggest is:

  • double check if you are using RBAC UI, and confirm if it's what you prefer to use
  • when you read the documentation on Airflow website, choose the version that you have installe…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@shubhamc183
Comment options

@XD-DENG
Comment options

Answer selected by XD-DENG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants