question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gantt chart for running dag doesn't show up in Airflow 1.10.11

See original GitHub issue

Apache Airflow version: 1.10.11

Kernel (e.g. uname -a): Linux 20cb927bb9ef 5.3.0-1017-aws #18~18.04.1-Ubuntu SMP Wed Apr 8 15:12:16 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

What happened: Gantt chart for running dags doesn’t show up in RBAC UI & gives javascript errors:

d3.min.js:1 Error: <rect> attribute transform: Expected number, "translate(NaN,8)".

Screenshot from 2020-07-14 11-31-15

How to reproduce it: By checking the gantt chart of a running dag

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:25 (18 by maintainers)

github_iconTop GitHub Comments

3reactions
fallen-upcommented, Aug 7, 2020

@potiuk @kaxil We have the same issue: airflow 1.10.11

[webserver]
rbac = True

airflow_gantt

Tests were performed in incognito mode and in different browsers (latest stable builds of Chrome, Chromium, Brave, Firefox) with clearing cookies. On airflow 1.10.9, 1.10.10 problems were not detected.

2reactions
iercancommented, Sep 17, 2020

Yeah. I’d also love some reproducibility path here. Maybe you can try to help us and narrow it down @thesuperzapper @waltermaldonado @hossein-jazayeri @ibotheperfect by trying different combinations of browsers, using different browser profiles, clearing the cache, etc.

I saw similar things happening when - during development - you use the same URL to test 1.10* and 2.* version of Airflow for example, or simply different versions of Airflow 1.10. In such cases the scripts and cookies get cached from different versions of Airflow and you need to clear cache to fix it - so if you could try it out on your systems that would help us to narrow down the issue.

I deployed airflow via docker by using bitnami’s image. This is happening both 1.10.11 and 1.10.12 versions. I also tried both chrome and firefox. Here is my docker-compose

version: '3'
services:
  postgresql:
    image: postgres:9.6
    environment:
      - POSTGRES_USER=airflow
      - POSTGRES_PASSWORD=airflow
      - POSTGRES_DB=airflow
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - ./pgdata:/var/lib/postgresql/data/pgdata

  redis:
    image: 'redis:5.0.5'
 
  airflow:
    image: bitnami/airflow:1.10.12
    environment:
      - AIRFLOW_DATABASE_NAME=airflow
      - AIRFLOW_DATABASE_USERNAME=airflow
      - AIRFLOW_DATABASE_PASSWORD=airflow
      - AIRFLOW_FERNET_KEY=****
      - AIRFLOW_EXECUTOR=CeleryExecutor
      - AIRFLOW_PASSWORD=airflow
      - AIRFLOW_USERNAME=admin
      - AIRFLOW_LOAD_EXAMPLES=no
    ports:
      - '8080:8080'
    volumes:
      - ./logs:/opt/bitnami/airflow/logs
      - ./dags:/opt/bitnami/airflow/dags

  scheduler:
    image: bitnami/airflow-scheduler:1.10.12
    environment:
      - AIRFLOW_DATABASE_NAME=airflow
      - AIRFLOW_DATABASE_USERNAME=airflow
      - AIRFLOW_DATABASE_PASSWORD=airflow
      - AIRFLOW_EXECUTOR=CeleryExecutor
      - AIRFLOW_FERNET_KEY=****
      - AIRFLOW_LOAD_EXAMPLES=no
    volumes:
      - ./logs:/opt/bitnami/airflow/logs
      - ./dags:/opt/bitnami/airflow/dags

  worker:
    image: bitnami/airflow-worker:1.10.12
    environment:
      - AIRFLOW_DATABASE_NAME=airflow
      - AIRFLOW_DATABASE_USERNAME=airflow
      - AIRFLOW_DATABASE_PASSWORD=airflow
      - AIRFLOW_EXECUTOR=CeleryExecutor
      - AIRFLOW_FERNET_KEY=****
      - AIRFLOW_LOAD_EXAMPLES=no
    volumes:
      - ./logs:/opt/bitnami/airflow/logs
      - ./dags:/opt/bitnami/airflow/dags
Read more comments on GitHub >

github_iconTop Results From Across the Web

subject:"\[GitHub\] \[airflow\] ibotheperfect ... - The Mail Archive
[GitHub] [airflow] ibotheperfect commented on issue #9813: Gantt chart for running dag doesn't show up in Airflow 1.10.11 · 2020-09-17 Thread GitBox.
Read more >
UI / Screenshots — Airflow Documentation
The Gantt chart lets you analyse task duration and overlap. You can quickly identify bottlenecks and where the bulk of the time is...
Read more >
Release Notes — Airflow Documentation
Display parameter values from serialized dag in trigger dag view. ... This dag will not be picked up by Airflow as it's not...
Read more >
Changelog — Airflow Documentation - Apache Airflow
Display DAG run conf in the list view (#6794) ... [AIRFLOW-5277] Gantt chart respects per-user the Timezone UI setting (#8096).
Read more >
Configuration Reference — Airflow Documentation
However, this particular default limit only work when limit is set equal to zero(0) ... The scheduler will not create more DAG runs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found