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

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

Great, thanks for the quick reply! I've been able to get the cluster running by 
forcing both Flask-AppBuilder<1.12.0 and Flask-Login==0.2.10. Aren't these 
errors avoidable by freezing all of your dependencies though?

> 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