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.

airflow webserver error when updated to airflow 2.0

See original GitHub issue

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:

**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’.**

How to reproduce it:

Anything else we need to know:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
gdevanlacommented, Jan 31, 2021

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 Strictshould resolves this issue.

0reactions
kaxilcommented, Feb 10, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Airflow webserver error when updated to airflow 2.0
cfg . Default is just an empty string in 1.10. x but was changed to Lax in https://github.com/apache/airflow/pull/11873.
Read more >
Upgrading Airflow to a newer version - Apache Airflow
Typically you just need to successfully run airflow db upgrade command and this is all. However in some cases, the migration might find...
Read more >
Upgrading from 1.10 to 2 - Apache Airflow
We strongly recommend that all users upgrading to Airflow 2.0, first upgrade to Airflow 1.10.15 and test their Airflow deployment and only then...
Read more >
Release Notes — Airflow Documentation
In Airflow 2.0.0 - 2.2.4 the webserver.X_FRAME_ENABLED parameter worked the opposite of its description, setting the value to “true” ...
Read more >
Webserver — Airflow Documentation
Please use command line interface airflow users create to create accounts, or do that in the UI. Other Methods¶. Since Airflow 2.0, the...
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