Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: jeniha on June 11, 2018, 07:58:25 AM

Title: Transfer cwp to cwp
Post by: jeniha on June 11, 2018, 07:58:25 AM
I`m trying to trasnfer user and email from one to other server but when i start it shows this "Transfer in progress ...!" and nothing  is transfered.
Can you help me?
Title: Re: Transfer cwp to cwp
Post by: josemnunez on June 11, 2018, 08:27:53 AM
You have made all these steps?

http://wiki.centos-webpanel.com/cwp-to-cwp-account-migration
Title: Re: Transfer cwp to cwp
Post by: Bertje1989 on August 02, 2018, 11:46:06 AM
I'm experiencing the same problem. I followed the steps in the CWP Migration article. When I test my connection is says: "Connection successfully". When I select the accounts I want to transer it says Transfer in progress. When I check the logfile it only states:

2018-08-02 10:26:31 Verifying...!
2018-08-02 10:26:31 Initial process username

I even turned off the firewall of both servers during the transfer but it doen't help. Hopefully someone has a suggestion to solve this problem.

Thanks in advance!

Title: Re: Transfer cwp to cwp
Post by: josemnunez on August 03, 2018, 01:29:15 PM
Please check that you have access from the source server to the api of your CWP, this can be validated from the command console by executing the following:

Code: [Select]
curl -k "https://MYIP:2304/v1/account" -X POST -data "key=MYKEYCWP&action=list"

Let me know what was the output of this
Title: Re: Transfer cwp to cwp
Post by: Jamshed Datori on August 04, 2018, 01:03:19 AM
BTW, a good news is that, yesterday, CWP team included a new cwptocwp module in cwp (not publicly released yet) but hopefully it will cover all these issues.

Hope for the best
Title: Re: Transfer cwp to cwp
Post by: geolaw on September 10, 2018, 04:43:44 PM
Has any progress been made on this?

I can run the curl command above -

old -> new
# curl -k 'https://web3.mydomain.com:2304/v1/account 'xxxxxx=list'TdJCh5
{"status":"OK","msj":[{"package_name":"default","idpackage":"1","id":"1","backup":"on","username":"test123","email":"xxxx@gmail.com","setup_date":"2018-09-10 16:35:56","ip_address":"45.79.215.115","domain":"test123.com"}]}[root@web2 ~]#


[root@web2 ~]#  tail -f /var/log/cwp/account_transfer.log
2018-09-10 16:11:33 Verifying...!
2018-09-10 16:11:34 initiating account creation fabric
2018-09-10 16:11:35 account creation fabric
2018-09-10 16:11:35 {status:Error,msj:error in key,format:JSON}
2018-09-10 16:11:35 Error trying to create the account fabric
2018-09-10 16:34:08 Verifying...!
2018-09-10 16:34:09 initiating account creation mackenzi
2018-09-10 16:34:09 account creation mackenzi
2018-09-10 16:34:09 {status:Error,msj:error in key,format:JSON}
2018-09-10 16:34:09 Error trying to create the account mackenzi


Is there any option to run this from the command line?
years ago I wrote this script doing a cpanel to cpanel copy but /scripts/pkgacct does not seem to be available here in cwp

https://gitlab.com/geolaw/scripts/blob/master/cpacct.pl



Title: Re: Transfer cwp to cwp
Post by: josemnunez on September 11, 2018, 09:12:03 AM
Please try from the new module, it is much easier the configuration, also takes into account the opening of the ports in the firewall