Giter Club home page Giter Club logo

Comments (4)

maxmasetti avatar maxmasetti commented on August 13, 2024

I dig some around this problem and found a solution: set the executor to run as group www-data.
I changed in file application/libraries/LanguageTask.php from

         $sandboxCommandBits = array(
                 "sudo " . dirname(__FILE__)  . "/../../runguard/runguard",
                 "--user={$this->user}",
                 "--group=jobe",
                 "--time=$cputime",         // Seconds of execution time allowed
                 "--filesize=$filesize",    // Max file sizes
                 "--nproc=$numProcs",       // Max num processes/threads for this *user*

to

         $sandboxCommandBits = array(
                 "sudo " . dirname(__FILE__)  . "/../../runguard/runguard",
                 "--user={$this->user}",
                 "--group=www-data",
                 "--time=$cputime",         // Seconds of execution time allowed
                 "--filesize=$filesize",    // Max file sizes
                 "--nproc=$numProcs",       // Max num processes/threads for this *user*

Then I set apache umask 0002 in /etc/apache2/envvars, so it can rwx group owned directories. Now Jobe server works properly.
But I suspect the problem is a malfunction of runguard program, unable to set group and user before run tests.
max

from jobeinabox.

maxmasetti avatar maxmasetti commented on August 13, 2024

ahhh!
finally got it: upgrading host from debian jessie to debian buster the docker storage drive wasn't upgraded from aufs (deprecated) to overlay2 and the extended acl required to set permissions on files and directories didn't work. so the permission denied error.
changed the storage and recreated all the images and containers, now the jobeinabox works like a charm!
max

from jobeinabox.

trampgeek avatar trampgeek commented on August 13, 2024

Thanks for reporting and solving the problem all in one smooth sequence, before I even got to looking at the first posting :)

from jobeinabox.

bdarties avatar bdarties commented on August 13, 2024

hi!

Just for the record : I encounter a similar issue when deploying jobeinabox on a QNAP NAS (everything's fine on other platforms). I also noticed user permissions differences when creating temporary directories jobe_xxxx preventing the creation of pycache.

I didn't try yet the solution proposed by maxmasetti but I also noticed the storage system was set to 'overlay' on my NAS instead of 'overlay2' on other platforms. It seems less easy to change the storage system on QNAP, as it uses a dedicated app, Container Station, which includes docker and it configuration ... I keep digging to change it but this thread brings some hope after days of failure attempts.

from jobeinabox.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.