Closed sondt166 closed 2 years ago
Can we see the entirety of judge.yml
?
@Riolku sure
id: new_judge
key: "my_super_secret_key"
problem_storage_root:
- /mnt/problems
runtime:
as_x64: /usr/bin/x86_64-linux-gnu-as
as_x86: /usr/bin/as
awk: /usr/bin/mawk
cat: /usr/bin/cat
g++: /usr/bin/g++
g++11: /usr/bin/g++
g++14: /usr/bin/g++
g++17: /usr/bin/g++
g++20: /usr/bin/g++
gcc: /usr/bin/gcc
gcc11: /usr/bin/gcc
ld_x64: /usr/bin/x86_64-linux-gnu-ld
ld_x86: /usr/bin/ld
perl: /usr/bin/perl
python3: /home/administrator/dmoj/dmojsite/bin/python3
sed: /usr/bin/sed
Please delete the key next time, and regenerate this one now, lol. Let's not create any more security holes in the world.
Do you have multiple judges, or is this the only one?
Have you tried submitting in other languages?
@Riolku Don't worry about the key, I only test this on the local machine :D . I only have one judge. Python 3 is the only option that I can summit (other languages are not displaying)
How did you create the judge in the site interface?
Have you tried re-creating the judge in the site interface?
From the site, I went to /admin/judge/judge/
and add a new judge, gave it a name and generated a new key.
Yes, I tried re-creating the judge, same result.
Can you judge in python properly?
Yes, judging in Python3 works properly, the only issue is that other runtimes are not shown anywhere on the site.
Odd. I might have to leave this for someone else. My only two good guesses right now are
But then again, I'm no expert here.
@Riolku Thanks a lot for your effort!
Do you have all the languages defined site-side? If not, you can import a part of them with the command python3 manage.py loaddata language_small
ran in the site root folder.
@WallE256 After running the command, all runtimes are available now. I'm sure I ran the command while setting up the site as per the manual, not sure why rerunning it now helps. Anyway, the issue is resolved, thank you all so much!
For anyone used python3 manage.py loaddata language_small
and it does not include the language you need,
Run python3 manage.py loaddata language_all
instead.
Note: There could be a database duplicate error while running the command, fastest way I used is to drop the database, then migrate again. You can go to the database and delete the duplicated row instead.
This is a fresh install, I installed the judge server using the
pip install -e .
command. Although the judge server detects multiple runtimes, only Python3 is available on the site.I also tried installing the judge server using docker, it yields the same result.