remoteinterview / compilebox

Compile and run user-submitted code in a docker based sandbox.
MIT License
1.09k stars 322 forks source link

execution timed out #67

Open AbdallahAbdedaiem opened 4 years ago

AbdallahAbdedaiem commented 4 years ago

I'm always getting execution timed out even though I've changed timeout to more than 20s. I'm getting also undefined in the console. image

nyakaz73 commented 4 years ago

The issue with me was to do with permissions you have to make sure that your script.sh , DockerTimeout.sh has 777 permissions set. Also make sure that in the temp folder when a new directory is created eg 982428d65c0657c8e4e0/ it has the script.sh file inside because this is the file that is last ran by the docker command and it looks for it in that folder. Hope this helps cheers!!