I investigated a little and found that the command /sbin/e-smith/config getjson ns8 returns only 1 value which is 1 and it does not have the used attributes in Dashboard.vue. In theory, the get_config() is called in nethserver-ns8-migration / api / connection / read.
If I create a breakpoint at line 1445 in Dashboard.vue to disable the loading variable, so if the nethserver.exec(["nethserver-ns8-migration/connection/read"], ... fails, the UI does not stuck at loading. In this case, the form loads to enter the NS8 admin credentials.
That may be a different story that if I enter the credentials, the connection is refused with the following error:
{"steps":2,"pid":32526,"args":"","event":"nethserver-ns8-migration-save"}
{"step":1,"pid":32526,"action":"S05generic_template_expand","event":"nethserver-ns8-migration-save","state":"running"}
{"progress":"0.50","time":"0.077799","exit":0,"event":"nethserver-ns8-migration-save","state":"done","step":1,"pid":32526,"action":"S05generic_template_expand"}
{"step":2,"pid":32526,"action":"S90adjust-services","event":"nethserver-ns8-migration-save","state":"running"} {"progress":"1.00","time":"0.28576","exit":0,"event":"nethserver-ns8-migration-save","state":"done","step":2,"pid":32526,"action":"S90adjust-services"} {"pid":32526,"status":"success","event":"nethserver-ns8-migration-save"}
Traceback (most recent call last):
File "/usr/lib64/python3.6/urllib/request.py", line 1349, in do_open encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib64/python3.6/http/client.py", line 1254, in request self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output self.send(msg) File "/usr/lib64/python3.6/http/client.py", line 974, in send self.connect()
File "/usr/lib64/python3.6/http/client.py", line 946, 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 During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/usr/sbin/ns8-join", line 237, in <module> call(api_endpoint, "remove-external-domain", payload['token'],
{"domain": account_provider_domain}, False)
File "/usr/sbin/ns8-join", line 47, in call post = request.urlopen(req, context=ctx)
File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout)
File "/usr/lib64/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/usr/lib64/python3.6/urllib/request.py", line 544, in _open '_open', req)
File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/usr/lib64/python3.6/urllib/request.py", line 1377, in http_open return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib64/python3.6/urllib/request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [Errno 111] Connection refused>"`
Do you have any ideas what the /sbin/e-smith/config getjson ns8 should do and return?