Forwarding the resolution below FYI. Jaap -------- Original Message -------- From: gazibot <infogazibot@gmail.com> Sent: December 12, 2017 12:34:57 AM GMT+01:00 To: Jaap Eldering <jaap@jaapeldering.nl> Subject: Re: domjudge-run submission problem OMG, IT WORKED I am the happiest guy in the World for 5 minutes. This is the solution that I found for aws ec2 servers Changing the kernel boot parameters on AWS for the official Ubuntu images is just as simple as editing /etc/default/grub.d/50-cloudimg-settings.cfg in the same way you’d usually edit /etc/default/grub. Note that you have to run ‘update-grub’ afterwards and then reboot. Best, Fatih 2017-12-12 2:17 GMT+03:00 gazibot <infogazibot@gmail.com>:
$ cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-4.4.0-1041-aws root=UUID=512611f4-b05a-4d8a-b743-438b71c5385d ro console=tty1 console=ttyS0
yes, I am on aws. This system started to getting hard to me.
Best,
2017-12-12 2:09 GMT+03:00 Jaap Eldering <jaap@jaapeldering.nl>:
On 12/12/17 00:01, gazibot wrote:
unfortunately, It does not. After I run /sudo groupadd domjudge-run .
New error popped up /
Compiling failed with exitcode 255, compiler output: /home/ubuntu/domjudge/judgehost/bin/runguard: creating cgroup: Failed
to remove a non-empty group(50029)
Try `/home/ubuntu/domjudge/judgehost/bin/runguard --help' for more information. Error: failed to set /sys/fs/cgroup/memory/domjudge /dj_cgroup_2169/memory.memsw.limit_in_bytes: Cgroup, requested group parameter does not exist
than I Edit |/etc/default/grub| and change the default commandline to
/GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory swapaccount=1" /
than/update-grub /and/reboot/
than sudo ./home/ubuntu/domjudge/judgehost/bin/create_cgroups
but this error continued ,
Compiling failed with exitcode 255, compiler output: /home/ubuntu/domjudge/judgehost/bin/runguard: creating cgroup: Failed to remove a non-empty group(50029) Try `/home/ubuntu/domjudge/judgehost/bin/runguard --help' for more information. Error: failed to set /sys/fs/cgroup/memory/domjudge /dj_cgroup_2169/memory.memsw.limit_in_bytes: Cgroup, requested group parameter does not exist
Can you show the output of 'cat /proc/cmdline'? It should contain "cgroup_enable=memory swapaccount=1".
From previous lines I think I saw you're running on AWS, and there you may need a different way to change the kernel boot parameters, but I don't know exactly how. Maybe someone else can step in, or you'd have to search the AWS documentation for how to do so.
Best, Jaap
2017-12-12 1:39 GMT+03:00 Jaap Eldering <jaap@jaapeldering.nl <mailto: jaap@jaapeldering.nl>>:
On 11/12/17 21:05, gazibot wrote: > Hi, > Please, I have some trouble. I am trying the implment domjudge for 2th time. Now I working on fresh system and try to setup domjudge v5.2.0 on ubuntu 16.04. there was no error in any steps. But after submission returns this error. > > Compiling failed with exitcode 255, compiler output: > /home/ubuntu/domjudge/judgehost/bin/runguard: invalid groupname or ID specified: `domjudge-run' > Try `/home/ubuntu/domjudge/judgehost/bin/runguard --help' for more information.
It looks like you missed the command
sudo groupadd domjudge-run
under https://www.domjudge.org/docs/admin-manual-3.html#ss3.7 < https://www.domjudge.org/docs/admin-manual-3.html#ss3.7>. Does that help?
Best, Jaap
> This is whole my terminal commands given below. > > sudo apt-get update > > sudo apt install gcc g++ make zip unzip mysql-server \ > apache2 php php-cli libapache2-mod-php \ > php-gd php-curl php-mysql php-json php-zip \ > php-mcrypt php-gmp php-xml php-mbstring \ > bsdmainutils ntp phpmyadmin libcgroup-dev \ > linuxdoc-tools linuxdoc-tools-text \ > groff texlive-latex-recommended texlive-latex-extra \ > texlive-fonts-recommended texlive-lang-european > > sudo phpenmod json > > sudo apt install libcurl4-gnutls-dev libjsoncpp-dev libmagic-dev > > sudo apt install make sudo debootstrap libcgroup-dev \ > php-cli php-curl php-json php-zip procps \ > gcc g++ openjdk-8-jre-headless \ > openjdk-8-jdk ghc fp-compiler > > download domjudge wget > > tar xvfz domjudge.tar.gz > > change drictory t0 the extracted folder > > ./configure --prefix=$HOME/domjudge --with-baseurl=localhost/domju dge/ > > make domserver && sudo make install-domserver > make judgehost && sudo make install-judgehost > make docs && sudo make install-docs > > ./bin/dj_setup_database -u root -r install > > sudo ln -s /home/ubuntu/domjudge/domserver/etc/apache.conf /etc/apache2/conf-available/domjudge.conf > > sudo a2enconf domjudge > > sudo service apache2 reload > > // in the /etc/apache2/conf-available/domjudge.conf file, comment out all of this: > // Order allow,deny > // Allow from all > // And replace with: > // Require all granted > sudo vim /etc/apache2/conf-available/domjudge.conf > > sudo apache2ctl graceful > > sudo useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run > sudo useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run-0 > > cd judgehost > sudo cp etc/sudoers-domjudge /etc/sudoers.d/ > > sudo /etc/init.d/mysql restart > > sudo apt-get install libcgroup-dev > > cd /home/ubuntu/domjudge/judgehost/bin > > sudo ./dj_make_chroot > sudo ./create_cgroups > ./judgedaemon -n 0 > > > Best, > Fatih
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.