Control Web Panel

WebPanel => Migration from other control panels => Topic started by: yeknafar on July 20, 2018, 05:12:34 AM

Title: CWP to CWP account migration doesnot transfer anything.
Post by: yeknafar on July 20, 2018, 05:12:34 AM
Hello

I have installed a new CWP. Do I have to do anything more from what was said on this link?:

http://wiki.centos-webpanel.com/cwp-to-cwp-account-migration

(Because the destination CWP is a fresh installation and I just did the things that was told in above link for CWP to CWP account migration)

When on the source server I go to "Account Transfer Server (CWP -> CWP)" and check the connnection it shows everything is correct and I start to transfer and wait for some hours each time and it shows "Transfer in progress ...!" but nothing is added to destination server.

Here is the log of /var/log/cwp/account_transfer.log

http://wiki.centos-webpanel.com/cwp-to-cwp-account-migration

2018-07-19 21:28:06 Verifying...!
2018-07-19 21:28:06 Initial process my accounts
2018-07-20 04:23:05 Verifying...!
2018-07-20 04:23:05 Initial process my accounts
2018-07-20 04:28:42 Verifying...!
2018-07-20 04:28:42 Initial process my accounts
2018-07-20 04:34:48 Verifying...!
2018-07-20 04:34:48 Initial process my accounts


The file size and its backup is 8.4 Gig.


Thanks
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: josemnunez on July 20, 2018, 07:09:50 AM
Could you please place here the last records of the following log file from your source server:

Code: [Select]

tail -50 /var/log/cwp/account_transfer.log

Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: yeknafar on July 20, 2018, 07:25:17 AM


Thanks for your attention and answer

Here it is:

http://send.bullten.net/download/966f69b55f7e9cd88534908c52c38f0f.html
(http://send.bullten.net/files/b4c663683a506de9d1c0c446fdbe33a8.jpg)
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: josemnunez on July 20, 2018, 07:28:15 AM
please confirm that your key certificate is authorized on the DESTINY server,
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: yeknafar on July 20, 2018, 07:35:54 AM
How can I do that?
When I test the connection it says: "Connection successfully"

But in the destination "Your Authorized Keys which have access to this server from: /root/.ssh/authorized_keys" is empty.

Thanks
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: josemnunez on July 20, 2018, 07:40:23 AM
You only have to authorize the key by clicking on the blue ADD Puplic Key to Authorize button, with this it should work.
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: yeknafar on July 20, 2018, 07:42:51 AM
SUre
I did that before.
When I test the connection it says: "Connection successfully" too.
Everyting looks OK but I do not get the result. :)
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: yeknafar on July 20, 2018, 08:48:47 AM
I fixed it.  I have to disable both Firewall from the Origin server and Destination server

Thanks to Cyfocus
http://forum.centos-webpanel.com/installation/migration-to-new-server-cwp-to-cwp-account-migration/msg16815/#msg16815
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: yeknafar on July 20, 2018, 09:08:50 AM
How can I solve this error?

{status:Error,msj:already exists in database}
Response Api . Error
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: hdaackda on October 03, 2019, 10:42:43 AM
i have similar issue

CWP to CWP not working!!

only transfers user name and domain

doesnt transfer database, doesn't transfer any file
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: josemnunez on October 03, 2019, 11:44:52 AM
What do the records say?
Code: [Select]
tail -50 /var/log/cwp/account_transfer.log
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: hdaackda on October 03, 2019, 02:34:13 PM
What do the records say?
Code: [Select]
tail -50 /var/log/cwp/account_transfer.log

this is what they say:

screenshot: https://i.imgur.com/1GWv4lF.png
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: josemnunez on October 03, 2019, 02:48:36 PM
please try to perform the transfer using the sshkey option and let me know how it went
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: hdaackda on October 03, 2019, 03:36:34 PM
please try to perform the transfer using the sshkey option and let me know how it went

when i try it using SSH key, I can't connect. get the error: "the connection could not be made correctly"
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: payam_omrani on November 14, 2019, 02:23:01 PM
please try to perform the transfer using the sshkey option and let me know how it went

Thank you

i have same problem and with your solution can get with ssh key option
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: crmgddn63 on December 05, 2019, 04:40:13 PM
try to ssh key option.

its work. migrate everthings.

thank you

please try to perform the transfer using the sshkey option and let me know how it went

Thank you

i have same problem and with your solution can get with ssh key option
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: hdaackda on December 05, 2019, 04:55:27 PM
Yes, I can confirm.

