Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-3124

Broken webserver debug mode (RBAC)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.1
    • Component/s: ui
    • Labels:

      Description

      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'
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajkosel Aaron Kosel
                Reporter:
                ajkosel Aaron Kosel
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: