airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "andy dreyfuss (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-2262) dies with stack trace when AIRFLOW_HOME is null or empty
Date Wed, 28 Mar 2018 00:48:00 GMT
andy dreyfuss created AIRFLOW-2262:
--------------------------------------

             Summary: dies with stack trace when AIRFLOW_HOME is null or empty
                 Key: AIRFLOW-2262
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2262
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: andy dreyfuss


Following PR is a fix: https://github.com/apache/incubator-airflow/pull/3167

 

REPRO:
(1) export AIRFLOW_HOME=
(2) airflow list_dags

EXPECTED: uses default airflow home or at least fails in a reasonable way
ACTUAL: fails with a stack trace

```

{{Traceback (most recent call last): File "/usr/local/bin/airflow", line 17, in <module>
from airflow import configuration File "/usr/local/lib/python2.7/site-packages/airflow/__init__.py",
line 29, in <module> from airflow import configuration as conf File "/usr/local/lib/python2.7/site-packages/airflow/configuration.py",
line 723, in <module> mkdir_p(AIRFLOW_HOME) File "/usr/local/lib/python2.7/site-packages/airflow/configuration.py",
line 712, in mkdir_p raise AirflowConfigException('Had trouble creating a directory') airflow.exceptions.AirflowConfigException:
Had trouble creating a directory}}

{{```}}



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

Mime
View raw message