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.

Can not copy account from another server

Discussion in 'General Discussion' started by volgafan, Aug 28, 2003.

  1. volgafan

    volgafan Member

    Joined:
    Feb 20, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Hi.

    I got a problem with copying account from old server to new one.

    Old server runing RedHat and WHM/cPanel 7.4.2. New one runing FreeBSD 5.1 and WHM 7.4.2 cPanel 7.4.2-S118.

    When I'm trying to copy an account from old server to new one (does not matter which way) I got the folowing error "Checksum Failure [[]] [[8fafc97a1793209ce4ff234f240e9ad7]]..."

    Do anyone knows how to fix this?

    Thank in advance

    SY, Alexei

    cPanel.net Support Ticket Number:
     
  2. Creazioni

    Creazioni Well-Known Member

    Joined:
    Jan 5, 2003
    Messages:
    133
    Likes Received:
    0
    Trophy Points:
    16
    hi
    you login into SSH (old server) immediatly like root or not?
    into (old server) SSH_CONFIG have you root permission > yes or no?

    cPanel.net Support Ticket Number:
     
  3. volgafan

    volgafan Member

    Joined:
    Feb 20, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Yes, ssh root login alowed on old server

    cPanel.net Support Ticket Number:
     
  4. Creazioni

    Creazioni Well-Known Member

    Joined:
    Jan 5, 2003
    Messages:
    133
    Likes Received:
    0
    Trophy Points:
    16
    How large is this site) MB?

    cPanel.net Support Ticket Number:
     
  5. volgafan

    volgafan Member

    Joined:
    Feb 20, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I can not copy no one of accounts. Does not matter big or small

    cPanel.net Support Ticket Number:
     
  6. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    I too am having this very same problem. I wonder if it has somthing to do with whether or not the OS is the same version? Anyone have any Ideas?

    cPanel.net Support Ticket Number:
     
  7. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    Move Large Account

    This may help

    For large sites, the Cpanel move feature via WHM will timeout due to the large .tar.gz file it generates. To do it manually you will have to use SSH as the root user. The following commands should help you:

    First on the server that the account is on now, use the following command to package the account:

    /scripts/pkgacct USERNAME

    Change USERNAME to the username that you want packaged. This will save all the user files, email accounts, MySQL databases etc. into one .tar.gz file. This process make take some time depending on how big the site is.

    The file generated from the command above will be locate at:

    /home/cpmove-USERNAME.tar.gz

    You now have to move this file so that it can be accessed via a web address. Usually this can be moved to /usr/local/apache/htdocs which is the default http directory on Cpanel servers. Again, this can be done by using this command:

    mv /home/cpmove-USERNAME.tar.gz /usr/local/apache/htdocs

    Change the chmod permission of the file so that you can download it via the web:

    chmod 644 /usr/local/apache/htdocs/cpmove-USERNAME.tar.gz

    Next... go to your new server and login via SSH as root. First change to the home directory:

    cd /home

    Now get the file from the old server:

    wget http://SERVER_IP/cpmove-USERNAME.tar.gz

    The URL above usually works, but you can change this to a domain name depending on where you have placed the .tar.gz file on the old server.

    And finally, restore the Cpanel package:

    /scripts/restorepkg USERNAME

    Remember to delete the cpmove-USERNAME.tar.gz from your old server to prevent other people from downloading it aswell. the restore process will create the Cpanel account on the new server and restore all the files and settings for that user.

    cPanel.net Support Ticket Number:
     
  8. rbarkand

    rbarkand Registered

    Joined:
    Sep 2, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    paralard -- excellent post!

    I found myself in a similar situation and the post above seems to be exactly what I need - step by step.

    I got pretty far along, but when I got to the wget, I hit a snag. It is not clear to me whether "permission denied" is on the old server or new one. The IP address and username below have been changed to protect the innocent. :)

    Connecting to 123.123.123.123:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 31,050,907 [application/x-tar]
    cpmove-xxxxxx.tar.gz.1: Permission denied

    Cannot write to `cpmove-xxxxxx.tar.gz.1' (Permission denied).

    cPanel.net Support Ticket Number:
     
  9. rbarkand

    rbarkand Registered

    Joined:
    Sep 2, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I can answer my own question. I wasn't logged in as root on the new server. So I pulled the file over but when I tried to restore the package I got this:

    Extracting tarball....
    gzip: stdin: unexpected end of file
    /bin/tar: Child returned status 1
    /bin/tar: Error exit delayed from previous errors
    Done
    Extracting Domain....Done
    Sorry, the copy failed. Unable to find the cpanel user file

    cPanel.net Support Ticket Number:
     
  10. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    It is an awesome post, but i cant take credit for it. I found it at Rack Shack Forums..........

    cPanel.net Support Ticket Number:
     
  11. FWC

    FWC Well-Known Member

    Joined:
    May 13, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ontario, Canada
    It would be easiser to just cd to the /home directory on server1 and SCP the file to the /home directory on server2. No need for moving things, changing permisssions and using wget.
     
  12. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    For the less experienced, please give instructions....... That is what made the post good, it has detailed instructions.

    cPanel.net Support Ticket Number:
     
  13. FWC

    FWC Well-Known Member

    Joined:
    May 13, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ontario, Canada
    On server1:

    cd /home
    scp cpmove-USERNAME.tar.gz root@server2.domain.ext:/home/

    It will then ask for server2's password. Enter it and the file will transfer to server2's /home directory. You can also use the IP address for server2.
     
    #13 FWC, Sep 13, 2003
    Last edited: Sep 13, 2003
  14. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    Awesome.... thanks, that is easier !

    cPanel.net Support Ticket Number:
     
  15. rbarkand

    rbarkand Registered

    Joined:
    Sep 2, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    is there a way to specify the port on server 2? Mine uses one other than the default.

    cPanel.net Support Ticket Number:
     
  16. mjost

    mjost Member

    Joined:
    Mar 7, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Europe
    scp -P port cpmove-USERNAME.tar.gz root@server2.domain.ext:/home/

    try a man scp ;)

    cPanel.net Support Ticket Number:
     
  17. volgafan

    volgafan Member

    Joined:
    Feb 20, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    All of this is acceptable if you have root access on both servers...
    But I got root only on one server...

    cPanel.net Support Ticket Number:
     
  18. Nurples

    Nurples Member

    Joined:
    Sep 22, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Land Of Nurples
    I have the same problem... :( Only root access to one server.

    cPanel.net Support Ticket Number:
     
  19. justchil

    justchil Active Member

    Joined:
    Aug 1, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Great tip. I had forgotten about scp but it's working perfect for moving a 5gb file to a new server!
     
Loading...

Share This Page