NethServer Version: 7.9.2009 and 8 beta
Module: ns8-migration
Trying to join connect my NS7 to my new NS8 and I get an error after entering credentials and attempting to connect.
Using the provided command to get details gives this:
[root@neth ~]# echo '{"action":"login","Host":"$IP","User":"$USER","Password":"$PASS","TLSVerify":"disabled"}' | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-ns8-migration/connection/update | jq
Odd number of elements in hash assignment at /usr/share/perl5/vendor_perl/esmith/db.pm line 273.
{
"steps": 2,
"pid": 18003,
"args": "",
"event": "nethserver-ns8-migration-save"
}
{
"step": 1,
"pid": 18003,
"action": "S05generic_template_expand",
"event": "nethserver-ns8-migration-save",
"state": "running"
}
{
"progress": "0.50",
"time": "0.152543",
"exit": 0,
"event": "nethserver-ns8-migration-save",
"state": "done",
"step": 1,
"pid": 18003,
"action": "S05generic_template_expand"
}
{
"step": 2,
"pid": 18003,
"action": "S90adjust-services",
"event": "nethserver-ns8-migration-save",
"state": "running"
}
{
"progress": "1.00",
"time": "1.007077",
"exit": 0,
"event": "nethserver-ns8-migration-save",
"state": "done",
"step": 2,
"pid": 18003,
"action": "S90adjust-services"
}
{
"pid": 18003,
"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 215, in <module>
add_external_domain_response = call(api_endpoint, "add-external-domain", payload['token'], add_external_domain_request, False)
File "/usr/sbin/ns8-join", line 45, 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>
{
"id": "1693864816",
"type": "CommandFailed",
"message": "See /var/log/messages"
}
And the information in /var/log/messages show:
Sep 4 15:00:15 neth esmith::event[18003]: Event: nethserver-ns8-migration-save
Sep 4 15:00:15 neth esmith::event[18003]: expanding /etc/wireguard/wg0.conf
Sep 4 15:00:15 neth esmith::event[18003]: expanding /etc/httpd/conf.d/00ns8migration.conf
Sep 4 15:00:15 neth esmith::event[18003]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.152543]
Sep 4 15:00:15 neth systemd: Reloading.
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:49] Failed to parse capability in bounding/ambient set, ignoring: CAP_PERFMON
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:70] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:77] Unknown lvalue 'BindReadOnlyPaths' in section 'Service'
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:78] Unknown lvalue 'BindReadOnlyPaths' in section 'Service'
Sep 4 15:00:15 neth esmith::event[18003]: [INFO] service agent restart
Sep 4 15:00:15 neth systemd: Stopping NS8 agent...
Sep 4 15:00:15 neth systemd: Stopped NS8 agent.
Sep 4 15:00:15 neth systemd: Started NS8 agent.
Sep 4 15:00:15 neth agent: Task queue pop error: dial tcp $VPN_IP:6379: connect: connection refused
Sep 4 15:00:15 neth systemd: Reloading.
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:49] Failed to parse capability in bounding/ambient set, ignoring: CAP_PERFMON
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:70] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:77] Unknown lvalue 'BindReadOnlyPaths' in section 'Service'
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:78] Unknown lvalue 'BindReadOnlyPaths' in section 'Service'
Sep 4 15:00:15 neth esmith::event[18003]: [INFO] service wg-quick@wg0 restart
Sep 4 15:00:15 neth systemd: Stopping WireGuard via wg-quick(8) for wg0...
Sep 4 15:00:15 neth wg-quick: [#] ip link delete dev wg0
Sep 4 15:00:15 neth systemd: Stopped WireGuard via wg-quick(8) for wg0.
Sep 4 15:00:15 neth systemd: Starting WireGuard via wg-quick(8) for wg0...
Sep 4 15:00:15 neth wg-quick: [#] ip link add wg0 type wireguard
Sep 4 15:00:15 neth wg-quick: [#] wg setconf wg0 /dev/fd/63
Sep 4 15:00:15 neth wg-quick: [#] ip -4 address add 10.5.4.6 dev wg0
Sep 4 15:00:15 neth wg-quick: [#] ip link set mtu 1420 up dev wg0
Sep 4 15:00:15 neth wg-quick: [#] ip -4 route add 10.5.4.0/24 dev wg0
Sep 4 15:00:15 neth systemd: Started WireGuard via wg-quick(8) for wg0.
Sep 4 15:00:15 neth systemd: Reloading.
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:49] Failed to parse capability in bounding/ambient set, ignoring: CAP_PERFMON
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:70] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:77] Unknown lvalue 'BindReadOnlyPaths' in section 'Service'
Sep 4 15:00:15 neth systemd: [/usr/lib/systemd/system/netdata.service:78] Unknown lvalue 'BindReadOnlyPaths' in section 'Service'
Sep 4 15:00:16 neth esmith::event[18003]: [INFO] service httpd reload
Sep 4 15:00:16 neth systemd: Reloading The Apache HTTP Server.
Sep 4 15:00:16 neth systemd: Reloaded The Apache HTTP Server.
Sep 4 15:00:16 neth esmith::event[18003]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [1.007077]
Sep 4 15:00:16 neth esmith::event[18003]: Event: nethserver-ns8-migration-save SUCCESS
This seems to be the offending line:
neth agent: Task queue pop error: dial tcp $VPN_IP:6379: connect: connection refused
It looks like it may be attempting to dial the Wireguard address configured on NS8 and is failing.