Install.sh timeout not caught
Closed this issue · 0 comments
Task call:
Compiling a bot with userID 2833
https://halite.io/api/manager/botFile?apiKey=3608652&userID=2833&compile=1
Getting bot hash:
{"hash":"9aa2c2b9daaa4cf7ad82cf621f6fa764"}
docker run -i -v /home/ubuntu/Halite/worker/workingPath:/home/ubuntu/Halite/worker/workingPath mntruell/halite_sandbox:latest sh -c "cd /home/ubuntu/Halite/worker/workingPath; chmod +x install.sh; ./install.sh"
Bot did not compile
['Your bot caused unexpected behavior in our servers. If you cannot figure out why this happened, please email us at halite@halite.io. We can help.', 'For our reference, here is the trace of the error: Traceback (most recent call last):\n File "worker.py", line 84, in executeCompileTask\n language, errors = compile_anything(workingPath)\n File "/home/ubuntu/Halite/worker/compiler.py", line 493, in compile_anything\n _, errors = _run_cmd("chmod +x install.sh; ./install.sh", bot_dir, time.time() + installTimeLimit)\n File "/home/ubuntu/Halite/worker/compiler.py", line 72, in _run_cmd\n rawOut, rawErrors = process.communicate(timeout=timelimit)\n File "/usr/lib/python3.4/subprocess.py", line 960, in communicate\n stdout, stderr = self._communicate(input, endtime, timeout)\n File "/usr/lib/python3.4/subprocess.py", line 1618, in _communicate\n self._check_timeout(endtime, orig_timeout)\n File "/usr/lib/python3.4/subprocess.py", line 986, in _check_timeout\n raise TimeoutExpired(self.args, orig_timeout)\nsubprocess.TimeoutExpired: Command 'docker run -i -v /home/ubuntu/Halite/worker/workingPath:/home/ubuntu/Halite/worker/workingPath mntruell/halite_sandbox:latest sh -c "cd /home/ubuntu/Halite/worker/workingPath; chmod +x install.sh; ./install.sh"' timed out after 599.9986298084259 seconds\n']