[ https://issues.apache.org/jira/browse/AIRFLOW-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16395618#comment-16395618 ]
ASF subversion and git services commented on AIRFLOW-2204: ---------------------------------------------------------- Commit 022b7ae3f3c6492f1188c5bcd28a65fc0222ee5a in incubator-airflow's branch refs/heads/master from [~bbonagura9] [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=022b7ae ] [AIRFLOW-2204] Fix webserver debug mode The command `airflow webserver -d` crashes because it tries to call the method run from the cached_app returned value, i.e. a DispatcherMiddleware instance. To run the flask app in debug mode (without gunicorn) it has to be created directly via create_app, that returns a Flask instance. Ref: https://issues.apache.org/jira/browse/AIRFLOW-2204 > Broken webserver debug mode > --------------------------- > > Key: AIRFLOW-2204 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2204 > Project: Apache Airflow > Issue Type: Bug > Components: webapp, webserver > Affects Versions: 1.9.0 > Reporter: Bruno Bonagura > Assignee: Bruno Bonagura > Priority: Minor > Fix For: 1.10.0 > > > {code} > $ airflow webserver -d > [2018-03-09 21:04:25,730] {__init__.py:45} INFO - Using executor LocalExecutor > ____________ _____________ > ____ |__( )_________ __/__ /________ __ > ____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / / > ___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ / > _/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ > > [2018-03-09 21:04:26,003] {models.py:196} INFO - Filling up the DagBag from > /.../incubator-airflow/dags > Starting the web server on port 8080 and host 0.0.0.0. > Traceback (most recent call last): > File "/.../.virtualenvs/incubator-airflow/bin/airflow", line 6, in <module> > exec(compile(open(__file__).read(), __file__, 'exec')) > File "/.../incubator-airflow/airflow/bin/airflow", line 27, in <module> > args.func(args) > File "/.../incubator-airflow/airflow/bin/cli.py", line 716, in webserver > app.run(debug=True, port=args.port, host=args.hostname, > AttributeError: 'DispatcherMiddleware' object has no attribute 'run' > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)