Transfer via password DOES NOT WORK PROPERLY

but TRANSFER VIA SSH KEYS ETC works fine :) thank you everyone!
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Dragon on February 07, 2020, 04:14:51 AM
please try to perform the transfer using the sshkey option and let me know how it went

Where sshkey option ? i can't find it, would you please tell me where ?

(https://i.ibb.co/MgXLgSH/Annotation-2020-02-07-061228.png)
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Dragon on February 09, 2020, 09:49:06 PM
Any idea how to transfer a full data site from cwp tp cwp?
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: ejsolutions on February 09, 2020, 10:29:39 PM
I've just done a transfer, earlier today, which took the website with database, however..
1. emails aren't transferred
2. PHP configuration isn't replicated. I have to revert to the original server, until I figure out the original.

To others, read the documentation and error popups, to setup the API key, ssh keys and open the needed firewall port, using the configserver GUI.
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: ejsolutions on February 11, 2020, 02:31:04 PM
At this time I advise the following:
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: ejsolutions on February 11, 2020, 05:30:11 PM
At this time I advise the following:
  • Backup original site using the new (beta) backup
  • Use scp to transfer the backup to the new site
  • Restore (beta) from backup
Except, in this instance it didn't work, so..
I deleted the pre-existing account (from a previous test) and managed to do a CWP->CWP migration. Go figure.
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: ejsolutions on February 11, 2020, 05:33:13 PM

Quote
Where sshkey option ? i can't find it, would you please tell me where ?
Those little question marks on the GUI are magical; they show help when pressed.  ::)
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Dragon on February 12, 2020, 04:40:25 PM

Quote
Where sshkey option ? i can't find it, would you please tell me where ?
Those little question marks on the GUI are magical; they show help when pressed.  ::)

Is this supposed to be the answer of my question ?
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: ejsolutions on February 12, 2020, 04:57:11 PM

Quote
Where sshkey option ? i can't find it, would you please tell me where ?
Those little question marks on the GUI are magical; they show help when pressed.  ::)

Is this supposed to be the answer of my question ?
??? :'(
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Dragon on February 12, 2020, 04:59:49 PM
I just tried to move one site instead of many, it moved completely files and sql..
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Dragon on February 12, 2020, 05:03:15 PM

Quote
Where sshkey option ? i can't find it, would you please tell me where ?
Those little question marks on the GUI are magical; they show help when pressed.  ::)

Is this supposed to be the answer of my question ?
??? :'(

Its thank you, you helped me with another post here about swap, but the topic is deleted i do not know why, i own you a thanks.
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: ejsolutions on February 12, 2020, 05:06:25 PM
I just tried to move one site instead of many, it moved completely files and sql..
At least you got something to work.  ;)
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Dragon on February 12, 2020, 06:24:02 PM
I tried now to move many sites again and its worked fine moved all files and all DATABASE, the only thing i changed this time,

Is use hostname instead of IP in "Remote Server Information"
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: wingusupport on July 03, 2020, 11:47:33 PM
Since this topic is popular, I'll continue posting here.  I have performed two separate methods to transfer an account from one CWP server to another CWP server.  Reading through the previous posts do not specify results of application restoral.

Both CWP Server versions are the same:  CWPpro version: 0.9.8.994

Method 1:  Transferred using CWP->CWP Migration.
Method 2:  Transferred using NEW Backup (beta), then SCP *.gz file to new CWP server, and lastly restoring *.gz file on new CWP.
Results: Both methods completed as successful reported by CWP.  However, actual applications were not restored.  All files, databases, email, accounts, and folders seem to be transferred successfully.  Just not the applications themselves.

Question:  Am I expecting too much from migration process?  Should the applications such as WordPress and other Softaculous applications be transferred as well? If not, what is the recommended method to transfer the applications also?
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: wingusupport on July 11, 2020, 04:00:41 PM
Additional Update:
Attempting Method 1 CWP->CWP Migration again, here are my results... still not fully migrated.

1. Does not transfer Softaculous statistics and installation information.
2. The actual applications installed by Softaculous do work.
3. Loss of Softaculous management of already installed applications.
4. Email accounts did not transfer.
5. Domain SSL information did transfer.

End Result:  Mostly working... sort of.
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: wingusupport on August 17, 2020, 05:14:49 PM
Final Update (Works Successfully):
Attempting Method 1 CWP->CWP Migration again, here are my results... fully migrated.

Both CWP Server versions are the same:  CWPpro version: 0.9.8.1002

