WHM not setting/editing account quote limits!

econ

Registered
Aug 31, 2005
1
0
151
My WHM had been working fine until about 3 weeks ago, any accounts created in this time have been set with an 'unlimited' quota while the relative packages have limits.

Also if I upgrade an account from one package to another the account name takes on the package name as it should but the quota doesn't change.

If I select 'Quota modification' the quota does not changes from it's previous value.

When making any of the ablove changes in my WHM the messages coming back are telling me this is all being done OK, changing quota etc......... but in reality no quota is being affected.

Anyone any ideas?

WHM 10.6.0 cPanel 10.6.0-R55
CentOS 4.2 i686 - WHM X v3.1.0
Linux server

Thanks
 

arturoz

Member
Feb 13, 2005
18
0
151
Poland, Gdańsk
cPanel Access Level
Root Administrator
Shekhar said:
Try
/scripts/initquotas
/scripts/fixquotas
don't work, still the same problem.

fixquotas gives this error:

Can't locate version.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . /scripts) at /scripts/cPScript/cPQuota.pm line 11.
BEGIN failed--compilation aborted at /scripts/cPScript/cPQuota.pm line 11.
Compilation failed in require at /scripts/editquota line 8.
BEGIN failed--compilation aborted at /scripts/editquota line 8.


commands from here http://forums.cpanel.net/showthread.php?t=49009

"/usr/local/cpanel/bin/checkperlmodules" and
"/scripts/perlinstaller version"

don't fix the error

-----------------------
WHM 10.8.0 cPanel 10.8.1-S114
RedHat Enterprise 3 i686 - WHM X v3.1.0
 

BenThomas

Well-Known Member
Feb 12, 2004
598
0
166
Houston, Texas USA
cPanel Access Level
Root Administrator
econ said:
Also if I upgrade an account from one package to another the account name takes on the package name as it should but the quota doesn't change.
This issue will be addressed in the next builds.

Also, the "script" you were likely looking for is "/scripts/resetquotas". Call it with the "--useplanquotas" option to have all your account quotas reset to their package defaults.
 

cokegen

Registered
Feb 23, 2004
1
0
151
don't work for me

I've run the perl reinstall, then made an upcp but the error keeps appearing. Can anyone tell me why is this happening ?

[/scripts]# ./resetquotas
Can't locate version.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl . /usr/local/cpanel) at /scripts/cPScript/cPQuota.pm line 11.
BEGIN failed--compilation aborted at /scripts/cPScript/cPQuota.pm line 11.
Compilation failed in require at ./resetquotas line 15.
BEGIN failed--compilation aborted at ./resetquotas line 15.

Thanks
 

ruzster

Active Member
Aug 11, 2006
26
0
151
I get the exact same error:

Can't locate version.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . /scripts) at /scripts/cPScript/cPQuota.pm line 11.
BEGIN failed--compilation aborted at /scripts/cPScript/cPQuota.pm line 11.
Compilation failed in require at /scripts/editquota line 11.
BEGIN failed--compilation aborted at /scripts/editquota line 11.

Anyone figure this one out?

Edit: Well.. I think I've got an answer, but it's a little ghetto.

In /scripts/cPScript/cPQuota.pm I commented out:

use version; our $VERSION = qv('0.1.0');


Everything seems to work fine now. Will this cause me problems later on?

(BTW, I did try reinstalling Perl first. Didn't work.)
 
Last edited:

ruzster

Active Member
Aug 11, 2006
26
0
151
Creating new 'Build' script for 'version' version '0.67'

CPAN: YAML loaded ok

Can't locate object method "up_to_date" via package "version::Builder" (perhaps you forgot to load "version::Builder"?) at ./Build line 45.

./Build -- NOT OK

Running Build install

make had returned bad status, install seems impossible

perlmod--Install done

This is what it gives me.


Edit:



I found the answer here: http://forums.cpanel.net/showpost.php?p=263762&postcount=11
 
Last edited: