Error from the sandbox [jobesandbox]:

Error from the sandbox [jobesandbox]:

by Paul Martin -
Number of replies: 3

Jobe server working fine until yesterday.  Started to fail with the error below.  A reboot fixed the issue but it then the error returned.   

"Error from the sandbox [jobesandbox]: Unexpected error while executing your code. Your code may be too slow, or the sandbox server may be down or overloaded"

Logs are not much help,

/var/log/jobe is empty on jobe server.   (owership: jobe:www-data,  drwxrwxr--x) 

Apache logs on Job and Moodle 


I turned off the firewall but the error still occurs.  

Plug-in Version 3.5.1

Using default API-KEY. 

Any advice would be much appreciated 


Thanks!






In reply to Paul Martin

Re: Error from the sandbox [jobesandbox]:

by Richard Lobb -

That error usually means that the Jobe server is misconfigured or simply down. You say a reboot fixed the issue but the error then returned. That suggests that Jobe is actually failing for some reason. [I assume you rebooted Jobe, not the Moodle server?] Perhaps out of disk space or inodes? Jobe's disk requirements don't usually grow significantly over time unless question authors upload a vast number of questions with support files. But it might pay to look in /home/jobe/runs - if debugging is enabled and has been for a long time, that directory will be full and you could run out of disk space over time.

I suggest:

  1. When logged into jobe, use the df and df -i  commands to check disk space.
  2. With the firewall down, point the browser at http://<jobehost>/jobe/index.php/restapi/languages. What you should get is a JSON-encoded list of languages.
  3. Log into Jobe, cd'ing to /var/www/html/jobe and run the tester:
    python3 testsubmit.py

    That should tell you if Jobe is working correctly.

If none of those point the finger anywhere, work through the Debugging checklist at https://github.com/trampgeek/jobe/blob/master/README.md

Richard

In reply to Richard Lobb

Re: Error from the sandbox [jobesandbox]:

by Paul Martin -

sorry for late reply,

Plenty of space on server and testsubmit.py runs ok but http://ourserver/jobe/index.php/restapi/languages was failing.  

The issue hasn't re-occurred since the second reboot back on the 20th Oct. This is a little disconcerting but I'll see how it goes.

As always, thanks for you help Richard.  Much appreciated 

Paul





In reply to Paul Martin

Re: Error from the sandbox [jobesandbox]:

by Richard Lobb -

If testsubmit.py is running but other connections are failing, then you almost certainly have some sort of networking issue. testsubmit.py begins by getting the list of languages from http://localhost/jobe/index.php/restapi/languages (assuming it is running on the jobe server itself). If that's working but a browser request to http://ourserver/jobe/index.php/restapi/languages is failing (how, exactly?) then I'd be moderately sure the request isn't getting through to the Jobe server. Perhaps a firewall issue, or the nameserver is down, or a local networking failure (router, hub, etc)?

Richard