You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aizhamal Nurmamat kyzy (JIRA)" <ji...@apache.org> on 2019/05/18 03:14:05 UTC

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

     [ https://issues.apache.org/jira/browse/AIRFLOW-3124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aizhamal Nurmamat kyzy updated AIRFLOW-3124:
--------------------------------------------
         Labels: webapp  (was: )
    Component/s:     (was: webserver)
                     (was: webapp)
                 ui

Moving to ui component as part of component refactor. Webapp component will be removed.

> Broken webserver debug mode (RBAC)
> ----------------------------------
>
>                 Key: AIRFLOW-3124
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3124
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: ui
>            Reporter: Aaron Kosel
>            Assignee: Aaron Kosel
>            Priority: Minor
>              Labels: webapp
>             Fix For: 1.10.1
>
>
> {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)