Skip to content

Fresh setup fails: submissions can't find source file (Docker executor) #6

Description

@amankrsingh2001

Environment

  • OS: macOS, Docker Desktop
  • EXECUTOR_TYPE=docker
  • Fresh clone, setup followed exactly per README: npm install./scripts/build-images.shdocker-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions