Control Web Panel
WebPanel => Migration from other control panels => Topic started 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
-
Could you please place here the last records of the following log file from your source server:
tail -50 /var/log/cwp/account_transfer.log
-
Thanks for your attention and answer
Here it is:
http://send.bullten.net/download/966f69b55f7e9cd88534908c52c38f0f.html
(http://send.bullten.net/files/b4c663683a506de9d1c0c446fdbe33a8.jpg)
-
please confirm that your key certificate is authorized on the DESTINY server,
-
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
-
You only have to authorize the key by clicking on the blue ADD Puplic Key to Authorize button, with this it should work.
-
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. :)
-
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
-
How can I solve this error?
{status:Error,msj:already exists in database}
Response Api . Error
-
i have similar issue
CWP to CWP not working!!
only transfers user name and domain
doesnt transfer database, doesn't transfer any file
-
What do the records say?
tail -50 /var/log/cwp/account_transfer.log
-
What do the records say?
tail -50 /var/log/cwp/account_transfer.log
this is what they say:
screenshot: https://i.imgur.com/1GWv4lF.png
-
please try to perform the transfer using the sshkey option and let me know how it went
-
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"
-
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
-
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
-
Yes, I can confirm.
Transfer via password DOES NOT WORK PROPERLY
but TRANSFER VIA SSH KEYS ETC works fine :) thank you everyone!
-
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)
-
Any idea how to transfer a full data site from cwp tp cwp?
-
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.
-
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
-
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.
-
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. ::)
-
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 ?
-
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 ?
??? :'(
-
I just tried to move one site instead of many, it moved completely files and sql..
-
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.
-
I just tried to move one site instead of many, it moved completely files and sql..
At least you got something to work. ;)
-
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"
-
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?
-
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.
-
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
-
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:
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:
[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:
{
"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…
-
Please check that the user does not exist in / etc / pass, shadow and group as well as that / home / USER does not exist
-
Please check that the user does not exist in / etc / pass, shadow and group as well as that / home / USER does not exist
cat /etc/passwd
cat /etc/group
ls -l /home/
gives no references about the users I’m trying to migrate