compilebox icon indicating copy to clipboard operation
compilebox copied to clipboard

Constantly Timing out

Open justkrismanohar opened this issue 7 years ago • 4 comments

Hey guys,

ran Install_16_.04.sh on digital ocean x64 droplet, installed node etc. When I use the sample client api to do Hello word C file, it keeps timing out the following is the console output when I click the compile button. Extremely weird. Please help!

C/C++ file was saved! Input file was saved! /root/compilebox/API/DockerTimeout.sh 20s -u mysql -e 'NODE_PATH=/usr/local/lib/node_modules' -i -t -v "/root/compilebox/API/temp/9589feeead5a4a99db8f":/usercode virtual_machine /usercode/script.sh 'g++ -o /usercode/a.out' file.cpp /usercode/a.out

ATTEMPTING TO REMOVE: temp/9589feeead5a4a99db8f

Timed Out: temp/9589feeead5a4a99db8f C/C++ Time: undefined

justkrismanohar avatar Sep 13 '17 05:09 justkrismanohar

I double this issue, on Mac OSX 64 bit latest version El Capitan

Input file was saved! /Users/vivz/Desktop/work/Examples/nodeexamples/compilebox/API/DockerTimeout.sh 20s -u mysql -e 'NODE_PATH=/usr/local/lib/node_modules' -i -t -v "/Users/vivz/Desktop/work/Examples/nodeexamples/compilebox/API/temp/4d0d78f4e4d817131eae":/usercode virtual_machine /usercode/script.sh python file.py

ATTEMPTING TO REMOVE: temp/4d0d78f4e4d817131eae

Timed Out: temp/4d0d78f4e4d817131eae Python Time: undefined Python file was saved! Input file was saved! /Users/vivz/Desktop/work/Examples/nodeexamples/compilebox/API/DockerTimeout.sh 20s -u mysql -e 'NODE_PATH=/usr/local/lib/node_modules' -i -t -v "/Users/vivz/Desktop/work/Examples/nodeexamples/compilebox/API/temp/e1a54ead717d4c39f941":/usercode virtual_machine /usercode/script.sh python file.py

ATTEMPTING TO REMOVE: temp/e1a54ead717d4c39f941

Timed Out: temp/e1a54ead717d4c39f941 Python Time: undefined

slidenerd avatar Sep 14 '17 18:09 slidenerd

Same issue. Did anyone here solve it?

denisorehovsky avatar Dec 12 '17 16:12 denisorehovsky

same problem. did anyone face it?

pkatul avatar Oct 05 '18 19:10 pkatul

Hi, guys just comment " code=$(timeout "$to" docker wait "$cont" || true)" this line in DockerTimeout.sh file in the API folder.but, you're unable to run the infinite loops. One more thing make sure that you have a docker image names as "virtual-machine".

SatyaNagasriKarri avatar Nov 12 '18 13:11 SatyaNagasriKarri