The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Case 97497] restorepkg failing

Discussion in 'General Discussion' started by syslint, Apr 10, 2014.

  1. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    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 .
     
    #1 syslint, Apr 10, 2014
    Last edited: Apr 10, 2014
  2. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. abdelhost77

    abdelhost77 Well-Known Member

    Joined:
    Apr 25, 2012
    Messages:
    81
    Likes Received:
    1
    Trophy Points:
    8
    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)
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  6. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    cPanel 11.44 out . But the case 97497 doesn't seems to show as resolved yet.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  8. tribulant

    tribulant Member

    Joined:
    Mar 3, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  9. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    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.
     
Loading...

Share This Page