VNOI-Admin / OJ

A modern open-source online judge and contest platform system.
https://oj.vnoi.info
GNU Affero General Public License v3.0
164 stars 73 forks source link

SIGSEGV: invalid_state trang lỗi /admin/judge/profile/add/ site: fatal signal: Segmentation fault site died (signal 500, exit -11) #342

Closed HVThangQBU closed 1 year ago

HVThangQBU commented 1 year ago

Add any other context about the problem here. File "/usr/local/lib/python3.11/site-packages/django/db/models/fields/related_descriptors.py", line 197, in get raise self.RelatedObjectDoesNotExist( judge.models.profile.Profile.user.RelatedObjectDoesNotExist: Profile has no user.

leduythuccs commented 1 year ago

This is because you add the user by the admin panel so the User instance has not been created a long with the Profile that causes the issue

Advice 1: don't do that again

Advice 2: Good luck