#1 (permalink)  
Old 06-01-2006, 03:30 AM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
Problems moving accounts between cPanel servers

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-09-2006, 07:40 AM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
Still looking for a resolution to this problem. Has nobody else experienced this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-09-2006, 09:17 AM
Registered User
 
Join Date: Jan 2005
Location: India
Posts: 559
madaboutlinux is on a distinguished road
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 ?
__________________
Linux WebHosting Blog.
http://linuxhostingsupport.net/blog/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-09-2006, 09:31 AM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
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. :-/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-10-2006, 08:54 AM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-10-2006, 09:35 AM
Registered User
 
Join Date: Jan 2005
Location: India
Posts: 559
madaboutlinux is on a distinguished road
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.
__________________
Linux WebHosting Blog.
http://linuxhostingsupport.net/blog/

Last edited by madaboutlinux; 06-10-2006 at 10:01 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-10-2006, 11:32 AM
Registered User
 
Join Date: Jul 2003
Posts: 27
chzelle
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-10-2006, 02:12 PM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-12-2006, 03:47 PM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-12-2006, 05:34 PM
brianoz's Avatar
Registered User
 
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 984
brianoz is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 06-12-2006, 09:57 PM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 06-12-2006, 11:53 PM
brianoz's Avatar
Registered User
 
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 984
brianoz is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 06-13-2006, 12:15 AM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
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.

Last edited by kamnet; 06-13-2006 at 12:18 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 06-13-2006, 02:44 AM
brianoz's Avatar
Registered User
 
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 984
brianoz is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 06-13-2006, 02:55 AM
Registered User
 
Join Date: May 2003
Posts: 20
kamnet
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc