airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Ward (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-2103) Authentication using password_auth backend prevents webserver from running
Date Mon, 12 Feb 2018 19:56:00 GMT
Mark Ward created AIRFLOW-2103:

             Summary: Authentication using password_auth backend prevents webserver from running
                 Key: AIRFLOW-2103
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Mark Ward

airflow webserver fails to run with config

authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth
and errors out with following traceback


Traceback (most recent call last):

  File "/usr/local/bin/airflow", line 4, in <module>

    __import__('pkg_resources').run_script('apache-airflow==1.10.0.dev0+incubating', 'airflow')

  File "/usr/local/lib/python3.6/site-packages/pkg_resources/", line 750, in run_script

    self.require(requires)[0].run_script(script_name, ns)

  File "/usr/local/lib/python3.6/site-packages/pkg_resources/", line 1527, in

    exec(code, namespace, namespace)

  File "/usr/local/lib/python3.6/site-packages/apache_airflow-1.10.0.dev0+incubating-py3.6.egg/EGG-INFO/scripts/airflow",
line 27, in <module>


  File "/usr/local/lib/python3.6/site-packages/apache_airflow-1.10.0.dev0+incubating-py3.6.egg/airflow/bin/",
line 696, in webserver

    app = cached_app(conf)

  File "/usr/local/lib/python3.6/site-packages/apache_airflow-1.10.0.dev0+incubating-py3.6.egg/airflow/www/",
line 176, in cached_app

    app = create_app(config, testing)

  File "/usr/local/lib/python3.6/site-packages/apache_airflow-1.10.0.dev0+incubating-py3.6.egg/airflow/www/",
line 63, in create_app

    from airflow.www import views

  File "/usr/local/lib/python3.6/site-packages/apache_airflow-1.10.0.dev0+incubating-py3.6.egg/airflow/www/",
line 97, in <module>

    login_required = airflow.login.login_required

AttributeError: module 'airflow.contrib.auth.backends.password_auth' has no attribute 'login_required'
Broke at [] with the changing of 

from flask_login import login_required, current_user, logout_user


from flask_login import current_user



This message was sent by Atlassian JIRA

View raw message