[
https://issues.apache.org/jira/browse/AIRFLOW-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Költringer updated AIRFLOW-4305:
----------------------------------------
Description:
Dags do not show up in the Web UI for new airflow instances.
Steps to reproduce:
{{mkdir temp && cd temp}}
{{python -m venv venv}}
{{source venv/bin/activate}}
{{pip install
apache-airflow[celery,rabbitmq,crypto,password,postgres]==1.10.3}}
{{export AIRFLOW_HOME=$(pwd)}}
{{airflow upgradedb}}
{{airflow webserver}}
Neither the "example dags" nor any dags dropped into {{dags/}} show up.
Some more facts:
* Interestingly, when replacing {{airflow upgradedb}} with {{airflow initdb}}
it works as expected. I thought, using {{airflow upgradedb}} was safe b/c it is
mentioned here:
[https://medium.com/datareply/airflow-lesser-known-tips-tricks-and-best-practises-cf4d4a90f8f]
* Also, the version with {{airflow upgradedb}} works as expected with
{{v1.10.2}}.
Updates:
* {{initdb}} does insert DAGs into the database, while {{upgradedb}} does not:
[https://github.com/apache/airflow/blob/master/airflow/utils/db.py#L292]
*
was:
Dags do not show up in the Web UI for new airflow instances.
Steps to reproduce:
{{mkdir temp && cd temp}}
{{python -m venv venv}}
{{source venv/bin/activate}}
{{pip install
apache-airflow[celery,rabbitmq,crypto,password,postgres]==1.10.3}}
{{export AIRFLOW_HOME=$(pwd)}}
{{airflow upgradedb}}
{{airflow webserver}}
Neither the "example dags" nor any dags dropped into {{dags/}} show up.
Some more facts:
* Interestingly, when replacing {{airflow upgradedb}} with {{airflow initdb}}
it works as expected. I thought, using {{airflow upgradedb}} was safe b/c it is
mentioned here:
[https://medium.com/datareply/airflow-lesser-known-tips-tricks-and-best-practises-cf4d4a90f8f]
* Also, the version with {{airflow upgradedb}} works as expected with
{{v1.10.2}}.
> DAGs not showing in Web UI
> --------------------------
>
> Key: AIRFLOW-4305
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4305
> Project: Apache Airflow
> Issue Type: Bug
> Components: webapp
> Affects Versions: 1.10.3
> Environment: Linux (archlinux), Pyton 3.7
> Reporter: Andreas Költringer
> Priority: Major
>
> Dags do not show up in the Web UI for new airflow instances.
> Steps to reproduce:
> {{mkdir temp && cd temp}}
> {{python -m venv venv}}
> {{source venv/bin/activate}}
> {{pip install
> apache-airflow[celery,rabbitmq,crypto,password,postgres]==1.10.3}}
> {{export AIRFLOW_HOME=$(pwd)}}
> {{airflow upgradedb}}
> {{airflow webserver}}
> Neither the "example dags" nor any dags dropped into {{dags/}} show up.
> Some more facts:
> * Interestingly, when replacing {{airflow upgradedb}} with {{airflow
> initdb}} it works as expected. I thought, using {{airflow upgradedb}} was
> safe b/c it is mentioned here:
> [https://medium.com/datareply/airflow-lesser-known-tips-tricks-and-best-practises-cf4d4a90f8f]
> * Also, the version with {{airflow upgradedb}} works as expected with
> {{v1.10.2}}.
>
> Updates:
> * {{initdb}} does insert DAGs into the database, while {{upgradedb}} does
> not: [https://github.com/apache/airflow/blob/master/airflow/utils/db.py#L292]
> *
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)