1. Does not transfer Softaculous statistics and installation information.
    UPDATE:  Softaculous information transferred (all that was required).
2. The actual applications installed by Softaculous do work.
    UPDATE:  Softaculous confirmed.  Applications are working.
3. Loss of Softaculous management of already installed applications.
    UPDATE:  Management of already installed applications is working.
4. Email accounts did not transfer.
    UPDATE:  All email will transfer but must manually add mail accounts using control panel.
5. Domain SSL information did transfer.
    UPDATE:  All SSL information did transfer but must manually re-activate certificates.

End Result:  CWP->CWP Migration Worked.

Perhaps is was a lack of understanding in previous attempts using the migration tool.  However, I am still unsuccessful using both backup and restore options to effectively migrate user accounts.  I performed the CWP->CWP migration over two external IP addresses.  Initial attempts were using internal IP addresses.  Another note, the CWPpro version is also updated.

Suggestions:
1. Please be sure to open ports 2304 and 22 (unless changed) on both internal and external firewalls.
2. Run /scripts/check_api User API in the CWP terminal to confirm correct operation of port 2304 .
    OUTPUT:
    User API port 2302 check: OK
    Oauth query check: OK
    User API folder check: OK
    External API port 2304 check: OK
    External API files and htaccess : OK
    CSF Firewall status check: ENABLED
    TCP_IN for port 2304 set in /etc/csf/csf.conf: OK
    TCP_OUT for port 2304 set in /etc/csf/csf.conf: OK
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Teo on September 14, 2020, 02:46:05 PM
Iím trying a CWP to CWP account migration too. Both servers are CWPpro version: 0.9.8.1008 and I donít user email accounts.
/scripts/check_api is OK:
Code: [Select]
User API port 2302 check: OK
Oauth query check: OK
User API folder check: OK
External API port 2304 check: OK
External API files and htaccess : OK
CSF Firewall status check: ENABLED
TCP_IN for port 2304 set in /etc/csf/csf.conf: OK
TCP_OUT for port 2304 set in /etc/csf/csf.conf: OK

I can see the origin server from cwp_to_cwp with the list of all origin accounts, but every account migrations gives me the same error:
Code: [Select]
[2020-09-14 14:17:13] - Start import process CWPTOCWP_20200914141713
[2020-09-14 14:17:20] - Import Account myaccount
[2020-09-14 14:17:20] - Create Backup Account myaccount
[2020-09-14 14:17:23] - Start Transfer Backup myaccount
[2020-09-14 10:17:27] - Account Create Error myaccount

If I give a look at the detailed migration log /home/.CWPTOCWP_20200914141713/myuser.json I get:
Code: [Select]
{
    "BACKUP_ID": "myaccount202009141417150826b5c04738bedcc5ebc17dc643e103",
    "FILE_NAME": "cwpmove-myaccount.tar.gz",
    "FILE_BACKLOG": "master.log",
    "FILE_BACK_ELOG": "",
    "STATUS": "11",
    "LOGS": " [2020-09-14 14:17:22] - Start Backup myaccount<br> [2020-09-14 14:17:22] -  Create Backup Account myaccount<br> [2020-09-14 14:17:23] - Completed Backup myaccount <br>  [2020-09-14 10:17:26] - Start Transfer Backup myaccount<br> [2020-09-14 10:17:26] -  Start Transfer Backup myaccount<br>  [2020-09-14 10:17:26] - Transfer Backup Completed myaccount<br> [2020-09-14 10:17:27] - Account Create Error Check All Fields (only lower caps are allowed and no special characters or empty spaces... myaccount<br>",
    "PERCENTAGE": 60
}

Reading: ďAccount Create Error Check All Fields (only lower caps are allowed and no special characters or empty spaces... myaccountĒ Iíve tried replacing the account password with only lowercase and number characters but I get the same issue.

On the new server I can create new accounts and cPanel account restore works. Do you have suggestions better investigating the issue? A more detailed error log could helpÖ
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: josemnunez on September 14, 2020, 02:48:55 PM
Please check that the user does not exist in / etc / pass, shadow and group as well as that / home / USER does not exist
Title: Re: CWP to CWP account migration doesnot transfer anything.
Post by: Teo on September 14, 2020, 03:19:29 PM
Please check that the user does not exist in / etc / pass, shadow and group as well as that / home / USER does not exist

Code: [Select]
cat /etc/passwd
cat /etc/group
ls -l /home/
gives no references about the users Iím trying to migrate