You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aaron Kosel (JIRA)" <ji...@apache.org> on 2018/09/26 23:11:00 UTC

[jira] [Created] (AIRFLOW-3124) Broken webserver debug mode (RBAC)

Aaron Kosel created AIRFLOW-3124:
------------------------------------

             Summary: Broken webserver debug mode (RBAC)
                 Key: AIRFLOW-3124
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3124
             Project: Apache Airflow
          Issue Type: Bug
          Components: webapp, webserver
            Reporter: Aaron Kosel
            Assignee: Aaron Kosel


{code:java}
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/airflow/airflow/bin/airflow", line 32, in <module>
args.func(args)
File "/airflow/airflow/utils/cli.py", line 74, in wrapper
return f(*args, **kwargs)
File "/airflow/airflow/bin/cli.py", line 875, in webserver
app.run(debug=True, port=args.port, host=args.hostname,
AttributeError: 'tuple' object has no attribute 'run'
{code}
Nearly the same issue as https://issues.apache.org/jira/browse/AIRFLOW-2204, but only affecting RBAC debug mode. The problem is that `create_app` returns a tuple, but the `cli` script expects to just receive the flask app back without the appbuilder.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)