UCL-INGI / INGInious

INGInious is a secure and automated exercises assessment platform using your own tests, also providing a pluggable interface with your existing LMS.
http://www.inginious.org
Other
208 stars 140 forks source link

Submission timed out #704

Open levtomer66 opened 3 years ago

levtomer66 commented 3 years ago

My submissions are timing out with error Your submission timed out. Your score is 0.0%. [Submission #ID]

WhatsApp Image 2021-09-03 at 13 18 27

I'm using docker agent environment cpp-gcc8 Looks like the container is starting but doing nothing.

WhatsApp Image 2021-09-03 at 13 21 23

WhatsApp Image 2021-09-03 at 13 22 38

Commands starting the environment:

inginious-backend tcp://0.0.0.0:2001 tcp://0.0.0.0:2000 &
inginious-agent-docker -v --debugmode --tasks /var/www/inginious/tasks tcp://0.0.0.0:2001  &
inginious-agent-mcq -v --debugmode --tasks /var/www/inginious/tasks tcp://0.0.0.0:2001 &
inginious-webapp --config /var/www/inginious/configuration.yaml --host 0.0.0.0 --port 8080 &
darkyne commented 3 years ago

Hello.

To me, seing the container waiting after "serving" without going further sounds very similar to this: https://github.com/UCL-INGI/INGInious/discussions/696

Have you tried re-building the images for the containers ?

levtomer66 commented 3 years ago

I tried, seems like it does not work, same results

darkyne commented 3 years ago

If this issue is not resolved yet, have you checked your docker images creation date? With "docker image ls" both ingi/inginious-c-base and ingi/inginious-c-default should be relatively recent. Please tell us if one of them is like 7 months old. It would mean it was downloaded from an old dockerhub. Thanks for the information.

nrybowski commented 3 years ago

Hello,

I have the same issue on a fresh install made with the inginious-install script. The listed images are indeed 7 months old:

$ docker images 
centos                     7         eeb6ee3f44bd   7 days ago       204MB
ingi/inginious-c-base      latest    571f1f192c41   7 months ago     683MB
ingi/inginious-c-default   latest    1d30380094e6   7 months ago     683MB

The logs indicate that the grading container is killed by the docker agent after 9s.

darkyne commented 3 years ago

@nrybowski Are you running on a repo clone you did manually or a pip-installed version ?

If you cloned the repo, you should rebuild the containers images manually.

If you need help for that, the doc was just updated https://docs.inginious.org/en/latest/admin_doc/install_doc/create_container.html#compiling-the-dockerfile