[Case 97497] restorepkg failing

syslint

Well-Known Member
Verifed Vendor
Oct 9, 2006
268
7
168
India
cPanel Access Level
Root Administrator
Twitter
HI,

Ticket number 4801685

There seems to be an issue with cpanel backup restore using restorepkg in version 11.42.1.5 . The steps are as follows,

1) Take the backup of user foo
# /scripts/pkgacct foo
2) Extract it to home
# cd /home
# tar -xzf cpmove-foo.tar.gz
# rm -f cpmove-foo.tar.gz
3) Now restore it using the following ,

# /scripts/restorepkg --force /home/cpmove-foo

It show the following errors ,

------
# /scripts/restorepkg --force --user /home/cpmove-foo
Using pre-extracted cpmove file
cPanel restorepkg 2
cPanel user: foo
Force Mode: yes
Reseller Privs Restore: yes

Found /home/cpmove-foo !

cpmove- prefix is missing, but non prefixed directory exists.. the cpmove- prefix discarded.

Extracting Domain....Done
Sorry, we were unable to restore the account. Information about inhouse's primary domain is either missing or corrupt. For more information, please examine /home/cprestore/foo/cp/foo
--------------

So it is failing to restore from this path. Looks like only tar files are restoring .
 
Last edited:

syslint

Well-Known Member
Verifed Vendor
Oct 9, 2006
268
7
168
India
cPanel Access Level
Root Administrator
Twitter
cPanel support team confirm this as a bug. So they opened an internel case for investigation case id 97497
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Internal case number 97497 is open to address this issue. The temporary workaround is to package the incremental backup directory into a cpmove tar file first, then run /scripts/restorepkg on the tar file:

Code:
# tar czvf cpmove-example.tar.gz cpmove-example
# /scripts/restorepkg /home/cpmove-example.tar.gz
Thank you.
 

abdelhost77

Well-Known Member
Apr 25, 2012
116
2
68
Morocco
cPanel Access Level
Root Administrator
Dear Sir , any update please on this issue ?

Unfortunately we cannot use the TAR workaround as it will take us a lot of time in case we restore all the accounts on the server ( we have a script executing Cpremote)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
cPanel version 11.44 will include a resolution for case 97497. There is currently no time frame available on the release of version 11.44. In the meantime, you could setup a loop on the "tar" command so it runs for all accounts.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
You will not see internal case number 97497 in the change log because the issue is not applicable with the updated restorepkg script included with cPanel version 11.44. It's simply a case where the issue does not occur on 11.44, so no changes stemming from that internal case were required.

Thank you.
 

tribulant

Member
Mar 3, 2014
12
1
3
cPanel Access Level
Website Owner
We were in the middle of a server migration.
The /scripts/restorepkg worked great for many large accounts.

Then we upgraded WHM to RELEASE 11.44
After that, running /scripts/restorepkg gives an "Out of memory" error.

Any ideas?
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
We were in the middle of a server migration.
The /scripts/restorepkg worked great for many large accounts.

Then we upgraded WHM to RELEASE 11.44
After that, running /scripts/restorepkg gives an "Out of memory" error.

Any ideas?
Hi tribulant,

Would you please open a ticket using the link in my signature. If you can provide one of the backup files that can't be restored with the "Out of memory" error, we should be able to determine the cause.