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/01/29 08:05:30 UTC

[GitHub] [airflow] Anjali-bisht opened a new issue #13971: airflow webserver error when updated to airflow 2.0

Anjali-bisht opened a new issue #13971:
URL: https://github.com/apache/airflow/issues/13971


   <!--
   
   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.
   
   -->
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: MAC
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**: PIP3
   - **Others**:
   
   **What happened**:
   
   <!-- (please include exact error messages if you can) -->
   
   **Something bad has happened.
   Please consider letting us know by creating a bug report using GitHub.
   
   Python version: 3.9.0
   Airflow version: 2.0.0
   Node: 192-168-1-101.tpgi.com.au
   -------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1953, in full_dispatch_request
       return self.finalize_request(rv)
     File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1970, in finalize_request
       response = self.process_response(response)
     File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2269, in process_response
       self.session_interface.save_session(self, ctx.session, response)
     File "/usr/local/lib/python3.9/site-packages/flask/sessions.py", line 379, in save_session
       response.set_cookie(
     File "/usr/local/lib/python3.9/site-packages/werkzeug/wrappers/base_response.py", line 468, in set_cookie
       dump_cookie(
     File "/usr/local/lib/python3.9/site-packages/werkzeug/http.py", line 1217, in dump_cookie
       raise ValueError("SameSite must be 'Strict', 'Lax', or 'None'.")
   ValueError: SameSite must be 'Strict', 'Lax', or 'None'.**
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   <!---
   
   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? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </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] potiuk closed issue #13971: airflow webserver error when updated to airflow 2.0

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #13971:
URL: https://github.com/apache/airflow/issues/13971


   


----------------------------------------------------------------
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] jhtimmins commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   @kaxil @potiuk @gdevanla Isn't this because migrating from 1.X to 2.0 requires the 2.0 config file (plus whatever custom configs you have), but if Airflow already has a `.config` file from 1.X, the 2.0 won't be used?


----------------------------------------------------------------
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] jhtimmins commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   @kaxil @potiuk @gdevanla Isn't this because migrating from 1.X to 2.0 requires the 2.0 config file (plus whatever custom configs you have), but if Airflow already has a `.config` file from 1.X, the 2.0 won't be used?


----------------------------------------------------------------
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] kurtqq commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   I reported this several hours ago as well in https://github.com/apache/airflow/issues/11871
   i still see this error when opening the webserver using breeze with master if I select SQLite as database.
   I don't see this for MySQL / PostgreSql


----------------------------------------------------------------
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] turbaszek commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   @kaxil I can confirm that setting `Lax` solved the issue (sorry for late response) 


----------------------------------------------------------------
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] turbaszek edited a comment on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Shouldn't https://github.com/apache/airflow/pull/11873 fixed it @kaxil ?


----------------------------------------------------------------
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 #13971: airflow webserver error when updated to airflow 2.0

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


   I was not able to reproduce this with breeze:
   
   This is what I ran and worked fine
   ```
    ./breeze start-airflow  --backend sqlite --python 3.6  --force-pull-images
   ```


----------------------------------------------------------------
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] turbaszek commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   @potiuk I installed airflow from master using constraints and Python 3.6 and I faced the same 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.

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



[GitHub] [airflow] turbaszek commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Shouldn't https://github.com/apache/airflow/pull/11873 fix it @kaxil ?


----------------------------------------------------------------
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] potiuk commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Also no matter what. The problem you might have is that you are using Python 3.9. Python 3.9 is NOT officially supported yet by Airflow. You need to downgrade Python to 3.8 @Anjali-bisht.
   
   Please also follow the installation guide http://airflow.apache.org/docs/apache-airflow/stable/installation.html when you install airflow. You need to run Airflow with the right `--constraint` flag if you want to make sure all dependencies are installed in proper versions.
   
   I am closing this issue as invalid for now (Python 3.9) - please try with Python 3.8 (and recommended installation method) if you still see a problem please report additional information here including `pip check` and we will reopen it if we see that the problem still persist. 
   


----------------------------------------------------------------
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] potiuk edited a comment on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Also no matter what - the problem you might have is that you are using Python 3.9. Python 3.9 is NOT officially supported yet by Airflow. You need to downgrade Python to 3.8 @Anjali-bisht.
   
   Please also follow the installation guide http://airflow.apache.org/docs/apache-airflow/stable/installation.html when you install airflow. You need to run Airflow with the right `--constraint` flag if you want to make sure all dependencies are installed in proper versions.
   
   I am closing this issue as invalid for now (Python 3.9) - please try with Python 3.8 (and recommended installation method) if you still see a problem please report additional information here including `pip check` and we will reopen it if we see that the problem still persist. 
   


----------------------------------------------------------------
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 #13971: airflow webserver error when updated to airflow 2.0

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


   https://github.com/apache/airflow/pull/14183 should take care of this for users migrating from 1.10.x to 2.0.x with same config


----------------------------------------------------------------
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] potiuk commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Can you run `pip check` ? and report what you see?


----------------------------------------------------------------
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 #13971: airflow webserver error when updated to airflow 2.0

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


   Yes that is true @jhtimmins . If the config is already there the user needs to update to `Lax` which is the current default.
   
   We could actually add a check to make it easier. Let me see if I can reproduce this with a 1.10.x config


----------------------------------------------------------------
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] potiuk commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Wohoo. needs more investigation then :)


----------------------------------------------------------------
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] potiuk edited a comment on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Can you please run `pip check` ? and report what you see @Anjali-bisht ?


----------------------------------------------------------------
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] gdevanla commented on issue #13971: airflow webserver error when updated to airflow 2.0

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


   I observe the same issue. Here is what I think the issue is:
   
   In previous versions of airflow, the `cookie_samsite` value in the config file was allowed to be `empty`.  But, looks like it required from Airflow 2.0.0 onwards.  Setting that value to `lax` or `Strict`should resolve this issue, I think.


----------------------------------------------------------------
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 #13971: airflow webserver error when updated to airflow 2.0

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


   > @potiuk I installed airflow from master using constraints and Python 3.6 and I faced the same issue
   
   Can you try with just Airflow 2.0.0 too --- that seems weird -- unless a recently merged change did something or due to a new version of some library. Any who I will also test and report back later today


----------------------------------------------------------------
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 #13971: airflow webserver error when updated to airflow 2.0

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


   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] potiuk edited a comment on issue #13971: airflow webserver error when updated to airflow 2.0

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


   Can you run `pip check` ? and report what you see @Anjali-bisht ?


----------------------------------------------------------------
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 closed issue #13971: airflow webserver error when updated to airflow 2.0

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #13971:
URL: https://github.com/apache/airflow/issues/13971


   


----------------------------------------------------------------
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 #13971: airflow webserver error when updated to airflow 2.0

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


   @Anjali-bisht / @turbaszek / @kurtqq Can you folks try changing the value to `Lax` and see if that works for you?
   
   https://github.com/apache/airflow/blob/master/UPDATING.md#the-default-value-for-webserver-cookie_samesite-has-been-changed-to-lax


----------------------------------------------------------------
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] gdevanla edited a comment on issue #13971: airflow webserver error when updated to airflow 2.0

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






----------------------------------------------------------------
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