Author Topic: cwp-cwp migration Connection not reached The following error occurred  (Read 4782 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
almalinux
cwp pro
(both)

firewall off
ssh port correct
api created and match

but still fail

Offline
****
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #1 on: August 05, 2022, 12:44:35 AM »
If I remember how to do this.

On the SENDING Server:

You have to create an API Key under CWP Settings -> API Manager
Allow New IP Access

Short Name: Xfer
IP Origin: (IP of new server)
Key Code: (Click on Generate)
Owner: root
Format Request: JSON
Enable Function For: CWP to CWP

Now below, click on every box available, that it didn't check.

Turn OFF the firewall temporarily.

--

On the RECEIVING Server:

Turn OFF the firewall temporarily.

Goto User Accounts -> CWP to CWP Migration.

Server IP: (Old Server IP)
User: root
Password: (root password of old server)
SSH Port: (The port # you connect via SSH)
API Key CWP: (API Key generated above)
Maximum simultaneous transfers: (Just leave at 1)

Click on 'Test & Save'
You should see the old server listed under 'Remote Server List'.
Click on the Server IP under and select account to xfer.


Offline
***
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #3 on: August 05, 2022, 05:02:58 AM »
the bad news was.. i already follow those step....
but tonight or tomorrow i will re deploy new vps and  retry those step (i will record on mp4).

recommended keep using alma or the new server using centos7 ? (ignore the eol)

Offline
*****
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #4 on: August 05, 2022, 11:44:27 AM »
Hello


check that following:

- If my server is NAT, check that it has a public IP
- That port 2304 is open for communication with the api
- That the remono server allows ssh connections as root

With this most of the problems are solved

Offline
***
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #5 on: August 05, 2022, 01:18:15 PM »
Hello


check that following:

- If my server is NAT, check that it has a public IP
- That port 2304 is open for communication with the api
- That the remono server allows ssh connections as root

With this most of the problems are solved

yes it behind the NAT both and have ip public, cwp running good some test domain added without any problem
and they are in same datacenter


right now i redeploy the new alma.. to test migration (again)
« Last Edit: August 05, 2022, 01:22:57 PM by PakPos »

Offline
***
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #6 on: August 09, 2022, 06:16:00 AM »
problem still same...
but i solved this by backup one by one manually

Offline
*
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #7 on: October 16, 2022, 09:21:11 AM »
I have tried all above mentioned but nothing worked.
Finally I have updated CWP package on both server by executing sh /scripts/update_cwp
After updating the package connection established.

Offline
***
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #8 on: October 16, 2022, 10:25:20 AM »
I have tried all above mentioned but nothing worked.
Finally I have updated CWP package on both server by executing sh /scripts/update_cwp
After updating the package connection established.


how if you try now ?
last update ( i think ) have some hidden bug fix

Offline
****
Re: cwp-cwp migration Connection not reached The following error occurred
« Reply #9 on: March 03, 2023, 06:30:52 AM »
Duplicate posted in case it helps someone in the future:
For CWP->CWP Migration, you have to stand on your head, pat your belly, and rub your feet at the same time in order to make this work. Actually, I just had the opportunity to do a CWP -> CWP migration, so here was my solution to the failed connection errors:
Disable the firewall (CSF & LDF) on both servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In
Code: [Select]
/etc/ssh/sshd_config set:
Code: [Select]
PermitRootLogin yes
StrictModes no
Restart sshd:
Code: [Select]
service sshd restartOn the source server, set up the API key (CWP Settings > API Manager) for CWP Migration using the default CWP template.
On the receiving server, use the interface in User Accounts > CWP->CWP Migration.
After successfully migrating the accounts, revert all changes to your SSH configuration, restart the ssh daemon, reset the r00t passphrases to strong ones, and re-enable the firewalls.