New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

cwp-cwp migration Connection not reached The following error occurred

Started by webaits, August 09, 2022, 08:38:32 AM

Previous topic - Next topic

webaits

I'm trying to migrate user accounts/database/emails etc from the old CWP pro server to the new CWP free server.
However, I'm facing the error message:

Quotecwp-cwp migration Connection not reached The following error occurred

And the complete account_transfer.log message:

export SSHPASS='PASSWORD'; /usr/bin/sshpass -e /usr/bin/ssh -p 5656 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet  root@123.123.123.123
test -d /usr/local/cwp/ && echo 'true' || echo 'false'
true

export SSHPASS=**********;/usr/bin/sshpass -e ssh-copy-id "-p 5656" root@123.123.123.123 -o StrictHostKeyChecking=no 2>&1
/usr/bin/ssh -p 2298 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@103.102.46.20 test -d /usr/local/cwp/ && echo 'true' || echo 'false' 2>&1


Here is no true or false after the last log line above.

I have already tried everything as shown in the video on the link:
https://docs.control-webpanel.com/docs/admin-guide/user-accounts/cwp-to-cwp-migration

And the command for the source server:
ssh root@123.123.123.123 -p 5656
Outputs
Quoteroot

There is no firewall or additional setting like NAT at the host level.
And I have tried migration by disabling the firewall on both sides.

Below is SSH config for reference.
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM no
#UsePAM yes also checked


Any help to be able to utilize CWP to CWP migration?

LexBart

Hi! I see that the error appeared not so long ago, if I found the same question I wanted to ask.

Were you able to find the cause of the error? I have the exact same problem. I did a migration before and there was no problem.

Now I see the same error in the log files and in the last line there is also no "true" or "false"

At the same time, if I run the script manually
sshpass -p PASSWORD /usr/bin/ssh -p PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@HOST test -d /usr/local/cwp/ && echo 'true' || echo 'false' 2>&1

The server will answer "true".

I would like to understand where the error could be.

webaits

I was in a hurry and the CWP community/mods/support aren't that enough active.
I'm using the pro version.
So I had to perform the manual migration.
I'm not sure what was causing the issue.

setecabanas


Mickeys

Quote from: setecabanas on August 18, 2022, 09:19:54 AM
I have same problem  :(

cwp-cwp tool migration is not working

I have same problem and solved executing from console:


export SSHPASS=password;/usr/bin/sshpass -e ssh-copy-id "-p Port" rootuser@xxx.xxx.xxx.xxx -o StrictHostKeyChecking=no 2>&1

ssh -p ' 3814' -o 'StrictHostKeyChecking=no' 'root@149.202.78.83'



and now:
go migration and test and save, ready to migrate.



PakPos

Quote from: Mickeys on August 30, 2022, 08:16:21 AM
Quote from: setecabanas on August 18, 2022, 09:19:54 AM
I have same problem  :(

cwp-cwp tool migration is not working

I have same problem and solved executing from console:


export SSHPASS=password;/usr/bin/sshpass -e ssh-copy-id "-p Port" rootuser@xxx.xxx.xxx.xxx -o StrictHostKeyChecking=no 2>&1

ssh -p ' 3814' -o 'StrictHostKeyChecking=no' 'root@149.202.78.83'



and now:
go migration and test and save, ready to migrate.




you mean,, we must enter the command from cli first.. then we can use the GUI ?


i hope someone here have time to create tutorial in one post step by step... so n00b like me can be follow the instruction step by step...

and i hope staff make a batch script :D so we only need run SH.. then fill the question :D

Mickeys

Quoteyou mean,, we must enter the command from cli first.. then we can use the GUI ?

from Remote Terminal login as root.

PakPos

Quote from: Mickeys on August 30, 2022, 11:55:34 AM
Quoteyou mean,, we must enter the command from cli first.. then we can use the GUI ?

from Remote Terminal login as root.

yes i mean remote terminal like putty.... under cli


so this is what i should to do
old server A: 1.1.1.1
username : root
pass : 12121212

new server B: 2.2.2.2
username: root
pass : 090909

firewall = off
ssh port : 2222 (both A and B)

step one:
connect to server using CLI, if remote then we can use like puTTY

login to server A

root@servera: # export SSHPASS=121212;/usr/bin/sshpass -e ssh-copy-id "-p 2222" root@1.1.1.1 -o StrictHostKeyChecking=no 2>&1 ssh -p ' 2222' -o 'StrictHostKeyChecking=no' 'root@2.2.2.2'
enter
then go to CWP GUI do cwp-to-cwp migration just like tutorial

correct?

josemnunez

Make sure to put the ssh key in the authorized list on the origin server

kecoamumet

Quote from: PakPos on August 31, 2022, 10:44:14 AM
Quote from: Mickeys on August 30, 2022, 11:55:34 AM
Quoteyou mean,, we must enter the command from cli first.. then we can use the GUI ?

from Remote Terminal login as root.

yes i mean remote terminal like putty.... under cli


so this is what i should to do
old server A: 1.1.1.1
username : root
pass : 12121212

new server B: 2.2.2.2
username: root
pass : 090909

firewall = off
ssh port : 2222 (both A and B)

step one:
connect to server using CLI, if remote then we can use like puTTY

login to server A

root@servera: # export SSHPASS=121212;/usr/bin/sshpass -e ssh-copy-id "-p 2222" root@1.1.1.1 -o StrictHostKeyChecking=no 2>&1 ssh -p ' 2222' -o 'StrictHostKeyChecking=no' 'root@2.2.2.2'
enter
then go to CWP GUI do cwp-to-cwp migration just like tutorial

correct?

hey pakpos, do you deliver mails? hehehe..

actually im facing same problem with you. what i do is.

on old server
after doing the API allow stuff than generate the ssh generator

on the new server
you can do this on ssh



# export SSHPASS=passwordoldserver;/usr/bin/sshpass -e ssh-copy-id "-p 22" root@ipoldserver -o StrictHostKeyChecking=no 2>&1

# ssh -p ' 22' -o 'StrictHostKeyChecking=no' 'root@ipoldserver'


and please make sure the sshpass is installed on the new server. after that, you can do the cwp to cwp migration stuff.

sant0s

Let make simple,

on new server copy Public Key from: # cat /root/.ssh/id_rsa.pub
and paste Public key to Old server: # nano /root/.ssh/authorized_keys

sundar rajamani

Hi facing the same error after update cwp I think am facing this issue....

sundar rajamani

Quote from: sant0s on September 02, 2022, 07:09:06 AM
Let make simple,

on new server copy Public Key from: # cat /root/.ssh/id_rsa.pub
and paste Public key to Old server: # nano /root/.ssh/authorized_keys

Nice this method looks like its working any way once complete will update here

PakPos

Quote from: sant0s on September 02, 2022, 07:09:06 AM
Let make simple,

on new server copy Public Key from: # cat /root/.ssh/id_rsa.pub
and paste Public key to Old server: # nano /root/.ssh/authorized_keys

i will test soon
right now i already move all account manually :(

thankyou for your simple explanation

overseer

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:
Disable the firewall (CSF & LDF) on both servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In /etc/ssh/sshd_config set:
PermitRootLogin yes
StrictModes no

Restart sshd:
service sshd restart
On 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, reset the r00t passphrase to strong ones, and re-enable the firewalls.