Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

While airflow initdb, AttributeError: module' object has no attribute 'client_auth'

I have recently installed apache airflow 1.8.1, I executed following command:

airflow initdb

which returned following error:

Traceback (most recent call last):
  File "/usr/bin/airflow", line 18, in <module>
    from airflow.bin.cli import CLIFactory
  File "/usr/lib/python2.7/dist-packages/airflow/bin/cli.py", line 65, in <module>
    auth=api.api_auth.client_auth)
AttributeError: 'module' object has no attribute 'client_auth'

I tried several solutions but it doesn't work.

like image 858
Omar14 Avatar asked Jul 21 '17 08:07

Omar14


1 Answers

I figured out what we were doing wrong. The field auth_backend=airflow.contrib.auth.backends.password_auth needs to be under webserver and not under api. Add it if it is not already there. There are multiple fields for auth_backend as there are authenticate etc..

like image 74
user3776598 Avatar answered Nov 04 '22 04:11

user3776598