Quest about installation problem of jobe server

Quest about installation problem of jobe server

de Giuseppe Sportelli -
Número de respuestas: 6

Hi, all 

i have a vps with almalinux distro (centos derivatives).

On this server i have 

moodle.domain1.xxx

and eagle.domain2.xxx.

Now i want to use jobe server in my moodle. 

I lanch via ssh in jobe folder script testsubmit.py. 

i receive error

Supported languages:

Traceback (most recent call last):

  File "testsubmit.py", line 1025, in <module>

    sys.exit(main())

  File "testsubmit.py", line 997, in main

    do_get_languages()

  File "testsubmit.py", line 958, in do_get_languages

    ok, lang_versions = do_http('GET', resource)

  File "testsubmit.py", line 888, in do_http

    connect = http_request(method, resource, data, headers)

  File "testsubmit.py", line 771, in http_request

    connect.request(method, resource, data, headers)

  File "/usr/lib64/python3.6/http/client.py", line 1269, in request

    self._send_request(method, url, body, headers, encode_chunked)

  File "/usr/lib64/python3.6/http/client.py", line 1315, in _send_request

    self.endheaders(body, encode_chunked=encode_chunked)

  File "/usr/lib64/python3.6/http/client.py", line 1264, in endheaders

    self._send_output(message_body, encode_chunked=encode_chunked)

  File "/usr/lib64/python3.6/http/client.py", line 1040, in _send_output

    self.send(msg)

  File "/usr/lib64/python3.6/http/client.py", line 978, in send

    self.connect()

  File "/usr/lib64/python3.6/http/client.py", line 950, in connect

    (self.host,self.port), self.timeout, self.source_address)

  File "/usr/lib64/python3.6/socket.py", line 724, in create_connection

    raise err

  File "/usr/lib64/python3.6/socket.py", line 713, in create_connection

    sock.connect(sa)

ConnectionRefusedError: [Errno 111] Connection refused

i think that i miss some question of installation. 

when i launch in browser https://jobe.domain1.xxx/jobe/index.php/restapi/languages

i see json file in browser. 

How do i resolve ?

Thank yout

En respuesta a Giuseppe Sportelli

Re: Quest about installation problem of jobe server

de Richard Lobb -
There are lots of possibilities, unfortunately.

Firstly, does CodeRunner work with the default University of Canterbury jobe server (i.e. the default settings in the CodeRunner admin settings panel)?

Next: what have you set as the Jobe server in the admin settings for CodeRunner? Have you entered

jobe.domain1.xxx
or

https://jobe.domain1.xxx
You probably should be using the second of those, since your example shows you accessing the server via https not http (which is what Jobe usually uses).
En respuesta a Richard Lobb

Re: Quest about installation problem of jobe server

de Giuseppe Sportelli -
Hi, prof. thank you for answer
i have tried both possibilities.
in first with the jobe University server when i save question moodle it says that server it is down (with default parameters).
In second with my new jobe server it is the same things. 
I'm sure of the test quiz why i have imported from a public deutschland bank some java question.
However, when i open browser with 
https://jobe.domain1.xxx/jobe/index.php/restapi/langages , the server send to me json output correctly.

I have just one doubt, what kind of access have i to have
on the jobe server foleder ?


Thank for attention.

En respuesta a Giuseppe Sportelli

Re: Quest about installation problem of jobe server

de Richard Lobb -
The default server (jobe2.cosc.canterbury.ac.nz) is not down. It's very rarely down. So if your Moodle server can't connect to that directly then there's a networking issue. It sounds like a firewall is getting in the way but exactly where and how I have no idea. You could maybe ask your web hosting service why you can't open an HTTP connection to our Jobe server?

The Jobe installer sets the access rights to the various Jobe folders and you should not need to change these. If you do so, you risk opening major security holes. Each Jobe task runs as a different Jobe user (jobe00, jobe01 etc) and each is isolated from all the others to avoid information leakage between users. Jobe does however depend on ACL (Access Control List) support being enabled so if that's not enabled on your server you won't be able to run Jobe.

Sorry, but I can provide only limited support here. Jobe works fine if you install it on a clean reasonably-modern self-contained Ubuntu OS. But when you're using a web-hosting services there can be all sorts of networking and other security rules added by the service which might break Jobe. I'm afraid you'll have to do your own debugging. You might want to consider using the Python3 simpletest.py as a test program rather than the more complicated testsubmit.py.
En respuesta a Richard Lobb

Re: Quest about installation problem of jobe server

de Giuseppe Sportelli -

Hi, i have solved with yout server

Now i try with my server after corret mismatch !

Now i write a simple c++ program

int main ()
{
    int n1,n2,s;
    s=0;
    cout << "\n Inserisci il primo numero:";
    cin >> n1;
    cout << "\n Inserisci il secondo numero:";
    cin >> n2;
    s=n1+n2;
    cout<< "\n La somma è:"<< s << endl;
    return 0;
}

My test case is:

standard input

3
6

In standard input case box

and in standard output program

i write:

 Inserisci il primo numero:
 Inserisci il secondo numero:
 La somma è:9

why doesn't it validate ?

Thank you very musch Prof.
I teach in Italy and i want to use this framework in my secondary high school. 

En respuesta a Giuseppe Sportelli

Re: Quest about installation problem of jobe server

de Richard Lobb -
When you can't figure out a validation failure, do the following:
  1. Uncheck "Validate on save"
  2. Save the question
  3. Preview it
  4. Click "Fill in correct response"
  5. Click "Check", which should show the failing test case(s).
  6. Click "Show differences".
I think you'll find you have a whitespace problem :)
En respuesta a Richard Lobb

Re: Quest about installation problem of jobe server

de Giuseppe Sportelli -

Hello, the problem is a carriage return problem.

I have resolved !

Yesteraday i have watched your video and i have buyed a digital ocean droplet.

Good solution.

Thank you