Failed to run tests

Failed to run tests

de bi hex -
Número de respuestas: 4

I use casaos to install moodle and jobe 

when I use the default server: jobe2.cosc.canterbury.ac.nz

Failed to run tests

Unauthorised to use sandbox

when I use my own jobe server: it works like 

http://192.168.1.173:4000/jobe/index.php/restapi/languages

[

    [

        "c",

        "13.2.0"

    ],

    [

        "cpp",

        "13.2.0"

    ],

    [

        "java",

        "21.0.3"

    ],

    [

        "nodejs",

        "18.19.1"

    ],

    [

        "octave",

        "8.4.0"

    ],

    [

        "pascal",

        "3.2.2"

    ],

    [

        "php",

        "8.3.6"

    ],

    [

        "python3",

        "3.12.3"

    ]

]

when jobe server filled with 192.168.1.173:4000

An unexpected error occurred. The sandbox may be down. Try again shortly.
CheckQuestion 1

Feedback

Failed to run tests

Jobe server request failed. HTTP response from Jobe was 0: null


En respuesta a bi hex

Re: Failed to run tests

de Richard Lobb -
That suggests that the API key is wrong. To use jobe2 you need to set the API key to its default value of 2AAA7A5415B4A9B394B54BF1D2E9D.
En respuesta a Richard Lobb

Re: Failed to run tests

de bi hex -
thanks for your reply,here has new errors:
An unexpected error occurred. The sandbox may be down. Try again shortly.
Feedback
Failed to run tests
Jobe server request failed. HTTP response from Jobe was 0: null

The submission was invalid, and has been disregarded without penalty.

En respuesta a bi hex

Re: Failed to run tests

de Georges Azar -
I have the same problem. I make Jobe in Python and I want to connect CodeRunner with it and I get the same error.
En respuesta a Georges Azar

Re: Failed to run tests

de Richard Lobb -
There are lots of ways of getting a Jobe server request failed response. But it inevitably means that the HTTP request to Jobe issued by CodeRunner failed to connect. Possible causes include:
  1. The Jobe server address in the CodeRunner admin settings is wrong.
  2. The Moodle HTTP security settings are disallowing the outgoing connect. This is the most likely cause in the two cases in this thread - see below.
  3. The network settings are disallowing the connection, e.g. firewalling on the Moodle server disallows the outgoing request, firewalling of the Jobe server disallows the incoming connection, or a proxy server between the two is blocking the request.
  4. The Jobe server itself isn't accepting the connections.
  5. Jobe isn't installed correctly.

Case 2 is a common problem. Modern Moodle servers have a panel Site administration > General > HTTP security that is set by default to block various hosts and to allow outgoing connections only on port 443 and port 80. If using other ports, or if running a Jobe server on the Moodle server itself, you will need to adjust these settings.

The other causes are more difficult to diagnose. But you should:

  1. Make sure that the program testsubmit.py that comes with Jobe runs correctly on the Jobe host itself.
  2. Copy testsubmit.py across to the Moodle server (if you have OS admin level access) and see if it runs OK from there. You will need to use the --host option to set the address of the Jobe host.

It both those checks work, causes 1 and 2 are the most likely.