Noël BARDELOT created AIRFLOW-6865:
--------------------------------------

             Summary: [Airflow] webserver crashes with both RBAC and 
'force_log_out_after' set
                 Key: AIRFLOW-6865
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6865
             Project: Apache Airflow
          Issue Type: Bug
          Components: webserver
    Affects Versions: 1.10.9
            Reporter: Noël BARDELOT


I've traced back the issue to the following commit:


[https://github.com/apache/airflow/commit/0721d62bf1b23a471d7fe97ccf108db9f92403ef]

 

Enabling the 'force_log_out_after' option with something other than 0, when 
RBAC is enabled, makes the server throw the following errors before crashing:

 

 {{{{[2020-02-20 16:43:54,426] \{{app.py:1891}} ERROR - Exception on /health 
[GET]}}}}
{{{{Traceback (most recent call last):}}}}
{{{{ File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2446, in 
wsgi_app}}}}
{{{{ response = self.full_dispatch_request()}}}}
{{{{ File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1951, in 
full_dispatch_request}}}}
{{{{ rv = self.handle_user_exception(e)}}}}
{{{{ File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1820, in 
handle_user_exception}}}}
{{{{ reraise(exc_type, exc_value, tb)}}}}
{{{{ File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, 
in reraise}}}}
{{{{ raise value}}}}
{{{{ File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1947, in 
full_dispatch_request}}}}
{{{{ rv = self.preprocess_request()}}}}
{{{{ File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2241, in 
preprocess_request}}}}
{{{{ rv = func()}}}}
{{{{ File "/usr/local/lib/python3.7/site-packages/airflow/www_rbac/app.py", 
line 246, in before_request}}}}
{{{{ flask.session.permanent = True}}}}
{{{{NameError: name 'flask' is not defined}}}}
{{{{}}}}

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to