Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B995D200CDB for ; Sat, 5 Aug 2017 15:20:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7E88165BBA; Sat, 5 Aug 2017 13:20:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 07EBF165B85 for ; Sat, 5 Aug 2017 15:20:16 +0200 (CEST) Received: (qmail 50757 invoked by uid 500); 5 Aug 2017 13:20:11 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 50748 invoked by uid 99); 5 Aug 2017 13:20:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Aug 2017 13:20:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 114F7C3043 for ; Sat, 5 Aug 2017 13:20:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BTBPPd0Axrv5 for ; Sat, 5 Aug 2017 13:20:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6255C60D26 for ; Sat, 5 Aug 2017 13:20:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A57AFE0044 for ; Sat, 5 Aug 2017 13:20:06 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3818B24161 for ; Sat, 5 Aug 2017 13:20:03 +0000 (UTC) Date: Sat, 5 Aug 2017 13:20:03 +0000 (UTC) From: "Lance Dacey (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-1102) 'airflow webserver' doesn't work with gunicorn 19.4+ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 05 Aug 2017 13:20:17 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115398#comment-16115398 ] Lance Dacey commented on AIRFLOW-1102: -------------------------------------- Hi, what is the fix for this? I installed 19.3 but I still get the same error. My webserver has been running fine since May 2017. I turned it off temporarily and when I tried to start it up again, I just keep getting this error. > 'airflow webserver' doesn't work with gunicorn 19.4+ > ---------------------------------------------------- > > Key: AIRFLOW-1102 > URL: https://issues.apache.org/jira/browse/AIRFLOW-1102 > Project: Apache Airflow > Issue Type: Bug > Components: dependencies > Reporter: Yuu Yamashita > > {{airflow webserver}} will show an error of "Error: 'airflow.www.gunicorn_config' doesn't exist" if it invoked with gunicorn 19.4+, just like the following example. > {noformat} > % airflow webserver > [2017-04-11 05:34:28,945] {__init__.py:57} INFO - Using executor LocalExecutor > ____________ _____________ > ____ |__( )_________ __/__ /________ __ > ____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / / > ___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ / > _/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ > [2017-04-11 05:34:29,968] [32339] {models.py:167} INFO - Filling up the DagBag from ./dags > [2017-04-11 05:34:30,427] [32339] {connectionpool.py:735} INFO - Starting new HTTPS connection (1): sts.amazonaws.com > Running the Gunicorn Server with: > Workers: 4 sync > Host: 0.0.0.0:8081 > Timeout: 120 > Logfiles: - - > ================================================================= > Error: 'airflow.www.gunicorn_config' doesn't exist > {noformat} > At present, it seems that airflow is configured to require gunicorn prior to 19.4. It should be fixed intrinsically for future upgrade of gunicorn anyways. > https://github.com/benoitc/gunicorn/blob/19.4/gunicorn/app/base.py#L111-L119 > Starting from {{gunicorn}} 9.4, it seems it started requiring prefix "python:" for module name passed to {{-c}}. Because {{airflow webserver}} [is specifying airflow.www.gunicorn_config|https://github.com/apache/incubator-airflow/blob/6b1c327ee886488eedbe8a8721708b89f37d5560/airflow/bin/cli.py#L779] as {{-c}} for {{gunicorn}}, it won't work with gunicorn 9.4+ > * gunicorn 9.3: https://github.com/benoitc/gunicorn/blob/19.3/gunicorn/app/base.py#L111-L114 > * gunicorn 9.4: https://github.com/benoitc/gunicorn/blob/19.4/gunicorn/app/base.py#L111-L119 > I've opened [a PR to gunicorn|https://github.com/benoitc/gunicorn/pull/1499] to restore original behavior prior to 19.3. However, it'd be also better to be fixed in {{airflow webserver}} itself. > h5. See also > * https://github.com/benoitc/gunicorn/pull/1068 -- This message was sent by Atlassian JIRA (v6.4.14#64029)