You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aizhamal Nurmamat kyzy (JIRA)" <ji...@apache.org> on 2019/05/18 03:14:04 UTC

[jira] [Updated] (AIRFLOW-4305) DAGs not showing in Web UI if Scheduler is not run at least once

     [ https://issues.apache.org/jira/browse/AIRFLOW-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aizhamal Nurmamat kyzy updated AIRFLOW-4305:
--------------------------------------------
         Labels: webapp  (was: )
    Component/s:     (was: webapp)
                 ui

Moving to ui component as part of component refactor. Webapp component will be removed.

> 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
>             Fix For: 1.10.4
>
>         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)