VNOI-Admin / OJ

A modern open-source online judge and contest platform system.

Home Page:https://oj.vnoi.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

HVThangQBU opened this issue · comments

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.

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