Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate VR users are created #218

Open
lbolla opened this issue Jun 12, 2017 · 1 comment
Open

Duplicate VR users are created #218

lbolla opened this issue Jun 12, 2017 · 1 comment

Comments

@lbolla
Copy link
Contributor

lbolla commented Jun 12, 2017

I am intermittently seeing a 500 error when visiting VR. Newrelic shows:

django.contrib.auth.models:MultipleObjectsReturned: get() returned more than one User -- it returned 2!

This occured most recently when visiting VR in a tab open from the previous day, receiving a 'session expired' alert, and logging in with my user/pass.

It appears that I have two VR users, 'matthew.barry' and 'Matthew.Barry'. The duplicate (lowercase version) was deleted a few weeks ago but it seems to have reappeared. allanc deleted the lowercase version and renamed the capitalized version to be lowercase in line with the VR users naming convention.

I am not sure what the root cause of the duplicate creation is.

@lbolla
Copy link
Contributor Author

lbolla commented Dec 18, 2018

Traceback from a recent failure:

Traceback (most recent call last):
  File "/app/.heroku/venv/lib/python2.7/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done
  File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 155, in handle
  File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/base_async.py", line 56, in handle
  File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
  File "/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/workers/base_async.py", line 107, in handle_request
  File "/app/.heroku/venv/lib/python2.7/site-packages/newrelic/api/web_transaction.py", line 1286, in _nr_wsgi_application_wrapper_
  File "/app/.heroku/venv/lib/python2.7/site-packages/newrelic/api/web_transaction.py", line 813, in __init__
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
  File "/app/.heroku/venv/lib/python2.7/site-packages/newrelic/hooks/framework_django.py", line 423, in _nr_wrapper_BaseHandler_get_response_
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 108, in get_response
  File "/app/.heroku/venv/lib/python2.7/site-packages/newrelic/hooks/framework_django.py", line 220, in wrapper
  File "/app/.heroku/venv/lib/python2.7/site-packages/baton_django/__init__.py", line 100, in process_request
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 74, in authenticate
  File "/app/.heroku/venv/lib/python2.7/site-packages/baton_django/__init__.py", line 156, in authenticate
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/models/query.py", line 405, in get_or_create
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/models/query.py", line 338, in get
django.contrib.auth.models:MultipleObjectsReturned: get() returned more than one User -- it returned 2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant