CPMOVE NO LONGER WORKLS on latest cpanel build

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
We run a few servers and have been having problems lately using cpmove to copy sites from one server to another, vps to server or vps to vps. NOTHING WORKS AFTER WE UPGRADED CPANEL TO THE LATEST BUILD.

We are running on ALL SERVERS:

WHM 10.8.0 cPanel 10.9.0-R44
CentOS 4.2 i686 - WHM X v3.1.0

and:

WHM 10.8.0 cPanel 10.9.0-R34
CentOS 4.4 i686 - WHM X v3.1.0

While trying to move sites, we get teh following error:

Packaging the account...
pkgacct started.
pkgacct version 4.2 - running with uid 0
using time::hires for speedups
We will be splitting the archive!!
Timeout ...
[a fatal error or timeout occurred while processing this directive]Retrying....Packaging the account...
pkgacct started.
pkgacct version 4.2 - running with uid 0
using time::hires for speedups
We will be splitting the archive!!
Timeout ...
[a fatal error or timeout occurred while processing this directive]Retrying....Packaging the account...

Done
Warning: file location not sent.. guessing.. this may not work ....
Using the single archive method (/home/cpmove-green.tar.gz)!

ANYONE facing the same problem?
 

ckh

Well-Known Member
Dec 6, 2003
358
1
168
Phoenix, AZ
cPanel Access Level
DataCenter Provider
http://bugzilla.cpanel.net/show_bug.cgi?id=4698

I had a similar problem. I had moved 10-15 accounts between servers pre R37 (R33 or r34), didn't do any with R37, but, tried for a couple hours with R44 with no success.

Had one to move and got the message it was going to do the split compression. Well, it did it, moved the file, untarred it, then said it wasn't a valid cpmove directory or something like that.

Tried using compressed, uncompressed, root password to no avail. The transferred file was 193 meg. I ended up doing a full backup from cpanel, transferring the file to the other server and restoring it. That file was about 15 megs and not the 193 that WHM created. Using the full cpanel backup file worked just fine.

Chris
 

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Did you try to update your cPanel up to the latest Stable version ? As I see your use Release. Our servers work under Stable cPanel and we aren't experiencing such problems.
 

ckh

Well-Known Member
Dec 6, 2003
358
1
168
Phoenix, AZ
cPanel Access Level
DataCenter Provider
I see stable is at 45 while release is at 44. Not sure if it would make a difference since, I believe, that the number reflects that it includes all fixes/changes of the releases of lower numbers??

I believe that stable 45 is going to be bascially the same as release 44.

Of course I've been wrong many times before.....

Chris
 

mrcpu

Member
Feb 7, 2005
18
0
151
I had a problem with cpmove that was fixed by changing the shell on the source machine
to an sh-type shell, rather than a csh-type shell. Bash or /bin/sh...

I got the "timeout" error consistently.

However, I haven't tried witha release as "current" as you are running.
 

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
We just performed about 30 moves under "WHM 10.8.0 cPanel 10.9.0-R44" and had no problems at all.

We have had the timeout issue in the past and it was due to the size of the user's mailman archives. In such case, we had to just run pkgacct locally to create the cpmove file, transfer it to the new server and then use the WHM backup/restore feature to "restore" the cpmove file on the new server.
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
rhohan said:
how helpful ! can you tell which ones?
Not here as that will depend on your specific server but I can give you
the procedure to get those all updated and fix the missing ones
in the process. Fortunately, it's easy to fix ...

I'll private message that info to you after some coffee (just woke up)
or add on to this post.
 
Last edited:

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
Did you manage to resolve this?

Thanks

Dan Fulton

UNFORTUNATELY, NO。

As someone mentioned, does anyone know what files we are missing?
 

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166

overload

Member
Feb 9, 2006
11
0
151
I have problems also with database: no user/database is copied using "Copy an account from another server with account password" from WHM

My config is:

WHM 10.8.0 cPanel 10.9.0-R44
CentOS 4.4 i686 - WHM X v3.1.0

any advice?
 

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
Running that command will install and update the mods that are required for cpanel.
We upgraded BOTH servers to the latest RELEASE BUILD and then run your recommended command without any error.

We tried copying again and we got this LOOPING non-stop. A TOP shows a few pkgacct processes running although the copy was terminated when it failed.

Packaging the account...
pkgacct started.
pkgacct version 4.2 - running with uid 0
using time::hires for speedups
We will be splitting the archive!!
Timeout ...
[a fatal error or timeout occurred while processing this directive]Retrying....Packaging the account...
pkgacct started.
pkgacct version 4.2 - running with uid 0
using time::hires for speedups
We will be splitting the archive!!
Timeout ...
[a fatal error or timeout occurred while processing this directive]Retrying....Packaging the account...
pkgacct started.
pkgacct version 4.2 - running with uid 0
using time::hires for speedups
We will be splitting the archive!!
Timeout ...
[a fatal error or timeout occurred while processing this directive]
Done
Transfer ErrorUnable to package account

IDEAS?

P/S: Local pkgacct as ROOT works on both servers but we have too many accounts to move!
 

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
Apparently, it appears that /scripts/pkgacct is timing out on some servers.

Anything we missed or can tweak?
 

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
FINALLY

We managed to pinpoint the issue and have solved the problem.

The error stems from HUGE Reseller Config files under /var/cpanel, which cause pkgacct to time itself out.

Once the files under /var/cpanel is sorted and duplicate entries removed, the cpmove will go thru.

INCASE anyone is interested, the files in question are:

reseller-resource-overselling
reseller-limits
reseller-number-accounts
resellers-nameservers
reseller-resource-accounts
reseller-resource-limits

These tend to be corrupted and contain multiple duplicate entries.

SORT them and make sure they contain only one single UNIQ entries for each accounts and the problem will go away.
 
Last edited:

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Thanks for last post brendanrtg, I believe cPanel users will find it useful and it will save their time.