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

platform_engineering_services user has no profile #2908

Open
sentry-io bot opened this issue Jan 17, 2025 · 0 comments
Open

platform_engineering_services user has no profile #2908

sentry-io bot opened this issue Jan 17, 2025 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 17, 2025

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

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,
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