DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
715 stars 252 forks source link

runguard: creating cgroup: libcgroup: Permission denied #2174

Closed kietnaptit closed 11 months ago

kietnaptit commented 11 months ago

NOTE: If this is a discussion starter, you need any installation help or have a question on how to accomplish something, rather post at our discussion channel or send an email to our DOMjudge-devel mailinglist instead of filing an issue here.

Description of the problem

Replace this line with a short description.

Your environment

  • DOMjudge version 8.2.1
  • Ubuntu 22.04.3 LTS
  • Apache

Steps to reproduce

Replace this with a description how we can reproduce your bug.

  • Step 1: Upload the submission
  • Step 2: The judgehost got the file, complie and got this error

Expected behaviour

File is complied successfullly

Actual behaviour

[Oct 04 15:59:23.891] judgedaemon[1192]: API request POST judgehosts
[Oct 04 15:59:24.184] judgedaemon[1192]: API request GET config
[Oct 04 15:59:24.268] judgedaemon[1192]: API request POST judgehosts/fetch-work
[Oct 04 15:59:24.372] judgedaemon[1192]: ⇝ Received 1 'judging_run' judge tasks (endpoint default)
[Oct 04 15:59:24.373] judgedaemon[1192]:   Working directory: /home/gdscptit/domjudge/judgehost/judgings/codejudge-2/endpoint-default/6/10
[Oct 04 15:59:24.376] judgedaemon[1192]:   🔒 Executing chroot script: 'chroot-startstop.sh start'
[Oct 04 15:59:24.526] judgedaemon[1192]: API request GET config
[Oct 04 15:59:24.613] judgedaemon[1192]: API request GET judgehosts/get_files/source/6
[Oct 04 15:59:24.702] judgedaemon[1192]:   💾 Fetching new executable 'compile/20' with hash '4e301e4bc46ab73673e209ee3437707d'.
[Oct 04 15:59:24.702] judgedaemon[1192]: API request GET judgehosts/get_files/compile/20
[Oct 04 15:59:24.791] judgedaemon[1192]: Building executable in /home/gdscptit/domjudge/judgehost/judgings/codejudge-2/endpoint-default/executable/compile/20/4e301e4bc46ab73673e209ee3437707d, under 'build/'
[Oct 04 15:59:25.151] judgedaemon[1192]: Compile command: /home/gdscptit/domjudge/judgehost/lib/judge/compile.sh -n '2' '/home/gdscptit/domjudge/judgehost/judgings/codejudge-2/endpoint-default/executable/compile/20/4e301e4bc46ab73673e209ee3437707d/build/run' '/home/gdscptit/domjudge/judgehost/judgings/codejudge-2/endpoint-default/6/10' 'test.py'
[Oct 04 15:59:25.164] compile.sh[1344]: starting '/home/gdscptit/domjudge/judgehost/lib/judge/compile.sh', PID = 1344
[Oct 04 15:59:25.171] compile.sh[1344]: arguments: '/home/gdscptit/domjudge/judgehost/judgings/codejudge-2/endpoint-default/executable/compile/20/4e301e4bc46ab73673e209ee3437707d/build/run' '/home/gdscptit/domjudge/judgehost/judgings/codejudge-2/endpoint-default/6/10'
[Oct 04 15:59:25.180] compile.sh[1344]: source file(s): test.py
[Oct 04 15:59:25.208] compile.sh[1344]: starting compile
[Oct 04 15:59:25.304] compile.sh[1344]: checking compilation exit-status
[Oct 04 15:59:25.321] compile.sh[1344]: exiting, code = '101'
[Oct 04 15:59:25.330] judgedaemon[1192]: warning: compile script exited with exitcode 101

--------------------------------------------------------------------------------

Compiling failed with exitcode 255, compiler output:
/home/gdscptit/domjudge/judgehost/bin/runguard: creating cgroup: libcgroup: Permission denied
Try `/home/gdscptit/domjudge/judgehost/bin/runguard --help' for more information.

--------------------------------------------------------------------------------

Internal errors reported:
/home/gdscptit/domjudge/judgehost/bin/runguard: creating cgroup: libcgroup: Permission denied
vmcj commented 11 months ago

Can you post the output of cat /proc/cmdline?