Encountering various problems with SpamAssassin on one server recently - it's crashing at LEAST every 2 hours and the "FAILED" notification EMail doesn't provide any useful information as to why, just this message:
I haven't been able find any useful info by Google'ing those error messages.
I also have a training script that runs every 24 hours to train SA on a set of folders containing spam messages - and the cron notification EMails now contain more error message than actual useful output, E.g.:
I found a few references via Google to a "/scripts/fixspamassassinfailedupdate" script - but that command fails, so it appears to no longer be included with CPanel. The only option I could find that looks like it might work is forcibly reinstalling SpamAssassin... but even the command to do that fails with a bunch of cryptic error messages that are likely useless to anyone who isn't a Perl dev:
Is there any fix/workaround for this comedy of errors?
Code:
"Died at /usr/local/cpanel/Cpanel/ServiceManager/Services/Spamd.pm line 188.
...propagated at /usr/local/cpanel/Cpanel/ServiceManager/Services/Spamd.pm line 200.
The subprocess “/usr/local/cpanel/scripts/restartsrv_spamd” reported error number 69 when it ended."
I also have a training script that runs every 24 hours to train SA on a set of folders containing spam messages - and the cron notification EMails now contain more error message than actual useful output, E.g.:
Code:
"SPAM (learn_spam):
Checking read messages to learn SPAM: Bareword found where operator expected at /usr/local/cpanel/Cpanel/IP/Collapse.pm line 10, near "tr/://dr"
Unquoted string "r" may clash with future reserved word at /usr/local/cpanel/Cpanel/IP/Collapse.pm line 10.
plugin: failed to parse plugin /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm: syntax error at /usr/local/cpanel/Cpanel/IP/Collapse.pm line 10, near "tr/://dr "
Compilation failed in require at /usr/local/cpanel/Cpanel/IP/Convert.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/IP/Convert.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/Net/P0f.pm line 13.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Net/P0f.pm line 13.
Compilation failed in require at /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm line 52.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm line 53.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/PluginHandler.pm line 109."
Code:
"Search pattern not terminated at /usr/local/cpanel/Cpanel/LoadFile/ReadFast.pm line 100.
Compilation failed in require at /usr/local/cpanel/Cpanel/LoadFile.pm line 13.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/LoadFile.pm line 13.
Compilation failed in require at /usr/local/cpanel/Cpanel/CachedCommand.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/CachedCommand.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/Install.pm line 74."
Last edited by a moderator: