Comments (4)
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.
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.
Thanks for reporting and solving the problem all in one smooth sequence, before I even got to looking at the first posting :)
from jobeinabox.
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)
- Vulnerable openjdk-16-jdk Ubuntu package without patch
- Submission problem in container environment HOT 3
- matplotlib Warning About Temporary Files in /tmp HOT 2
- Worked 3/4 days ago, now unable to fork..? HOT 11
- cannot start `sh': Resource temporarily unavailable HOT 18
- PHP Error HOT 23
- Trying to make sure I understand dependencies HOT 2
- Make container runnable as non root user HOT 1
- Numpy installation: failed to map segment from shared object HOT 2
- Some pip3 packages not found by Jobe but working in Python3 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jobeinabox.