DEV Community

Nischal K Shaj
Nischal K Shaj

Posted on

Internal Error: No such file or directory @ rb_sysopen - /box/script.js when using Judge0 API

I'm encountering an issue while trying to execute code using the Judge0 API. The response I receive from the API is as follows:

json
Copy code
{
"stdout": null,
"time": null,
"memory": null,
"stderr": null,
"token": "4957159e-0921-44fa-82a6-b9d4b202f276",
"compile_output": null,
"message": "No such file or directory @ rb_sysopen - /box/script.js",
"status": {
"id": 13,
"description": "Internal Error"
}
}
Setup
I set up Judge0 using the provided .config and docker-compose.yml files. There were no additional files included in the configuration.

Issue
When I use the following route: submissions/?base64_encoded=false&wait=false, I get the error mentioned above. It seems that the Judge0 server cannot find or create the script.js file.

Top comments (2)

Collapse
 
dousha profile image
Jiahao Lee

Judge0 depends on (an older version of) isolate, which depends on the legacy cgroup support (cgroup v1). Add the following kernel parameters:

SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 systemd.unified_cgroup_hierarchy=0
Enter fullscreen mode Exit fullscreen mode

and then reboot to enable legacy cgroup mode.

Collapse
 
bewin_felixraurk21cs11 profile image
BEWIN FELIX R A URK21CS1128

Same Issue. Have you sorted it ??
If yes can you help me