spamd failed completely

Clemr

Registered
Oct 26, 2012
1
0
1
cPanel Access Level
Root Administrator
Hi everyone,

spamassassin stop working yesterday afternoon and I have got the following message send by cpanel ChkServd every 5min :

Code:
spamd failed @ Thu Oct 25 22:37:12 2012. A restart was attempted automagically.
Service Check Method:  [check command] 
Number of Restart Attempts: 94
Cmd Service Check Raw Output: Spamd is not running
Raw Output: 

Syslog Messages: Oct 25 21:37:05 mail kernel: [20010077.522568] spamd[21395] general protection ip:7f424db6632c sp:495ad26440a68d1d error:0 in ld-2.5.so[7f424db52000+1c000]
Oct 25 21:42:06 mail kernel: [20010379.619016] spamd[19015] general protection ip:7f4db057d32c sp:431232f0e12fc8a5 error:0 in ld-2.5.so[7f4db0569000+1c000]
Oct 25 22:07:13 mail kernel: [20011890.047758] spamd[15332] general protection ip:7fecdde0032c sp:4c9075ad9475a283 error:0 in ld-2.5.so[7fecdddec000+1c000]
Oct 25 22:12:11 mail kernel: [20012191.515411] spamd[25210] general protection ip:7fe76745332c sp:a56f963932d93999 error:0 in ld-2.5.so[7fe76743f000+1c000]
As I have made some searches on forum, I know usually followings commands are used to solve this :

Code:
/scripts/upcp --force
/usr/local/cpanel/scripts/fixspamassassinfailedupdate
/scripts/restartsrv_spamd
but the thing is, when I try : /scripts/restartsrv_spamd I'have got a :
Code:
/usr/local/cpanel/scripts/uptdate_sa_rules:running in background
the most strange thing is when I try to go on WHM to "Setup Spamd Configuration", I have got :
Code:
Internal Error 500, No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_spamdconf.cgi) with exit signal: 2
have you any idea about where come from the issue and what can I try ? Its not a recent server and we cannot have a dowtime on the mailserver, too much peoples use it.
 

ruiz

Well-Known Member
Feb 13, 2008
50
4
58
I have exactly the same problem here. Did you fix it Clemr?
 

arunsv84

Well-Known Member
Oct 20, 2008
372
1
68
127.0.0.1
cPanel Access Level
Root Administrator
Paste the error logs from the following file.

/usr/local/cpanel/logs/error_log
I have experienced the same issue, but it was due to a recent CentOS update breaking the perl on server. Paste the logs here and so we can confirm this.

Cheers!!!
 

ruiz

Well-Known Member
Feb 13, 2008
50
4
58
Paste the error logs from the following file.



I have experienced the same issue, but it was due to a recent CentOS update breaking the perl on server. Paste the logs here and so we can confirm this.

Cheers!!!
There's nothing related to perl on the error_log, however when trying to restart cpanel, i got this:

Starting tailwatchd: List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Linux/Inotify2.pm line 80.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Linux/Inotify2.pm line 80.
Compilation failed in require at /usr/local/cpanel/bin/inotify_test line 2.
List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/Sort.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Sort.pm line 22.
Compilation failed in require at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
Compilation failed in require at /usr/local/cpanel/bin/fetch_cpconf_value line 19.
List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/Sort.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Sort.pm line 22.
Compilation failed in require at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
Compilation failed in require at /usr/local/cpanel/bin/fetch_cpconf_value line 19.
List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/Sort.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Sort.pm line 22.
Compilation failed in require at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
Compilation failed in require at /usr/local/cpanel/bin/fetch_cpconf_value line 19.
List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/Sort.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Sort.pm line 22.
Compilation failed in require at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
Compilation failed in require at /usr/local/cpanel/bin/fetch_cpconf_value line 19.
List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/Sort.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Sort.pm line 22.
Compilation failed in require at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
Compilation failed in require at /usr/local/cpanel/bin/fetch_cpconf_value line 19.
List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/Sort.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Sort.pm line 22.
Compilation failed in require at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/TweakSettings/Main.pm line 22.
Compilation failed in require at /usr/local/cpanel/bin/fetch_cpconf_value line 19.
[Sat Nov 3 11:56:27 2012] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon
Log is at /usr/local/cpanel/logs/tailwatchd_log
 

arunsv84

Well-Known Member
Oct 20, 2008
372
1
68
127.0.0.1
cPanel Access Level
Root Administrator
Its the same issue that I experienced. You have to check if the /etc/yum.conf. If its empty that means your perl got updated from the repo of centos. This will break the cPanel installed perl. The way to fix this is to reinstall perl. Make sure to backup your perl before reinstalling. I would recommend you to submit a ticket to cPanel team and they will fix this for you.

Cheers!!!
 

ruiz

Well-Known Member
Feb 13, 2008
50
4
58
Thanks arunsv84 that was exactly the problem. Softlayer support fixed it for me.

As for my /etc/yum.conf it was different from my other servers, so i copied over the corret data (i assume?)

Code:
[main]
exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassa$
tolerant=1
errorlevel=1
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
assumeyes=1
failovermethod=priority