[
https://issues.apache.org/jira/browse/AIRFLOW-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ash Berlin-Taylor resolved AIRFLOW-4305.
----------------------------------------
Resolution: Done
Fix Version/s: (was: 1.10.4)
> DAGs not showing in Web UI if Scheduler is not run at least once
> ----------------------------------------------------------------
>
> Key: AIRFLOW-4305
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4305
> Project: Apache Airflow
> Issue Type: Bug
> Components: ui
> Affects Versions: 1.10.3
> Environment: Linux (archlinux), Pyton 3.7
> Reporter: Andreas Költringer
> Priority: Major
> Labels: webapp
> Attachments: Screen Shot 2019-04-17 at 18.47.56.png
>
>
> 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)