You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "andy dreyfuss (JIRA)" <ji...@apache.org> on 2018/03/28 00:48:00 UTC

[jira] [Created] (AIRFLOW-2262) dies with stack trace when AIRFLOW_HOME is null or empty

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)