Author Topic: Migrate Cpanel accounts to CWP though new feature  (Read 48890 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Migrate Cpanel accounts to CWP though new feature
« 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

Offline
*****
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #1 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

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #2 on: August 22, 2019, 03:07:44 AM »
have you try disable firewall (CSF) on both server?

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #3 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

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #4 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

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #5 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

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #6 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.

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #7 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

Offline
*****
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #8 on: December 17, 2019, 10:57:33 AM »
Hi, just try to add the key manually, probably something wrong with your SSH
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #9 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 ?


Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #10 on: January 04, 2020, 05:27:39 PM »
Dimak, Maybe modify account and move it to /home/ OR move cpmove file to /home/

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #11 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...

Offline
*
Re: Migrate Cpanel accounts to CWP though new feature
« Reply #12 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.

If I try to directly login from CWP server to my cPanel server with
ssh root@CPANELIP -p2255
I haven’t issues:


Do you have suggestions?
Thanks,
Matteo

Re: Migrate Cpanel accounts to CWP though new feature
« Reply #13 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.
« Last Edit: January 31, 2020, 07:17:37 PM by ejsolutions »

Re: Migrate Cpanel accounts to CWP though new feature
« Reply #14 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.