Traceback (most recent call last): File "odoo-api.py", line 30, in uid = common.login(db, username, password) File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__ return self.__send(self.__name, args) File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __request verbose=self.__verbose File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib/python3.6/xmlrpc/client.py", line 1166, in single_request http_conn = self.send_request(host, handler, request_body, verbose) File "/usr/lib/python3.6/xmlrpc/client.py", line 1279, in send_request self.send_content(connection, request_body) File "/usr/lib/python3.6/xmlrpc/client.py", line 1309, in send_content connection.endheaders(request_body) File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output self.send(msg) File "/usr/lib/python3.6/http/client.py", line 980, in send self.connect() File "/usr/lib/python3.6/http/client.py", line 1434, in connect super().connect() File "/usr/lib/python3.6/http/client.py", line 952, 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
Could someone help to fix the above error please.
On local system it works fine. But on my cloud server running behind nginx i got the above error message.
I did tried disable firewall but no luck as same error message.
Thanks in advance
I think you should try the connection to odoo port directly, just to debug. Seems you have some kind of problema related to nginx.
Am actually suspecting that too. I assume it is an nginx issue but don't know how to allow the connection on nginx