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.

Transfering from old Cpanel account with no root access

Discussion in 'Data Protection' started by blackkaviar, Aug 7, 2014.

  1. blackkaviar

    blackkaviar Member

    Joined:
    Aug 7, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all,
    I'm trying to transfer all my accounts from the old Cpanel in my previous hosting. I do not have a root access there.
    While some of the accounts have been successfully transfered using WHM's Transfer > Copy an Account From Another Server with Account Password.
    Some other accounts are failed to transfer, apparently due to their large size (>500MB).
    I've read some info suggesting to use WHM's Restore a Full Backup/cpmove file feature, but it requires the root access from the old accounts (which I dont have).
    Other people have suggested to manually download the backups and upload to the new servers. That's very inconvenient for me since I have several accounts, and also my Internet connection here is very slow compared to most of developed countries. Doing so would take me hours just to transfer each account.
    Any suggestion?
    Thanks.

    Hero Wijayadi
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Assuming backups are enabled on the old server for the user, you are able to run a Full Website Backup and have it sent to a remote server, right from the users cPanel. You could use that to send the backup to an FTP account on the new server and then as root, move it to /home, and then try to restore from WHM:
    WHM » Backup » Restore a Full Backup/cpmove File

    You might consider excluding the largest parts of the account from the backup using the cpbackup-exclude.conf method:
    Exclude Files from Backups - cPanel Documentation
    And use the Transfer tools as you were using. Once the account is up and running proper on the new server, move the rest of the files that you excluded, over manually.

    You might audit the account to see what can be stripped away too. Lots of times users don't bother to make sure their account is optimized by cleaning up old mail, old backups, stuff they no longer have any user for. If you can clean it up some it might help with moving it normally as you have been doing already.


    A few suggestions for you. GL!
     
  3. blackkaviar

    blackkaviar Member

    Joined:
    Aug 7, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Infopro,

    Thanks for your explanation.
    I've managed to transfer the backup to the new server, moved the backup file to the /home.
    But when I tried the Restore a Full Backup/cpmove File, it gave me this error:
    “Account failure: Failed to create the account: A database owner with the name sarangsp already exist

    I had terminated the sarangsp account prior to restoring the backup file. I've checked in the WHM's Manage Databases, and I can verify that there's no sarangsp database or user there.
    Is there anything that I miss here?
     
  4. toshost

    toshost Member

    Joined:
    Dec 8, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangladesh
    cPanel Access Level:
    Root Administrator
    You need to check through SSH in file /etc/group if the username already exists and remove it, then try to restore it again.
     
  5. Evolvermeister

    Joined:
    Jan 28, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Gomel, Belarus
    Hi all,
    I've got the same issue like blackkaviar said.
    I've transferred an account using transfer tool, then I terminated account on the new server, and when I tried to transfer it again, I'm getting this error:
    Account Restore Failed: “Account failure: Failed to create the account: A database owner with the name “accname” already exists.”
    There is no such user neither in /etc/group nor in /etc/passwd nor in mysql.user table.
    Now I cannot transfer that account neither via Transfer Tool, nor via Full Backup/cpmove file.
    Also I've tried to select database overwrite and database owner overwrite options without any luck.
    Where I can find that owner, or how to overwrite it?
     
  6. Evolvermeister

    Joined:
    Jan 28, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Gomel, Belarus
    Well, I've found the solution by myself.
    I've deleted the files accname.cache and accname.yaml in /var/cpanel/databases/ and transfer passed successfully.
     
Loading...

Share This Page