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.

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:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    I would try from SSH:
    Code:
    # /scripts/restorepkg --force /location/to/backup.tar.gz
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page