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

IntegrityError: (1062, "Duplicate entry '25503' for key 'user_id'") #290

Open
sentry-io bot opened this issue Jan 28, 2022 · 0 comments
Open

IntegrityError: (1062, "Duplicate entry '25503' for key 'user_id'") #290

sentry-io bot opened this issue Jan 28, 2022 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 28, 2022

What's the source of this error?

Sentry Issue: OPENEDX-RESIDENTIAL-48D

LastSeenCoursewareTimezone.DoesNotExist: LastSeenCoursewareTimezone matching query does not exist.
  File "django/db/models/query.py", line 581, in get_or_create
    return self.get(**kwargs), False
  File "django/db/models/query.py", line 435, in get
    raise self.model.DoesNotExist(

IntegrityError: (1062, "Duplicate entry '25503' for key 'user_id'")
(1 additional frame(s) were not displayed)
...
  File "django/db/backends/mysql/base.py", line 73, in execute
    return self.cursor.execute(query, args)
  File "MySQLdb/cursors.py", line 206, in execute
    res = self._query(query)
  File "MySQLdb/cursors.py", line 320, in _query
    self._do_get_result(db)
  File "MySQLdb/cursors.py", line 145, in _do_get_result
    self._result = result = self._get_result()
  File "MySQLdb/cursors.py", line 352, in _get_result
    return self._get_db().store_result()

IntegrityError: (1062, "Duplicate entry '25503' for key 'user_id'")
(29 additional frame(s) were not displayed)
...
  File "django/db/backends/mysql/base.py", line 73, in execute
    return self.cursor.execute(query, args)
  File "MySQLdb/cursors.py", line 206, in execute
    res = self._query(query)
  File "MySQLdb/cursors.py", line 320, in _query
    self._do_get_result(db)
  File "MySQLdb/cursors.py", line 145, in _do_get_result
    self._result = result = self._get_result()
  File "MySQLdb/cursors.py", line 352, in _get_result
    return self._get_db().store_result()
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

0 participants