spamd constantly failing

sparek-3

Well-Known Member
Aug 10, 2002
2,183
285
388
cPanel Access Level
Root Administrator
Upgraded a server to cPanel 110 - not sure if that's related, but issue didn't present itself while the server was on cPanel 102.

Seems spamd just constantly fail.

Even running spamd in an interactive shell:

/usr/local/cpanel/3rdparty/perl/536/bin/spamd --allowed-ips=127.0.0.1,::1 --max-children=5 --pidfile=/var/run/spamd.pid --start-dormant

It dies in less than a minute

Jul 5 10:05:01.222 [2931557] info: prefork: child states: III
Jul 5 10:05:01.223 [2931557] info: prefork: adjust: 3 idle children more than 2 maximum idle children. Decreasing spamd children: 2931660 killed.
Jul 5 10:05:01.230 [2931557] info: prefork: child states: IIK
Jul 5 10:05:01.230 [2931557] info: spamd: handled cleanup of child pid [2931660] due to SIGCHLD: interrupted, signal 2 (0002)


Anybody else having this issue?
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! This seems to happen from time to time, but there never seems to be one particular problem that causes it. Usually we end up performing an strace on the spamd process and we'll find that it's hanging on a missing file or some other configuration error. But no, unfortunately I don't have an easy fix as there can be several causes.
 

sparek-3

Well-Known Member
Aug 10, 2002
2,183
285
388
cPanel Access Level
Root Administrator
It looks like the issue was that I had immuted /usr/local/cpanel/3rdparty/bin/spamd at some point (this is why I'm a do as I say, not as I do preacher).

I guess at some point /usr/local/cpanel/3rdparty/bin/spamd became a symlink to /usr/local/cpanel/3rdparty/perl/536/bin/spamd and since my /usr/local/cpanel/3rdparty/bin/spamd was immutable, that symlink was not allowed to be created.

Fixing the symlink SEEMS to have fixed the issue for me, although it sometimes took spamd a while to fail before.