Migrate Cpanel accounts to CWP though new feature

Started by paulo_piquera@hotmail.com, August 21, 2019, 10:06:19 PM

Previous topic - Next topic

paulo_piquera@hotmail.com

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

josemnunez

Quote from: 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

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

skyknight

have you try disable firewall (CSF) on both server?

paulo_piquera@hotmail.com

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

paulo_piquera@hotmail.com

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

paulo_piquera@hotmail.com

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

theozsnowman

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:

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.

klaud

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

Igor S.

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

Dimak

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 ?


PiotrE

Dimak, Maybe modify account and move it to /home/ OR move cpmove file to /home/

Dimak

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...

Teo

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

ejsolutions

#13
^ 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.

ejsolutions

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)
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.