Page MenuHomePhabricator

Can't log into Superset
Closed, ResolvedPublic

Description

When I try to log into https://superset.wikimedia.org/ with my LDAP account, I get an internal server error:

500 - Internal Server Error
Stacktrace
         Traceback (most recent call last):
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask_appbuilder/security/views.py", line 565, in login
    user = self.appbuilder.sm.auth_user_remote_user(username)
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask_appbuilder/security/manager.py", line 710, in auth_user_remote_user
    self.update_user_auth_stat(user)
  File "/srv/deployment/analytics/superset/venv/lib/python3.5/site-packages/flask_appbuilder/security/manager.py", line 502, in update_user_auth_stat
    if not user.login_count:
AttributeError: 'bool' object has no attribute 'login_count'

Event Timeline

Please try again, we have a patch upstream that should resolve this issue, in the meantime I have added you as a user manually.

Thanks Nuria! I can log in now, but when I do I get a bunch of 401 errors and nothing loads besides the header (regardless of which tab I click on). Not sure if that's just me or how it is for everyone.

While we have an outage for superset for EU time tomorrow, it should work now. Can you open an incognito tag and try to log in again?

Tried logging in again from an incognito tab, but still just get 401s for all the actual content. And if I try to go directly to any of the content URLs like https://superset.wikimedia.org/superset/recent_activity/154/?limit=50, it says "access denied".

Ok, you must have some permits missing, will check tomorrow if you are in the right ldap-nda authorized group.

@Nuria the user that you added missed the "Alpha" role, I think that this is the reason for the 401.. it should be good now! @kaldari please retry when you have time :)