Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

660
Views
Failed to import authentication backend after changing the airflow.cfg

After changing the airflow.cfg, I simply changed the authenticate to True like this:

[webserver]
authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth

when I run command airflow webserver, there was an Error as below:

  File "/home/airflow/.pyenv/versions/3.7.3/lib/python3.7/site-packages/airflow/contrib/auth/backends/password_auth.py", line 33, in <module>
    from flask_bcrypt import generate_password_hash, check_password_hash
ModuleNotFoundError: No module named 'flask_bcrypt'

...

File "/home/airflow/.pyenv/versions/3.7.3/lib/python3.7/site-packages/airflow/__init__.py", line 73, in load_login
    raise AirflowException("Failed to import authentication backend")
airflow.exceptions.AirflowException: Failed to import authentication backend

Just added the content in airflow.cfg file.

[webserver]
authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Solved it .

pip install flask-bcrypt
over 4 years ago · Santiago Trujillo Report

0

pip3 install flask-bcrypt --user

did the trick for me.

over 4 years ago · Santiago Trujillo Report

0

The official way to fix this error is by installing the password subpackage, which will pull in the needed dependencies for password authentication.

pip install 'apache-airflow[password]'

A list of available subpackages is available in the airflow docs.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!