cms-dev / cms

Contest Management System
http://cms-dev.github.io/
GNU Affero General Public License v3.0
883 stars 360 forks source link

Sandbox error #277

Closed dinkoosmankovic closed 10 years ago

dinkoosmankovic commented 10 years ago

Hi,

When I submit code I get sandbox error:

message:Cannot set /sys/fs/cgroup/memory/box-1/tasks to 1 : No space left on device

Seems that isolate is not working well. Is there any specific configuration for cgroups to be used? Btw, I'm using Ubuntu 12.04 server i386 version.

lw commented 10 years ago

I've never seen such an error message before, therefore I'm just shooting in the dark. My first guess is that it's either the 32bits or the server-version of the kernel that could cause this issue. Could you verify that the kernel options required for cgroups support are enabled? They are CONFIG_CGROUPS, CONFIG_CGROUP_CPUACCT, CONFIG_MEMCG, CONFIG_CPUSETS, CONFIG_PID_NS, CONFIG_IPC_NS and CONFIG_NET_NS. Run gzip -cd /proc/config.gz | grep <NAME> on each of them and look at the results.

dinkoosmankovic commented 10 years ago

Hmm, I have it all in my config. Btw, is it good to use Ubuntu Server distro? Maybe some other is better? Arch? Debian? Maybe Ubuntu kernel configuration is not good for cms.

Dinko Osmankovic, MoEE Faculty of Electrical Engineering University of Sarajevo 71000 Sarajevo, Bosnia&Herzegovina

----- Original Message -----

From: "Luca Wehrstedt" notifications@github.com To: "cms-dev/cms" cms@noreply.github.com Cc: "dinkoosmankovic" dinko.osmankovic@etf.unsa.ba Sent: Monday, 31 March, 2014 8:04:19 PM Subject: Re: [cms] Sandbox error (#277)

I've never seen such an error message before, therefore I'm just shooting in the dark. My first guess is that it's either the 32bits or the server-version of the kernel that could cause this issue. Could you verify that the kernel options required for cgroups support are enabled? They are CONFIG_CGROUPS, CONFIG_CGROUP_CPUACCT, CONFIG_MEMCG, CONFIG_CPUSETS, CONFIG_PID_NS, CONFIG_IPC_NS and CONFIG_NET_NS. Run gzip -cd /proc/config.gz | grep on each of them and look at the results.

— Reply to this email directly or view it on GitHub .

lw commented 10 years ago

I use Arch but Ubuntu is the distribution we officially support and we expect CMS to work fine on it. I just discovered that starting with Ubuntu 12.04 there's no difference between desktop and server kernels (you see, I haven't been an Ubuntu user for a long time ;-) ), we can therefore rule out a kernel issue and focus on the userspace.

Could you verify that you installed all dependencies, as listed in here? This is the documentation for the master branch: it may be that you've looked at the one for v1.0 and run the command proposed there, which excludes some new important packages like cgroup-lite.

dinkoosmankovic commented 10 years ago

I've checked. Yes, the problem was that. Thanks again. Btw, ranking server is not getting anything from ScoreService? I don't get how it's working. Ranking web page is always empty for some reason, no matter the submissions that are evaluated.

lw commented 10 years ago

The service that's in charge of sending data to RankingWebServer is ProxyService: make sure it's running. Make also sure that the configuration in cms.ranking.conf and the URL in the rankings field of cms.conf match.