Daily email - [checkperl​modules] The perl module Quota could not be installed.

BasicLink SA

Member
Aug 30, 2011
13
0
51
cPanel Access Level
DataCenter Provider
We are receiving an email every day titled "[checkperl​modules] The perl module Quota could not be installed."

The body of the email shows this error:
Can't locate Quota.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at - line 1.
BEGIN failed--compilation aborted at - line 1.

Searching the forums doesn't show me any others with the same issue but I did see some possible fixes:
/usr/local/cpanel/bin/checkperlmodules
/scripts/ensurerpm quota
/scripts/upcp --force

I tried them but it did not fix the issue. This is the relevant output:


/usr/local/cpanel/bin/checkperlmodules

<snip>
Finding PREREQ from Makefile ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.59)
Building Quota-1.6.6 ... cp Quota.pm blib/lib/Quota.pm
AutoSplitting blib/lib/Quota.pm (blib/lib/auto/Quota)
/usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap Quota.xs > Quota.xsc && mv Quota.xsc Quota.c
You need to make a myconfig.h. See the file INSTALL.
make: *** [myconfig.h] Error 1
FAIL
! Installing Quota failed. See /home/.cpanm/build.log for details.
<snip>



/scripts/ensurerpm quota

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.teklinks.com
* epel: Georgia Tech Software Library (GTlib) | Home
* extras: mirror.ash.fastserv.com
* updates: Georgia Tech Software Library (GTlib) | Home
Setting up Install Process
Package 1:quota-3.17-10.el6.x86_64 already installed and latest version
Nothing to do


/scripts/upcp --force

<snip>
[20110830.143311] [5138] Finding PREREQ from Makefile ...
[20110830.143311] [5138] Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.59)
[20110830.143312] [5138] Building Quota-1.6.6 ... cp Quota.pm blib/lib/Quota.pm
[20110830.143312] [5138] AutoSplitting blib/lib/Quota.pm (blib/lib/auto/Quota)
[20110830.143312] [5138] /usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap Quota.xs > Quota.xsc && mv Quota.xsc Quota.c
[20110830.143312] [5138] You need to make a myconfig.h. See the file INSTALL.
[20110830.143312] [5138] make: *** [myconfig.h] Error 1
[20110830.143312] [5138] FAIL
[20110830.143312] [5138] ! Installing Quota failed. See /home/.cpanm/build.log for details.
<snip>


This is WHM 11.30.2 (build 1) on CENTOS 6.0 x86_64 on a Linode VPS.

Any help on correcting this problem will be appreciated.

Stephane
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Are there any additional details about the failure in /home/.cpanm/build.log location as indicated in the error message?

We have another ticket (1770725) I found about CentOS 6 where quota failed to install but that ticket resulted in changing to CentOS 5 instead. Could you please open up a ticket about this issue so we can attempt to replicate it to see what is happening? This might be a case for an incompatibility with CentOS 6 and we would want to know about it. You can submit a ticket using WHM > Support Center > Contact cPanel or using the link in my signature.

Upon opening up a ticket, it would be greatly appreciated if you would post the ticket number here for reference.
 

BasicLink SA

Member
Aug 30, 2011
13
0
51
cPanel Access Level
DataCenter Provider
There is no useful information in /home/.cpanm/build.log, it's an endless loop actually!

<snip>
-> OK
Checking dependencies from MYMETA.yml ...
Finding PREREQ from Makefile ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.59)
Building Quota-1.6.6
-> FAIL Installing Quota failed. See /home/.cpanm/build.log for details.


I will submit a trouble ticket.

Stephane


EDIT: Ticket is 1842718
 
Last edited:

mpkossen

Member
Jul 19, 2010
12
0
51
I'm having the same issue, but I cannot access the ticket. Where can I get an account to view the ticket?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I'm having the same issue, but I cannot access the ticket. Where can I get an account to view the ticket?
It was discovered the use of a custom kernel caused this problem. The resolution offered was to switch back to a standard kernel provided with the Operating System. If you would like our staff to investigate the issue for you on your server, you can open a ticket via:

Submit A Ticket

Thank you.
 

mpkossen

Member
Jul 19, 2010
12
0
51
Thanks, Michael. I imagine it is a custom kernel provided by my hosting provider, I'll have a look at that.
 

BasicLink SA

Member
Aug 30, 2011
13
0
51
cPanel Access Level
DataCenter Provider
Yes the problem was the 3.0.0 kernel that is the default in the distribution on linode.

It was recommended that I use the default kernel for that OS (CentOS) but that wasn't available or I couldn't find it. I used the latest 2.6 kernel, "Latest 2.6 (2.6.39.1-x86_64-linode19)".

I did that yesterday and it seemed to work fine. I wanted to wait overnight to see if I received the warming email and I did not so I would say this is solved.

Thanks everyone for your assistance.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
You may want to let Linode know about the issue with that happening on their default 3.0.0 kernel for CentOS 6, since they may well run into more users with that same issue.
 

mpkossen

Member
Jul 19, 2010
12
0
51
I'm with Linode as well, so I'll also submit a ticket to notify them of an issue with the kernel. I'll see if going back to "Latest 2.6 (2.6.39.1-x86_64-linode19)" help soon.

Thanks.
 

fortscan

Registered
Oct 27, 2011
1
0
51
cPanel Access Level
Root Administrator
Re: Daily email - [checkperl​modules] The perl module Quota could not be in

We experienced the same problem with CentOS 6 + 3.x kernels, and the issue was indeed related to the Perl module itself and a check that it performs to identify the OS (thanks EH-Chris).

We have been testing the following fix with success at several servers running 3.x kernels:

1. First check that Perl quota module is actually failing to install:
/usr/local/cpanel/bin/checkperlmodules
It should give you "! Installing Quota failed. See /home/.cpanm/build.log for details."

2.
wget http://cpan.mirror.clemson.edu//authors/id/T/TO/TOMZO/Quota-1.6.6.tar.gz
tar xzf Quota-1.6.6.tar.gz
cd Quota-1.6.6

3. Edit Makefile.PL, and after the line "elsif($os =~ /^Linux 2/)...", add the following:
elsif($os =~ /^Linux 3/) { $config='linux.h'; $picobj='linuxapi.o'; }

4.
perl Makefile.PL
make
make install
make clean

5. Check for Perl quota module errors again, and it should now be fixed:
/usr/local/cpanel/bin/checkperlmodules
 

highnfar

Registered
Nov 11, 2011
1
0
51
cPanel Access Level
Website Owner
Re: Daily email - [checkperl​modules] The perl module Quota could not be in

Problem fixed! Thanks.


We experienced the same problem with CentOS 6 + 3.x kernels, and the issue was indeed related to the Perl module itself and a check that it performs to identify the OS (thanks EH-Chris).

We have been testing the following fix with success at several servers running 3.x kernels:

1. First check that Perl quota module is actually failing to install:
/usr/local/cpanel/bin/checkperlmodules
It should give you "! Installing Quota failed. See /home/.cpanm/build.log for details."

2.
wget http://cpan.mirror.clemson.edu//authors/id/T/TO/TOMZO/Quota-1.6.6.tar.gz
tar xzf Quota-1.6.6.tar.gz
cd Quota-1.6.6

3. Edit Makefile.PL, and after the line "elsif($os =~ /^Linux 2/)...", add the following:
elsif($os =~ /^Linux 3/) { $config='linux.h'; $picobj='linuxapi.o'; }

4.
perl Makefile.PL
make
make install
make clean

5. Check for Perl quota module errors again, and it should now be fixed:
/usr/local/cpanel/bin/checkperlmodules