DOMjudge / domjudge-packaging

DOMjudge packaging for (Linux) distributions and live image
31 stars 37 forks source link

Error: cgroup support missing memory features in running kernel #92

Closed giampq closed 3 years ago

giampq commented 3 years ago

Hi guys, i have a issue when start Judgehost on Ubuntu


[..] Setting timezone

Current default time zone: 'Europe/Amsterdam' Local time is now: Thu Jun 10 03:12:20 CEST 2021. Universal Time is now: Thu Jun 10 01:12:20 UTC 2021.

[ok] Container timezone set to: Europe/Amsterdam

[..] Setting up restapi file [ok] Restapi file set up

[..] Setting up cgroups Error: cgroup support missing memory features in running kernel. Unable to continue.

To fix this, please make the following changes:
1. In /etc/default/grub, add 'cgroup_enable=memory swapaccount=1' to GRUB_CMDLINE_LINUX_DEFAULT

Please help me fix it, thank

vmcj commented 3 years ago

Hi @giampq, The solution here is to alter the line in: /etc/default/grub. The docker container uses the kernel from the host so the host should have the cgroup support which is needed. After you changed this you should restart so you can have the additional memory features.

If you have additional questions could you ask them on the Slack (https://www.domjudge.org/chat) as this is not really a bug so more people might be able to help you there.