You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CohortMembership.DoesNotExist: CohortMembership matching query does not exist.
File "django/db/models/query.py", line 916, in get_or_create
return self.get(**kwargs), False
File "django/db/models/query.py", line 637, in get
raise self.model.DoesNotExist(
User.profile.RelatedObjectDoesNotExist: User has no profile.
(16 additional frame(s) were not displayed)
...
File "openedx/core/djangoapps/content/learning_sequences/api/processors/cohort_partition_groups.py", line 41, in load_data
user_cohort = get_cohort(self.user, self.course_key)
File "openedx/core/djangoapps/course_groups/cohorts.py", line 260, in get_cohort
add_user_to_cohort(course_user_group, user)
File "openedx/core/djangoapps/course_groups/cohorts.py", line 464, in add_user_to_cohort
membership, previous_cohort = CohortMembership.assign(cohort, user)
File "openedx/core/djangoapps/course_groups/models.py", line 128, in assign
membership, created = cls.objects.select_for_update().get_or_create(
File "openedx/core/djangoapps/course_groups/models.py", line 172, in save
name=self.user.profile.name,
The text was updated successfully, but these errors were encountered:
This is causing a couple of errors every day, on mitx-qa.mitx.mit.edu and possibly elsewhere. Can we clean up this user?
User.profile.RelatedObjectDoesNotExist: User has no profile.
Sentry Issue: OPENEDX-RESIDENTIAL-9VP
The text was updated successfully, but these errors were encountered: