Environment
- OS: macOS, Docker Desktop
- EXECUTOR_TYPE=docker
- Fresh clone, setup followed exactly per README:
npm install → ./scripts/build-images.sh → docker-compose up -d
Symptom
Every submission fails, regardless of language. The interpreter/compiler reports it can't find the source file, even though the API returns a 200 and the request body itself is valid.
Python (language_id: 71):
"stderr": "python3: can't open file 'main.py': [Errno 2] No such file or directory\n"
C++ (language_id: 54):
g++: error: *.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
Reproduces across unrelated languages, pointing to the shared file-copy step in src/executor/DockerExecutor.js (copySourceCode / createTarStream) rather than any language-specific config.
Confirmed via docker exec -it <container_id> ls -la /box right after a submission — the directory is empty, even though the API returns no error.
Note
Not yet tested on native Linux/Ubuntu Docker — only confirmed on Docker Desktop for Mac. Would appreciate confirmation from someone on Linux.
Will open a PR shortly with a proposed fix.
Environment
npm install→./scripts/build-images.sh→docker-compose up -dSymptom
Every submission fails, regardless of language. The interpreter/compiler reports it can't find the source file, even though the API returns a 200 and the request body itself is valid.
Python (
language_id: 71):"stderr": "python3: can't open file 'main.py': [Errno 2] No such file or directory\n"
C++ (
language_id: 54):g++: error: *.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
Reproduces across unrelated languages, pointing to the shared file-copy step in
src/executor/DockerExecutor.js(copySourceCode/createTarStream) rather than any language-specific config.Confirmed via
docker exec -it <container_id> ls -la /boxright after a submission — the directory is empty, even though the API returns no error.Note
Not yet tested on native Linux/Ubuntu Docker — only confirmed on Docker Desktop for Mac. Would appreciate confirmation from someone on Linux.
Will open a PR shortly with a proposed fix.