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.

Problems moving accounts between cPanel servers

Discussion in 'General Discussion' started by kamnet, Jun 1, 2006.

  1. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to move a reseller's account from one cPanel server to another. On the first attempt the script failed after backing up the account and moving it, stating that it couldn't find the account. I found that this is a pretty common error and d the suggest solution was clearing out the /tmp directory of the account on the server the account is being moved from.

    So now I'm trying to start again, and I'm getting this error:

    Code:
    Attempting to login as USER to xxx.xxx.xxx.xxx via ftp
    Login ok
    Uploading Htaccess
    Uploading Wrapper
    Uploading Dectector
    Uploading Packager
    Uploading Downloader
    Uploading Killer
    chmoding scripts
    Found uid to be: 32026
    Compiling wrapper
    uploading wrapper
    chmodding wrapper
    Closing FTP Control
    Packing Account using suexec method
    
    pkgacct started.
    pkgacct version 4.1 - running with uid 32026
    using time::hires for speedups
    /tmp/cpmove-USER exists, please remove it and try again
    DOWNLOAD READY in /tmp/cpmove-USER.tar.gz
    Downloading Tarball
    Removing Scripts using suexec method
    
    UNLINKED
    Checksum Failure [[d41d8cd98f00b204e9800998ecf8427e]] [[]]...trace information follows...HTTP/1.1 200 OK
    Date: Thu, 01 Jun 2006 07:12:49 GMT
    Server: Apache
    Connection: close
    Content-Type: text/html
    
    pkgacct started.
    pkgacct version 4.1 - running with uid 32026
    using time::hires for speedups
    /tmp/cpmove-USER exists, please remove it and try again
    DOWNLOAD READY in /tmp/cpmove-USER.tar.gz
     
    
    Error while copying account...! Aborting Extraction
    
    NOW: I've removed the cpmove-USER.tar.gz file from the original server. I found where it was put on the new server and removed it. But I am still getting this error. What's going on, what do I need to do to resolve this issue?
     
  2. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Still looking for a resolution to this problem. Has nobody else experienced this?
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Update cPanel once and try to transfer the account from shell. Below are the steps :-

    /scripts/pkgacct <username> >>>> Will create a file for that particular account as cpmove-<username>.tar.gz in /home dir.

    Transfer this file to the required server using Ftp or SCP.

    Login to another server :-
    Move the above specified file to /home dir.
    Execute the command :-
    /scripts/restorepkg <username>


    If you still face any problems, then login to cPanel for that account and take a complete backup on your machine. Upload the backup file on the new server and then restore it.

    What OS are you using on old and new server ?
     
  4. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I don't have root access on the server I am moving from, and none of the accounts have access to the script. I have no communication with the old server's owner either, hence the reason we're moving accounts. :-/
     
  5. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Okay was able to log into cPanel on the old server and do a full backup from there, and copied it over to the new server in the /home directory. Here's the error I get now:

    Code:
    Main >> Backup >> Restore a Full Backup/cpmove file  
    
    Searching /home....
    No Restorable archives found!
    Searching /usr/home....
    No Restorable archives found!
    Searching /web....
    No Restorable archives found!
    Searching /home2....
    No Restorable archives found!
    Searching /home3....
    No Restorable archives found!
    Searching /root....
    No Restorable archives found!
    Searching /usr....
    No Restorable archives found!
    No archives where found!!
    This feature will restore full backups, cpanel backups and cpanel move files in the format of:
          cpmove-user.tar.gz, user.tar.gz, backup-date_time_user.tar.gz
    The files must be in one of these directories on the server:
          /home,/usr/home,/web,/home2,/home3,/root,/usrYou must upload the file to one of the above locations before
          using this feature.
    
    Except ... the file *IS* in /home. Original name was backup-date_time_user.tar.gz, I've tried renaming it to cpmove-user.tar.gz and user.tar.gz (substitute "user" for whatever the username is), and the backup/restore is just not finding it.

    What's missing here? WHM 10.8.0 cPanel 10.8.2-R115
    RedHat Enterprise 4 i686 - WHM X v3.1.0
     
  6. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    The backup seems to be corrupted and renaming the .tar.gz file won't do anything. Try to take the backup once again from cPanel, if it goes the same way then try taking seperate backup of your home directory and Sql databases from the 'Backup' option and then restore them on your server

    If you wish to generate full backup and your are not able to contact your Hosting company then I guess you are helpless.

    You will have to contact your hosting company who can generate full backup of your account from shell.
     
    #6 madaboutlinux, Jun 10, 2006
    Last edited: Jun 10, 2006
  7. chzelle

    chzelle Active Member

    Joined:
    Jul 30, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Try to generate a new backup thru cpanel "backup" feature. The new backup.xxxx.tar.gz file would be downloadable at the /home/user of your client. You can move the tar.gz backup to public_html > then wget it on your new hosting or FTP it to the new hosting server > try to restore full backup > mails, dbase, files, etc should be restored if the new backup is ok.
     
  8. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I tried it again from scratch, same errors. It's not even checking to see if the backup files are valid, the checksums match, etc. It's just flat out not seeing any files in /home.

    But, then again, one some accounts it's not having ANY problems with this.

    So is this feature just broken in cPanel or what? It makes no sense that this works to back up some accounts but not others.
     
  9. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Just for stuff and giggles, I generated a full backup via cPanel on the old server and had it FTP'd to the new server, moved the backup file into /home, run the "restore from backup", and again cPanel fails to recognize any file there, it returns the same error that I reported a few posts ago:

    Code:
    Main >> Backup >> Restore a Full Backup/cpmove file  
    
    Searching /home....
    No Restorable archives found!
    Searching /usr/home....
    No Restorable archives found!
    Searching /web....
    No Restorable archives found!
    Searching /home2....
    No Restorable archives found!
    Searching /home3....
    No Restorable archives found!
    Searching /root....
    No Restorable archives found!
    Searching /usr....
    No Restorable archives found!
    No archives where found!!
    This feature will restore full backups, cpanel backups and cpanel move files in the format of:
          cpmove-user.tar.gz, user.tar.gz, backup-date_time_user.tar.gz
    The files must be in one of these directories on the server:
          /home,/usr/home,/web,/home2,/home3,/root,/usrYou must upload the file to one of the above locations before using this feature.
    But, yet, here's the directory listing:

    Code:
    root@cpanel [/]# cd home
    root@cpanel [/home]# pwd
    /home
    root@cpanel [/home]# ls
    ./         client/               emhs/      moms/           taes/     vcw/
    ../        .cpan/                gtg/       MySQL-install/  tameone/  warz/
    admin/     cpmove-alexis.tar.gz  justen/    naw/            timothy/  willow/
    alexis/    cptmp/                last2act/  patriot/        tiwonge/
    bethesda/  eblade/               maxx/      roe/            uswf/
    root@cpanel [/home]#
    
    So what's up with this? By all accounts, this SHOULD be working.
     
  10. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Just a thought, not sure if this will help or not ...

    Is the backup file being named after the NEW account username? ie is the user 'alexis' on the new server? If not, that would explain the problem.
     
  11. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I created an account on the new server today to see if that would fix it, but previously no the account did not exist on the new ser ver yet. This problem started long before then.
     
  12. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    You ignored my question above, might have been a solution for you. Check it out ...

    This certainly does work normally, just as you've been doing, so something basic is going wrong.
     
  13. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    No, I didn't ignore your question. Again, the problems started before the account "alexis" was created on the server today.That is, it doesn't matter if the account on the new server is there or not, I am getting the same error message, cPanel is not seeing the the cpmove-* or backup-* files for certain accounts when they are placed in the /home directory. It isn't even checking the md5 sums or if the files are valid, it flat out doesn't see them.

    ----

    Re-reading your question again --

    The original problem is that when I log into WHM, transfer an account from another cPanel server, sometimes it will successfully do so, and other times it will not, claiming that the file is invalid, when the file is sitting in /home. It was suggested that I try to run a backup from the cPanel server I'm moving from, place it in /home myself and run a restore from previous back-up. This also is not working, and it is giving me the same errors, WHM cannot find the file in /home, even when it tells me that the file *is* sitting in /home.
     
    #13 kamnet, Jun 12, 2006
    Last edited: Jun 12, 2006
  14. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Ahhh ... sorry, I'd meant to ask you what the exact filename was, but obviously the thought didn't get translated onto the keyboard!

    I've found that sometimes backups don't get recognized if you take the full backup with the original filename cpanel gave it and dump it in /home. Try renaming it to /home/cpmove-username.tar.gz and see if that works.

    Definitely remove the existing user first, I'm almost certain it won't work when the user already exists.
     
  15. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I've tried renaming the file using all three prefixes, it doesn't work. I've tried without the user accounts, that doesn't work. I've tried with the user accounts, that doesn't work. I've tried importing from the old server using and not using the user/password, I've tried with full backups FTPd to the new server, I've tried downloading them straight to my computer and re-uploading them to the new server.

    The file has the right name(s), the file is in the right spot, and I can open up the .gz file with no issues. I just need to freaking import ALL of the account settings, e-mail settings, files, databases etc. and I need it to work right. But no matter what I've tried sofar, same results - it works for some accounts, doesn't work on others.
     
  16. ShockHosts

    ShockHosts Well-Known Member

    Joined:
    Nov 25, 2005
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Transferring is and has always been very faulty...

    I think cPanel in the next edition should create a new system..
     
  17. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Try manually importing it with pkgrestore from SSH command line. I think that's what I've used in the past. If the account name is "acct" you would use:

    pkgrestore acct

    This may give the same error, as it's the underlying tool that the restore process uses, but at least you'll probably see more of what's happening.

    Is the suffix .tar.gz? For instance, /home/cpmove-acct.tar.gz ?
     
  18. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Where would pkgrestore be found? It's not in the /scripts directory.

    Yes the suffix is .tar.gz.
     
  19. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Uhhh ... sorry ... my mistake, pkgrestore is actually called "restorepkg" and is found in /scripts.

    You should be able to use "/scripts/restorepkg accountname" to restore a file - it gives a helpful error message, which also makes clear it's the underlying tool that cpanel calls to restore an account when you do a restore via WHM. I seem to remember when WHM doesn't work that restorepkg worked.
     
  20. kamnet

    kamnet Member

    Joined:
    May 7, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Welp, it didn't work. Here's my results:

    Code:
    root@cpanel [~]# cd ..
    root@cpanel [/]# cd home
    root@cpanel [/home]# ls
    
    ./                                       emhs/           taes/
    ../                                      gtg/            tameone/
    admin/                                   justen/         timothy/
    backup-6.12.2006_11-37-02_alexis.tar.gz  last2act/       tiwonge/
    bethesda/                                maxx/           uswf/
    client/                                  moms/           vcw/
    .cpan/                                   MySQL-install/  warz/
    cpmove-alexis.tar.gz                     naw/            willow/
    cptmp/                                   patriot/
    eblade/                                  roe/
    
    root@cpanel [/home]# /scripts/restorepkg cpmove-alexis.tar.gz
    Searching /home....
    No Restorable archives found!
    Searching /usr/home....
    No Restorable archives found!
    Searching /web....
    No Restorable archives found!
    Searching /home2....
    No Restorable archives found!
    Searching /home3....
    No Restorable archives found!
    Searching /root....
    No Restorable archives found!
    Searching /usr....
    No Restorable archives found!
    <br><br><b>No archives where found!!</b><br><br>
    This feature will restore full backups, cpanel backups and cpanel move files in the format of:
          cpmove-user.tar.gz, user.tar.gz, backup-date_time_user.tar.gz<br><br>
    The files must be in one of these directories on the server:
          /home,/usr/home,/web,/home2,/home3,/root,/usr<br><br><b>You must upload the file to one of the above locations before
          using this feature.</b>
    root@cpanel [/home]#
    As you can see, I have a copy of the file both with the backup* and cpmove* prefixes on them, they're in the /home directory, and the script cannot fid any files with with those prefixes.
     
Loading...

Share This Page