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

Gergely Kalmár commented on AIRFLOW-3181:
-----------------------------------------

I definitely see that it is not trivial as soon as people start writing complex 
PythonOperators due to possible conflicts there. In our case we aim to develop 
our 'operators' in a separate codebase though and call it through a plugin 
built on BashOperator, which basically interfaces with this separate codebase. 
This way we can separate the airflow environment from our own Python 
environment. Nevertheless, this seems to be a critical instability that can 
break production systems easily and in a nontrivial way (spent quite some time 
today trying to figure out why did my previously working ansible deployment 
scripts couldn't get a new server up and running). Would be excellent if this 
could be fixed soon.

> RBAC auth error
> ---------------
>
>                 Key: AIRFLOW-3181
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3181
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Gergely Kalmár
>            Priority: Critical
>
> I have a fresh install of airflow 1.10 on an AWS EC2 instance. It seems that 
> the web server and the scheduler services start up fine, however, when trying 
> to load the frontend through my browser I'm getting the following error:
> {code}
> Traceback (most recent call last):
>   File "/home/airflow/.local/lib/python3.5/site-packages/flask/app.py", line 
> 1982, in wsgi_app
>     response = self.full_dispatch_request()
>   File "/home/airflow/.local/lib/python3.5/site-packages/flask/app.py", line 
> 1614, in full_dispatch_request
>     rv = self.handle_user_exception(e)
>   File "/home/airflow/.local/lib/python3.5/site-packages/flask/app.py", line 
> 1517, in handle_user_exception
>     reraise(exc_type, exc_value, tb)
>   File "/home/airflow/.local/lib/python3.5/site-packages/flask/_compat.py", 
> line 33, in reraise
>     raise value
>   File "/home/airflow/.local/lib/python3.5/site-packages/flask/app.py", line 
> 1612, in full_dispatch_request
>     rv = self.dispatch_request()
>   File "/home/airflow/.local/lib/python3.5/site-packages/flask/app.py", line 
> 1598, in dispatch_request
>     return self.view_functions[rule.endpoint](**req.view_args)
>   File 
> "/home/airflow/.local/lib/python3.5/site-packages/flask_appbuilder/security/decorators.py",
>  line 25, in wraps
>     if self.appbuilder.sm.has_access(permission_str, self.__class__.__name__):
>   File 
> "/home/airflow/.local/lib/python3.5/site-packages/flask_appbuilder/security/manager.py",
>  line 834, in has_access
>     return self._has_view_access(g.user, permission_name, view_name)
>   File 
> "/home/airflow/.local/lib/python3.5/site-packages/flask_appbuilder/security/manager.py",
>  line 820, in _has_view_access
>     roles = user.roles
>   File "/home/airflow/.local/lib/python3.5/site-packages/werkzeug/local.py", 
> line 347, in __getattr__
>     return getattr(self._get_current_object(), name)
> AttributeError: 'AnonymousUserMixin' object has no attribute 'roles'
> {code}
> Any ideas what could be the issue?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to