Control Web Panel

WebPanel => Migration from other control panels => Topic started by: paulo_piquera@hotmail.com on August 21, 2019, 10:06:19 PM

Title: Migrate Cpanel accounts to CWP though new feature
Post by: paulo_piquera@hotmail.com on August 21, 2019, 10:06:19 PM
Hello,

We updated CWP today and we found the new feature "Migrate all Cpanel server accounts", but when we putting all infomation needed on camps and clicked in Test and Save we got the failed message "Connection not reached The following error occurred", someone can help me please?

The information used in camps are correct and we are use CWP Pro version

Regards
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: josemnunez on August 22, 2019, 12:17:41 AM
Hello,

We updated CWP today and we found the new feature "Migrate all Cpanel server accounts", but when we putting all infomation needed on camps and clicked in Test and Save we got the failed message "Connection not reached The following error occurred", someone can help me please?

The information used in camps are correct and we are use CWP Pro version

Regards

This can happen for several things, please check the following:

- That your Cpanel server allows ssh connections
- That your Cpanel apikey have root privileges
- That the IP address of your CWP server is allowed in the cPanel server firewall.

Taking into account all these recommendations you should reach the connection to your cPanel server without problem and the process should continue

For more information please consult our documentation

https://docs.control-webpanel.com/docs/admin-guide/user-accounts/cpanel-server-migration-new
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: skyknight on August 22, 2019, 03:07:44 AM
have you try disable firewall (CSF) on both server?
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: paulo_piquera@hotmail.com on August 22, 2019, 12:58:26 PM
Hello,

We disabled the firewall in both servers and create a API token with total access, but the problem continue, the Cpanel server password has dot character (.), this can be the problem?

Thanks for reply

Regards
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: paulo_piquera@hotmail.com on August 22, 2019, 03:59:12 PM
Hello,

We identified two errors on php-fpm.log on directory /usr/local/cwp/php71/var/log, the errors are:

1st: child 710 said into stderr: "stdin: is not a tty"
2nd: child 27323 exited with code 0 after 885.692552 seconds from start

Someone can help us with this problems?

Regards
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: paulo_piquera@hotmail.com on August 22, 2019, 04:20:03 PM
Hello,

We located how to solve this problem, we needed to execute the command below on CWP terminal:

ssh-copy-id user@server_ip_address

Regards
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: theozsnowman on November 13, 2019, 11:37:13 PM
I am getting the same issue here and when i try and connect to a cpanel server with the root ssh connection i get Permission denied:

Code: [Select]
ssh-copy-id "-p 22222" root@xxx.xxx.xxx.xxx
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@xxx.xxx.xxx.xxx's password:
Permission denied, please try again.
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: klaud on December 16, 2019, 09:12:07 AM
do someone have solution for this?
i don't know how to check the log, but i also have same problem, press Test&Save but nothing happens
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: Igor S. on December 17, 2019, 10:57:33 AM
Hi, just try to add the key manually, probably something wrong with your SSH
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: Dimak on January 04, 2020, 03:28:42 PM
Problem with migration:

My CPanel pkgacct make cpmove-username backups in /home2/ folder.
But CWP system trying to download from /home/ folder.
and say "File not found"

How to fix ?
How to specify CWM migration system where to search  cpmove-username backup files ?

Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: PiotrE on January 04, 2020, 05:27:39 PM
Dimak, Maybe modify account and move it to /home/ OR move cpmove file to /home/
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: Dimak on January 04, 2020, 09:52:54 PM
I tried in such way:

1. made backup in /home/
pkgacct USERNAME /home/

2 then go to CWP migration and run transfer of this account.
It automatically creates same cpmove-username.tar.gz  in /home2/

3. then it download first file I have made manually, from /home/


But it's long and stupid way to do same job. I want it automatically as described in manual...
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: Teo on January 31, 2020, 06:34:04 PM
Hi there, I’ve tried following the guide but I have the “Connection not reached error” trying to test the connection.
(https://i.postimg.cc/WF0Cps4r/Schermata-2020-01-31-alle-19-22-31.jpg) (https://postimg.cc/WF0Cps4r)
If I try to directly login from CWP server to my cPanel server with
ssh root@CPANELIP -p2255
I haven’t issues:
(https://i.postimg.cc/bG74jZqp/Schermata-2020-01-31-alle-19-26-44.jpg) (https://postimg.cc/bG74jZqp)

Do you have suggestions?
Thanks,
Matteo
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: ejsolutions on January 31, 2020, 06:53:29 PM
^ This is one of the rare cases where you can add your opposite server on each /etc/csf/csf.allow
Remember to restart the firewall on both, once added. I might be prudent to flush the firewalls, just in case.
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: ejsolutions on January 31, 2020, 08:42:38 PM
I had a little bit of time, so thought I'd take a review of this..
I was also unable to get it to work, even when temporarily disabling firewalls at both ends, adding port 2304, enabling PAM authentication etc. I believe additional ports may need to be open.
Having seen the GUI, I wouldn't recommend using it in any case. Authentication should be done using keys, especially for a root account. Also, I'm not convinced that the API token needs full system access, even though I tried with both restricted & full.

For completeness, I tested the method that I had previously used: cPanel Account Restore.
Remote copy your backup files to the CWP /home directory, then import works fine.
You'll need to define packages to suit the imported accounts - easiest to do that first.
Remember to open port 2304 in the firewall (unsure as to why, as it's a local connection.)
Example remote copy (you should be using ssh keys to authenticate)
Code: [Select]
scp -P 12345 root@whm.server.com:/backup/2020-01-31/accounts/cpaneluser.tar.gz /home/cpaneluser.tar.gz
The GUI is self-explanatory now.
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: Teo on January 31, 2020, 08:46:41 PM
^ This is one of the rare cases where you can add your opposite server on each /etc/csf/csf.allow
Thanks for the suggestion, but nothing to do…
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: ejsolutions on January 31, 2020, 11:07:32 PM
Aye, thought it might help must a no-go.
Did you see my follow up?
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: Teo on February 01, 2020, 03:19:08 PM
Did you see my follow up?
I’ve lost it but reading it now, i can restore single accounts creating a manual copy.
I hope in this “cPanel Server Migration” because when my new CWP server will be ready, I’d like a bulk migration of all 50 accounts.

I’m trying the copy from
CentOS release 6.10 with cPanel v84.0.21
to
CentOS Linux release 7.7.1908 with CWPpro version 0.9.8.934
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: fretelweb on February 14, 2020, 09:00:53 PM
In my case is beacuse a bug in CWP when it pass the SSPASS it create a double quoted password " ' password ' "" so the password is incorrect and gave me a conection error.

I am still waiting for the Update meanwhile I am creating my own script to bulk copy backups from cpanel to CWP and then restore in CWP.
Title: Re: Migrate Cpanel accounts to CWP though new feature
Post by: Sandeep on February 15, 2020, 02:15:29 PM
kindly update cwp for the fix.