Hello!
I tried to test python3 testsubmit.py, and unfortunately get the following messages. Please, help me to solve this problem&
root@jobe:/var/www/html/jobe# python3 testsubmit.py
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/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.6/socket.py", line 724, in create_connection
raise err
File "/usr/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
I assume you're running testsubmit.py on the Jobe server from the command line and that you haven't edited the original supplied version?
If so, then it seems Apache isn't running. Normally it should start immediately it's installed but ... maybe not in your case? Have you tried restarting the Jobe server?
What's the output from the command line
sudo service --status-all | grep apache2
?
This is the result:
admin@jobe:~$ sudo service --status-all | grep apache2
[sudo] password for admin:
[ + ] apache2
admin@jobe:~$
I'm sorry for the disturb. Everything got fine. I just reinstall my VPS, using Ubuntu 18.04, LAMP and following Richard's instruction. And now everything is fine!
Thank you!