Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Crashed Restore - How to Clean up?

Discussion in 'Data Protection' started by RyanBVI, Oct 6, 2015.

  1. RyanBVI

    RyanBVI Member

    Joined:
    Sep 4, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    BVI
    cPanel Access Level:
    Root Administrator
    Hello,

    during an account restore, at around 36%, the server did abnormal reset (power outage) and
    the restore did not had the time to properly finish or exit, as it was not a normal reboot ...

    So, now in the transfer logs, it is FROZEN on the status, showing like it is still running,
    but the process is actually not running / pid is not exist, as box rebooted ...


    Any ideas how to properly clean-up all partial left-overs and then run again the restoration ???


    I tried restoring and check the option to overwrite user, but it says username already exists,
    while I have confirmed the account not exists on "list accounts", so I'm afraid things broke
    in the middle, due to power out-age ...


    Please, let me know if there is some script / command / tool, that can clean-up partial / broken
    restore / transfers ...



    Thanks !!!
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    I would try from SSH:
    Code:
    # /scripts/restorepkg --force /location/to/backup.tar.gz
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,955
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can check to see if the user exists with a command such as:

    Code:
    id $username
    If so, you can manually remove this user via the "userdel" and "groupdel" commands:

    Code:
    userdel $user
    groupdel $user
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice