You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current instructions for launching judgehosts on DockerHub, it is specified that the /sys/fs/cgroup directory is mounted with read-only permission.
However, with this permission, the startup script does not seem to run successfully, especially when the host machine starts from scratch. In the file https://github.com/DOMjudge/domjudge/blob/main/judge/create_cgroups.in, there is a sequence of commands to create a new directory in /sys/fs/cgroup. This process does not complete successfully.
judgehost-0 | [..] Setting timezone
judgehost-0 |
judgehost-0 | Current default time zone: 'Asia/Tokyo'
judgehost-0 | Local time is now: Sat Jul 6 23:53:32 JST 2024.
judgehost-0 | Universal Time is now: Sat Jul 6 14:53:32 UTC 2024.
judgehost-0 |
judgehost-0 | [ok] Container timezone set to: Asia/Tokyo
judgehost-0 |
judgehost-0 | [..] Setting up restapi file
judgehost-0 | [ok] Restapi file set up
judgehost-0 |
judgehost-0 | [..] Setting up cgroups
judgehost-0 | mkdir: cannot create directory '/sys/fs/cgroup/cpuset/domjudge': Read-only file system
judgehost-0 | mkdir: cannot create directory '/sys/fs/cgroup/memory/domjudge': Read-only file system
judgehost-0 | chown: cannot access '/sys/fs/cgroup/*/domjudge': No such file or directory
judgehost-0 | bin/create_cgroups: 41: cannot create /sys/fs/cgroup/cpuset/domjudge/cpuset.cpus: Directory nonexistent
judgehost-0 | bin/create_cgroups: 42: cannot create /sys/fs/cgroup/cpuset/domjudge/cpuset.mems: Directory nonexistent
When I launch the judgehost container without read-only permission, it runs successfully. However, I'm not sure if this is intended because running with write permission may be a strong requirement. Therefore, I would like the maintainers to modify either:
The current instructions on DockerHub (as well as README.md), or
The implementation of create_cgroups to retain read-only permission.
I executed the docker commands with domjudge/judgehost:8.2.2 on Ubuntu 22.04.
The text was updated successfully, but these errors were encountered:
In the current instructions for launching judgehosts on DockerHub, it is specified that the /sys/fs/cgroup directory is mounted with read-only permission.
However, with this permission, the startup script does not seem to run successfully, especially when the host machine starts from scratch. In the file https://github.com/DOMjudge/domjudge/blob/main/judge/create_cgroups.in, there is a sequence of commands to create a new directory in
/sys/fs/cgroup
. This process does not complete successfully.When I launch the judgehost container without read-only permission, it runs successfully. However, I'm not sure if this is intended because running with write permission may be a strong requirement. Therefore, I would like the maintainers to modify either:
I executed the docker commands with
domjudge/judgehost:8.2.2
on Ubuntu 22.04.The text was updated successfully, but these errors were encountered: