Spamassassin Configure error

NightStorm

Well-Known Member
Jul 28, 2003
285
4
168
cPanel Access Level
Root Administrator
Twitter
Clicking on the "Configure Spamassassin" button from within CPanel, I receive the following error:
[a fatal error or timeout occurred while processing this directive][a fatal error or timeout occurred while processing this directive]
An output of the error log shows:
(internal death) Sun Jun 4 14:26:59 2006 [30246] error: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/perl /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at (eval 20) line 3.
eval 'package # hide from PAUSE
DBI::_firesafe; # just in case
require DBD::mysql; # load the driver

;' called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/DBI.pm line 724
DBI::install_driver('DBI', 'mysql') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/DBI.pm line 592
DBI::connect('DBI', 'DBI:mysql:database=dist_spamass;host=127.0.0.1', 'root', 'mFs32wA23@dxb', 'HASH(0xa21ede4)') called at /usr/local/cpanel/Cpanel/SpamAssassin.pm line 43
Cpanel::SpamAssassin::SpamAssassin_ConnectDB() called at /usr/local/cpanel/Cpanel/SpamAssassin.pm line 103
Cpanel::SpamAssassin::SpamAssassin_config() called at (eval 19) line 1
eval 'SpamAssassin_config(@RARGS);' called at cpanel.pl line 524
main::exectag('<cpanel SpamAssassin="config()">') called at cpanel.pl line 3618
main::dotag(undef) called at cpanel.pl line 3508
main::parsehtml('GLOB(0x9eae604)') called at cpanel.pl line 359
(internal death) Sun Jun 4 14:26:59 2006 [30246] error: install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/perl /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at (eval 20) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: .
at /usr/local/cpanel/Cpanel/SpamAssassin.pm line 43
Carp::croak('install_driver(mysql) failed: Can\'t locate DBD/mysql.pm in @INC...') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/DBI.pm line 748
DBI::install_driver('DBI', 'mysql') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/DBI.pm line 592
DBI::connect('DBI', 'DBI:mysql:database=dist_spamass;host=127.0.0.1', 'root', 'mFs32wA23@dxb', 'HASH(0xa21ede4)') called at /usr/local/cpanel/Cpanel/SpamAssassin.pm line 43
Cpanel::SpamAssassin::SpamAssassin_ConnectDB() called at /usr/local/cpanel/Cpanel/SpamAssassin.pm line 103
Cpanel::SpamAssassin::SpamAssassin_config() called at (eval 19) line 1
eval 'SpamAssassin_config(@RARGS);' called at cpanel.pl line 524
main::exectag('<cpanel SpamAssassin="config()">') called at cpanel.pl line 3618
main::dotag(undef) called at cpanel.pl line 3508
main::parsehtml('GLOB(0x9eae604)') called at cpanel.pl line 359
I am running the latest perl, I have checked that the modules are up to date with /usr/local/cpanel/bin/checkperlmodules, and have also run /scripts/perlinstaller --force List::Util, on the longshot that it was a problem (it came up in the search).
# perl -v

This is perl, v5.8.7 built for i686-linux

Copyright 1987-2005, Larry Wall
WHM 10.8.0 cPanel 10.8.2-E135
RedHat Enterprise 3 i686 - WHM X v3.1.0
Any ideas?
 

OCX

Well-Known Member
Sep 20, 2003
231
0
166
Code:
run /scripts/perlinstaller --force Bundle::DBD::mysql


then run
/usr/local/cpanel/bin/checkperlmodules


OCX
 

NightStorm

Well-Known Member
Jul 28, 2003
285
4
168
cPanel Access Level
Root Administrator
Twitter
So you think that executing:
ln -s /usr/bin/perl /usr/local/bin/perl
might fix it?

*edit* Nope... that isn't it either.
ln: `/usr/local/bin/perl': File exists
lrwxrwxrwx 1 root root 13 Sep 2 2005 /usr/local/bin/perl -> /usr/bin/perl*

This really has me stumped. I opened a ticket with CPanel yesterday, but as yet, have not received a reply. I'm guessing a Sunday was a bad time to discover this problem.
 
Last edited:

NightStorm

Well-Known Member
Jul 28, 2003
285
4
168
cPanel Access Level
Root Administrator
Twitter
root@server [/bin]# /usr/local/bin/perl -v

This is perl, v5.8.7 built for i686-linux

Copyright 1987-2005, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

root@server [/bin]# /usr/bin/perl -v

This is perl, v5.8.7 built for i686-linux

Copyright 1987-2005, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

root@server [/bin]#
I swear... this is just a good week...
 

NightStorm

Well-Known Member
Jul 28, 2003
285
4
168
cPanel Access Level
Root Administrator
Twitter
http://bugzilla.cpanel.net/show_bug.cgi?id=4264

Reported the bug. Feel free to vote for it and add any additional information you can think of that could help the staff to fix the problem.
For the time being, I suggest a downgrade to the latest CURRENT. It's not experiencing the same problems, and the latest EDGE (released last night) does not yet fix the problem.
 

jackal

Well-Known Member
PartnerNOC
Feb 23, 2002
707
0
316
Voted on your ticket same issue here also issue with perl relating to cachelanguages
 

rpmws

Well-Known Member
Aug 14, 2001
1,787
10
318
back woods of NC, USA
cinusik said:
EDGE 138 fix this issue, that I can confirm on my 2 servers but E138 breaks domains parking. Can you confirm thisone NightStorm?
Just try to park any domain on any server and you'll see the error.
domain parking / subdomains / add-on domains all screwed up ..or some combination of the above in 138