gamegos / cesi

CeSI is a web interface for managing multiple supervisors from the same place.
GNU General Public License v3.0
577 stars 185 forks source link

node not connected Connection refused #105

Open pilchita opened 2 years ago

pilchita commented 2 years ago

Hi, i add a new node, but not connect with CeSi:

Traceback (most recent call last): File "/opt/cesi/cesi/core/handlers.py", line 9, in wrapped return f(*args, **kwargs) File "/opt/cesi/cesi/core/node.py", line 43, in get_system_list_methods_for_xmlrpc_server self.connection.system.listMethods() File "/usr/lib64/python3.7/xmlrpc/client.py", line 1112, in call return self.send(self.name, args) File "/usr/lib64/python3.7/xmlrpc/client.py", line 1452, in request verbose=self.verbose File "/usr/lib64/python3.7/xmlrpc/client.py", line 1154, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib64/python3.7/xmlrpc/client.py", line 1187, in single_request dict(resp.getheaders()) xmlrpc.client.ProtocolError: <ProtocolError for 10.54.130.34:80/RPC2: 404 NOT FOUND>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/cesi/venv/lib64/python3.7/site-packages/flask/app.py", line 2073, in wsgi_app response = self.full_dispatch_request() File "/opt/cesi/venv/lib64/python3.7/site-packages/flask/app.py", line 1518, in full_dispatch_request rv = self.handle_user_exception(e) File "/opt/cesi/venv/lib64/python3.7/site-packages/flask/app.py", line 1516, in full_dispatch_request rv = self.dispatch_request() File "/opt/cesi/venv/lib64/python3.7/site-packages/flask/app.py", line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(*req.view_args) File "/opt/cesi/cesi/decorators.py", line 17, in wrap return f(args, **kwargs) File "/opt/cesi/cesi/api/v2/nodes.py", line 15, in get_nodes return jsonify(status="success", nodes=cesi.serialize_nodes()) File "/opt/cesi/cesi/core/cesi.py", line 115, in serialize_nodes return [n.serialize() for n in self.nodes] File "/opt/cesi/cesi/core/cesi.py", line 115, in return [n.serialize() for n in self.nodes] File "/opt/cesi/cesi/core/node.py", line 112, in serialize _serialized_general = self.serialize_general() File "/opt/cesi/cesi/core/node.py", line 105, in serialize_general "connected": self.is_connected, File "/opt/cesi/cesi/core/node.py", line 33, in is_connected return self.connect() File "/opt/cesi/cesi/core/node.py", line 36, in connect status, msg = self.get_system_list_methods_for_xmlrpc_server() File "/opt/cesi/cesi/core/handlers.py", line 13, in wrapped return False, err.faultString AttributeError: 'ProtocolError' object has no attribute 'faultString' 10.54.171.60 - - [20/Jan/2022 14:01:16] "GET /api/v2/nodes/ HTTP/1.1" 500 -

[[nodes]]
name = "api-data-service"
environment = ""
username = ""
password = ""
host = "10.x.x.x"
port = "80"

on port 80 is running an nginx proxy to supervisor port.

Which ports should I open? Regards,