Skip to content

Airflow DAGs On/Off toggle button not working properly with RBAC=True mode #8599

Closed

Description

@ytiam

I am using an AWS ec2 instance and installed apache-airflow there. Following steps, I am doing in that instance,

  1. After initiating airflow with 'airflow initdb', I created a user with Admin role using 'airflow create_user' option and in airflow.cfg changed rbac = True.
  2. Again ran 'airflow initdb' and 'airflow webserver'. It initiated the webserver.
  3. In another tab, run 'airflow scheduler'
  4. Then using port-forwarding to port forward the 8080 port from the ec2 instance to my local machine
  5. In my local browser, I am just opening localhost:8080/
  6. On Airflow login page, putting credentials of the Admin user, I logged in into Airflow
  7. After toggling ON a dag from UI, when I am refreshing the page or clicking on some other option, the DAG toggling button is automatically turning OFF. and hence I am not able to run any DAG

image

The button I am talking about is on the left side of the DAG name.

Please help anyone

Activity

  1. boring-cyborg commented on Apr 28, 2020

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. pradige commented on Apr 28, 2020

    @pradige

    I'm on the same with u
    maybe y can see response

    <title>400 Bad Request</title>

    Bad Request

    The CSRF token is missing.

    i'm trying to figure it out but nothing to do right now

  3. ytiam commented on Apr 28, 2020

    @ytiam
    Author

    No Clue I am getting, whats the issue exactly happening behind

  4. ytiam commented on Apr 28, 2020

    @ytiam
    Author

    The following issue looks similar to ours:
    https://issues.apache.org/jira/browse/AIRFLOW-2866

  5. Adam-Leyshon commented on Apr 28, 2020

    @Adam-Leyshon

    This is caused by the latest release of Flask-AppBuilder 2.3.3 which updated jQuery to 3.5
    Downgrading to FAB 2.3.2 solved it for us.

    If you look in the developer console, Many errors are raised when visiting the DAG list or a DAG itself.

  6. ytiam commented on Apr 28, 2020

    @ytiam
    Author

    Voila...!! Downgrading to FAB 2.3.2, worked. Thanks a lot @Adam-Leyshon

  7. pradige commented on Apr 28, 2020

    @pradige

    @Adam-Leyshon
    thank you . it also work for me ^^

  8. added this to the Airflow 1.10.11 milestone on Apr 28, 2020
  9. added
    kind:bugThis is a clearly a bug
    and removed on Apr 28, 2020
  10. ryw commented on Apr 28, 2020

    @ryw
    Member

    @ryanahamilton want to look at this? (fixing the jquery 3.5 issue).
    We do want fab 2.3.3 + jquery 3.5 in Airflow to clear CVE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions