You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/26 15:09:12 UTC

[GitHub] [airflow] chakir-alaoui opened a new issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

chakir-alaoui opened a new issue #15532:
URL: https://github.com/apache/airflow/issues/15532


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 1.10.15
   https://raw.githubusercontent.com/apache/airflow/constraints-1.10.15/constraints-3.6.txt
   
   
   **Kubernetes version**: 
     Client Version: v1.16.2
     Server Version: v1.14.8-docker-1
   
   
   **Environment**: python 3.6.8 + celeryExecutor  + rbac set to false
   
   - **OS** (e.g. from /etc/os-release): CentOS Linux 7 (Core)
   - **Kernel** (e.g. `uname -a`): 3.10.0-1127.19.1.el7.x86_64 
   
   
   **What happened**:  I have upgraded from 1.10.12 to 1.10.15, when i trigger a dag i have the exception below 
   ![image](https://user-images.githubusercontent.com/31507537/116103616-0b5c8600-a6b0-11eb-9255-c193a705c772.png)
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**: trigger a dag without exceptions
     
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**: use airflow 1.10.15 and try to trigger an example dag example_bash_operator
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**: 
   
   
   How often does this problem occur:  Every time i trigger a dag
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>webserver.log</summary> [2021-04-26 15:03:06,611] {__init__.py:50} INFO - Using executor CeleryExecutor
   [2021-04-26 15:03:06,612] {dagbag.py:417} INFO - Filling up the DagBag from /home/airflow/dags
   175.62.58.93 - - [26/Apr/2021:15:03:10 +0000] "GET /health HTTP/1.1" 200 187 "-" "kube-probe/1.14+"
   175.62.58.93 - - [26/Apr/2021:15:03:11 +0000] "GET /health HTTP/1.1" 200 187 "-" "kube-probe/1.14+"
   175.62.58.93 - - [26/Apr/2021:15:03:15 +0000] "GET /health HTTP/1.1" 200 187 "-" "kube-probe/1.14+"
   175.62.58.93 - - [26/Apr/2021:15:03:16 +0000] "GET /health HTTP/1.1" 200 187 "-" "kube-probe/1.14+"
   [2021-04-26 15:03:17,401] {csrf.py:258} INFO - The CSRF session token is missing.
   10.30.180.137 - - [26/Apr/2021:15:03:17 +0000] "POST /admin/airflow/trigger?dag_id=example_bash_operator&origin=https://xxxxxx/admin/ HTTP/1.1" 400 150 "https://xxxxxxxxxxxx/admin/airflow/trigger?dag_id=example_bash_operator&origin=https://xxxxxxxxxxxx/admin/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"
   175.62.58.93 - - [26/Apr/2021:15:03:20 +0000] "GET /health HTTP/1.1" 200 187 "-" "kube-probe/1.14+"
   175.62.58.93 - - [26/Apr/2021:15:03:21 +0000] "GET /health HTTP/1.1" 200 187 "-" "kube-probe/1.14+" </details>
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] chakir-alaoui closed issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
chakir-alaoui closed issue #15532:
URL: https://github.com/apache/airflow/issues/15532


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] chakir-alaoui commented on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
chakir-alaoui commented on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-827407782


   Thank you Kaxil for your reply , i just tested these 2 scenarios :  
     -  rbac enabled + 2 instances of webserver :   KO ( CSRF SESSION TOKEN missing just after the authentification UI)
     - rbac enabled + 1 instance of webserver : OK
   
   should we use just one instance of webserver for this version ? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] xsqian edited a comment on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
xsqian edited a comment on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-980842072


   Hi there, I installed airflow (2.2.1) with helm install on a Kubernetes cluster with ONLY ONE airflow-webserver, but got the same error message: `The CSRF session token is missing.` What could be the issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] chakir-alaoui commented on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
chakir-alaoui commented on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-827555003


   thank you for your help, it's working now 👍 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] xsqian removed a comment on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
xsqian removed a comment on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-980842072


   Hi there, I installed airflow (2.2.1) with helm install on a Kubernetes cluster with ONLY ONE airflow-webserver, but got the same error message: `The CSRF session token is missing.` What could be the issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-827213661


   Are you running more than one Webserver? Try logging out and logging back in. And please use RBAC UI, we have deprecated the old Flask-Admin UI.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] chakir-alaoui edited a comment on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
chakir-alaoui edited a comment on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-827407782


   Thank you Kaxil for your reply , i just tested these 2 scenarios :  
     -  rbac enabled + 2 instances of webserver :   KO ( CSRF SESSION TOKEN missing just after the authentication UI)
     - rbac enabled + 1 instance of webserver : OK
   
   should we use just one instance of webserver for this version ? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-827500255


   @chakir-alaoui When you use more than 1 Webservers, make sure `[webserver] secret_key` is set same across both of them.
   
   If you don't set it by it will generate a random ones and since both webserver will have different keys, one of them will error.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] eladkal commented on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-827530845


   @kaxil is it the same issue as https://github.com/apache/airflow/issues/13357 ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-826913939


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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] xsqian commented on issue #15532: Airflow 1.10.15 : The CSRF session token is missing when i try to trigger a new dag

Posted by GitBox <gi...@apache.org>.
xsqian commented on issue #15532:
URL: https://github.com/apache/airflow/issues/15532#issuecomment-980842072


   Hi there, I installed airflow (airflow-1.3.0) with helm install on a Kubernetes cluster with ONLY ONE airflow-webserver, but got the same error message: `The CSRF session token is missing.` What could be the issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org