[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-26 Thread Hari Krishna ADDEPALLI LN (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700018#comment-16700018
 ] 

Hari Krishna ADDEPALLI LN commented on AIRFLOW-3351:


[~ashb] : please advise the resolution...

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3208), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule=True)   File 
> "/usr/local/lib/python3.5/site-packages/werkzeug/routing.py", line 1581, in 
> match     rais

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Hari Krishna ADDEPALLI LN (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700774#comment-16700774
 ] 

Hari Krishna ADDEPALLI LN commented on AIRFLOW-3351:


[~ashb] [~sanand] : Can any one please share the telephone detail in order to 
resolve this ? We are blocked with 1 step away from production go live! 

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Ash Berlin-Taylor (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700781#comment-16700781
 ] 

Ash Berlin-Taylor commented on AIRFLOW-3351:


This is an open source project and that is predominately volunteer lead, and as 
such there is support is best efforts.

If you need that level of support grab me on Slack or email (a...@apache.org) 
and we can discuss something more formal.

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Hari Krishna ADDEPALLI LN (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700786#comment-16700786
 ] 

Hari Krishna ADDEPALLI LN commented on AIRFLOW-3351:


Well, slack is not available when i tried to sign in. Is there any instruction 
to join/sign in?

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule=True)   File 
> "/usr/local/lib/python3.5/site-package

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Ash Berlin-Taylor (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700793#comment-16700793
 ] 

Ash Berlin-Taylor commented on AIRFLOW-3351:


You can get an invite sent via http://apache-airflow.slack.com/

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule=True)   File 
> "/usr/local/lib/python3.5/site-packages/werkzeug/routing.py", line 1581, in 
> match   

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Hari Krishna ADDEPALLI LN (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700803#comment-16700803
 ] 

Hari Krishna ADDEPALLI LN commented on AIRFLOW-3351:


[harik@gmail.com|mailto:harik@gmail.com] is an email id, please send 
invitation.

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule=True)   File 
> "/usr/local/lib/python3.5/site-packages/werkz

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Hari Krishna ADDEPALLI LN (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700798#comment-16700798
 ] 

Hari Krishna ADDEPALLI LN commented on AIRFLOW-3351:


I am still unable to sign in, can you please send me invitation [~ashb] ?

 

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule=True)   File 
> "/usr/local/lib/python3.5/site-packages/werkzeug/routing.p

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Ash Berlin-Taylor (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700801#comment-16700801
 ] 

Ash Berlin-Taylor commented on AIRFLOW-3351:


I will need an email address to send the invite too.

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule=True)   File 
> "/usr/local/lib/python3.5/site-packages/werkzeug/routing.py", line 1581, in 
> match     raise Not

[jira] [Commented] (AIRFLOW-3351) Airflow webserver intermitent broken

2018-11-27 Thread Ash Berlin-Taylor (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-3351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16700810#comment-16700810
 ] 

Ash Berlin-Taylor commented on AIRFLOW-3351:


Sent.

> Airflow webserver intermitent broken
> 
>
> Key: AIRFLOW-3351
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3351
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: authentication
>Affects Versions: 1.10.0
>Reporter: Hari Krishna ADDEPALLI LN
>Priority: Blocker
>
> After completing the airflow 1.10.0 integration with LDAP anonymously 
> (AIRFLOW-3270), we started to hit "Internal Server Error" with below 
> exception stack, we tried to clean up the browser cache, it sometimes works 
> and sometimes error our. Please advise the resolution to avoid this issue.
>  
> {code:java}
> During handling of the above exception, another exception occurred: Traceback 
> (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 135, 
> in handle     self.handle_request(listener, req, client, addr)   File 
> "/usr/local/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 176, 
> in handle_request     respiter = self.wsgi(environ, resp.start_response)   
> File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 826, in 
> __call__     return app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__ 
>     return self.wsgi_app(environ, start_response)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app 
>     response = self.handle_exception(e)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1547, in 
> handle_exception     return self.finalize_request(handler(e), 
> from_error_handler=True)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/www/views.py", line 716, in 
> show_traceback     info=traceback.format_exc()), 500   File 
> "/usr/local/lib/python3.5/site-packages/flask/templating.py", line 132, in 
> render_template     ctx.app.update_template_context(context)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 764, in 
> update_template_context     context.update(func())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 825, in 
> _user_context_processor     return dict(current_user=_get_user())   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 794, in 
> _get_user     current_app.login_manager._load_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 363, in 
> _load_user     return self.reload_user()   File 
> "/usr/local/lib/python3.5/site-packages/flask_login.py", line 325, in 
> reload_user     user = self.user_callback(user_id)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/utils/db.py", line 74, in 
> wrapper     return func(*args, **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 278, in load_user     return LdapUser(user)   File "", line 4, 
> in __init__   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 414, 
> in _initialize_instance     manager.dispatch.init_failure(self, args, kwargs) 
>   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 
> 66, in __exit__     compat.reraise(exc_type, exc_value, exc_tb)   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 187, 
> in reraise     raise value   File 
> "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 411, 
> in _initialize_instance     return manager.original_init(*mixed[1:], 
> **kwargs)   File 
> "/usr/local/lib/python3.5/site-packages/airflow/contrib/auth/backends/ldap_auth.py",
>  line 157, in __init__     user.username) AttributeError: 'NoneType' object 
> has no attribute 'username' 127.0.0.1 - - [15/Nov/2018:10:47:31 +] "GET 
> /admin/ HTTP/1.1" 500 0 "-" "-" [2018-11-15 10:47:38,590] ERROR in app: 
> Exception on /favicon.ico [GET] Traceback (most recent call last):   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1612, in 
> full_dispatch_request     rv = self.dispatch_request()   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1590, in 
> dispatch_request     self.raise_routing_exception(req)   File 
> "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1573, in 
> raise_routing_exception     raise request.routing_exception   File 
> "/usr/local/lib/python3.5/site-packages/flask/ctx.py", line 294, in 
> match_request     self.url_adapter.match(return_rule=True)   File 
> "/usr/local/lib/python3.5/site-packages/werkzeug/routing.py", line 1581, in 
> match     raise NotFound() werkzeug.exceptions.NotFound: 404 Not F