good morning everyone, I’m trying to migrate ns7 to ns8 following the instructions but the system always gives me this error
Mistake
Connection failed
The following command failed:
nethserver-ns8-migration/connection/update
Unfortunately we were unable to catch the error. Please click the button to copy the failed command to the clipboard, paste it into Terminal and send the result to the developers
You have log in ns7 in /var/log/nethserver-ns8-migration IIRC
The most common error is a fqdn not resolvable of NS8
But we are in the darkness without more explanations on what you did
I am facing this exact error.
NS7 is installed a a VPS. NS8 is also installed on a VPS.
I added an A record in NS7 to be able to resolve the NS8 server.
I can ping, nslookup the NS8 from NS7 and SSH into NS8 from NS7
I don’t know if it is relevant, but both servers are NOT on the same (local) network. Is there anything else I need to do to start the migration?
In /var/log/ns8-migration.log on NS7 there are a few lines of joining and leaving cluster:
=========== Join cluster Sat, 01 Jun 2024 16:26:50 +0200
=========== Join cluster Sat, 01 Jun 2024 16:28:28 +0200
=========== Join cluster Sat, 01 Jun 2024 16:33:49 +0200
=========== Leave cluster Sat, 01 Jun 2024 16:36:14 +0200
=========== Join cluster Sat, 01 Jun 2024 16:37:00 +0200
=========== Join cluster Sat, 01 Jun 2024 16:37:09 +0200
=========== Join cluster Sat, 01 Jun 2024 16:37:15 +0200
=========== Join cluster Sat, 01 Jun 2024 16:37:31 +0200
=========== Join cluster Sat, 01 Jun 2024 16:39:24 +0200
=========== Leave cluster Sun, 02 Jun 2024 13:24:36 +0200
=========== Leave cluster Sun, 02 Jun 2024 13:24:46 +0200
=========== Join cluster Sun, 02 Jun 2024 13:25:23 +0200
The joining cluster when I started the migration on NS7.
Leaving the cluster when I clicked ‘connect to a different cluster’
Error retrieving apps to migrate
Migrate NethServer 7 applications to ns8.domain.tld.Connect to a different cluster
What should I search for in the NS8 logs?
Any pointers to go from now?
/edit I also pinged NS7 from NS8 and did a NSLOOKUP from NS8 to NS7. Both successful
I also was able to SSH into NS7 from NS8
Hi @robb
Maybe “Trusted Networks” in NS7?
You can add a public IP address in trusted networks?
Why not?
There can be legit reasons for doing so… ![]()
(Static IP at home, for example!)
And: AFAIK, NS7 allows this.
Another question coming to mind: Do you use a virtual IP internally on NS7?
(For green Networks…)
My 2 cents
Andy
Please check if it’s following issue:
https://community.nethserver.org/t/ns8-migration-error-retrieving-apps-to-migrate/22768/4?u=mrmarkuz
STill getting the connection failed message.
I do notice that every time I retry the migration from the migration tool, the WG IP is upped by 1
And when checking the allowed networks setting in NS8 it seems they get reset to the original 10.5.4.4
Is this by design that the trusted network is (re)set to 10.5.4.4?
More and more people fall in this failure pattern: it is something to fix.
Just examined the trusted networks setting in /etc/wireguard/wg0.conf on NS8 again and it IS reset to 10.5.4.4/32 (I adjusted this to the IP address of the WG IP address of NS7)
I even set the subnetmask a bit less tight so other IP’s in that range were ‘trusted’ too.
Is it default behaviour this is overwritten?
/edit: I could use some pointers how to keep the trusted network for WG IP address of NS7 server.on the set address in the conf file
The solution @mrmarkuz gave in NS8 Migration: Error retrieving apps to migrate - #4 by mrmarkuz does not work for me since every time I retry the migration, the IP address for the WG adapter is upped by one and if I go the ‘connect to another server’ path, the conf file for trusted networks is reset back to 10.5.4.4/32 for the WG connection, hence no allowed connection.
Any update on this?
The issue was opened:
Hi Robb, if you can run a development package and make a test for us, there is an RPM with some improvements to the migration tool. You can install it with
yum install http://packages.nethserver.org/nethserver/7.9.2009/autobuild/x86_64/Packages/nethserver-ns8-migration-1.0.12-1.4.pr73.g7ebf8e1.ns7.x86_64.rpm
Do not use it in a production environment!
It is on a production server… ![]()