cPanel Migration Tool is not working stops at backup

Started by vivekmoyal, August 24, 2019, 10:38:42 AM

Previous topic - Next topic

vivekmoyal

Everything is working fine. My all the packages are migrated. but when it comes to accounts it stops at

[2019-08-24 16:04:54] - Start import process CPANELCWP_20190824103454
[2019-08-24 16:04:56] - Import Account epilepsyfirst
[2019-08-24 16:04:56] - Create Backup Account epilepsyfirst

This account is of 7Mb and i am waiting from last half an hour no any log is generated after these 3 line in the log window


2019-08-24 10:10:19 23992
--> /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -f /usr/local/cwpsrv/htdocs/resources/admin/include/cron_migration_cpanelv2.php &> /dev/null & echo $!
2019-08-24 10:12:28 31008
--> /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -f /usr/local/cwpsrv/htdocs/resources/admin/include/cron_migration_cpanelv2.php &> /dev/null & echo $!
2019-08-24 10:22:15 1387
--> /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -f /usr/local/cwpsrv/htdocs/resources/admin/include/cron_migration_cpanelv2.php &> /dev/null & echo $!
2019-08-24 10:34:54 6324
--> /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -f /usr/local/cwpsrv/htdocs/resources/admin/include/cron_migration_cpanelv2.php &> /dev/null & echo $!

Shafire

Is this with manual 1 account at a time migration? If not try manually.
SEOtraining1.com -SecureHosting.xyz

vivekmoyal

manually means go to cpanel -> create backup -> download backup -> restore it over cwp.

I have 122 accounts to migrate it will took 2 3 days to complete

vivekmoyal

Here are the logs

2019-08-24 16:04:56 RESPUESTA BACKUP --> {"metadata":{"version":1,"command":"start_background_pkgacct","reason":"Permission denied: You do not have the required privileges to run "start_background_pkgacct".","result":0}} --> epilepsyfirst
2019-08-24 16:04:56 HTTP STATUS BACK --> 200 --> epilepsyfirst
2019-08-24 16:04:56 Import Account epilepsyfirst
2019-08-24 16:04:56 Create Backup Account epilepsyfirst
2019-08-24 16:04:56 update accounts set FILE_BACKLOG='', FILE_BACK_ELOG='', FILE_NAME='cpmove-epilepsyfirst.tar.gz', BACKUP_ID = '' where ID='3'
2019-08-24 10:34:56 /usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@159.69.7.198 test -f /var/cpanel/pkgacct_sessions// && echo 'true' || echo 'false' 2>&1
2019-08-24 10:34:56 false
2019-08-24 10:34:56 false

Hostingness

cPanel migration will bring an extra issue of file permissions. If you are good at command line, do the below

1. Create all users in CWP
2. Compress data of each user in public_html
3. Download that compressed file by going to cd /home/<user>/public_html by using wget <url>/file.zip
4. Uncompress there or goto Advanced File Manager of CWP and uncompress from there

This could take around 5 mins per user. If db exists, then some extra time.

josemnunez

Quote from: Hostingness on August 24, 2019, 02:00:39 PM
cPanel migration will bring an extra issue of file permissions. If you are good at command line, do the below

1. Create all users in CWP
2. Compress data of each user in public_html
3. Download that compressed file by going to cd /home/<user>/public_html by using wget <url>/file.zip
4. Uncompress there or goto Advanced File Manager of CWP and uncompress from there

This could take around 5 mins per user. If db exists, then some extra time.

Have you checked the root permissions for the cpanel api?


vicarodi

Quote from: vivekmoyal on August 24, 2019, 11:16:55 AM
Here are the logs

2019-08-24 16:04:56 RESPUESTA BACKUP --> {"metadata":{"version":1,"command":"start_background_pkgacct","reason":"Permission denied: You do not have the required privileges to run "start_background_pkgacct".","result":0}} --> epilepsyfirst
2019-08-24 16:04:56 HTTP STATUS BACK --> 200 --> epilepsyfirst
2019-08-24 16:04:56 Import Account epilepsyfirst
2019-08-24 16:04:56 Create Backup Account epilepsyfirst
2019-08-24 16:04:56 update accounts set FILE_BACKLOG='', FILE_BACK_ELOG='', FILE_NAME='cpmove-epilepsyfirst.tar.gz', BACKUP_ID = '' where ID='3'
2019-08-24 10:34:56 /usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@159.69.7.198 test -f /var/cpanel/pkgacct_sessions// && echo 'true' || echo 'false' 2>&1
2019-08-24 10:34:56 false
2019-08-24 10:34:56 false


Hi, You must create the Cpanel Api with all the privileges so you can create the backups