SOLVED [CPANEL-26179] Starting Spamd errors out with The system failed to execute the system call setrlimit

pmcgilli

Registered
Sep 9, 2007
3
0
51
/etc/redhat-release:CentOS release 6.10 (Final)
/usr/local/cpanel/version:11.78.0.16
/var/cpanel/envtype:virtuozzo
CPANEL=release

I recently upgraded MySql from 5.5 to 5.6. I had some issues with roundcube displaying emails in the inbox. Restarting exim seemed to take care of things, but now I get this strange message when it tries to start spamassassin.

I thought that maybe reinstalling spamassassin would solve the problem, but it hasn't.

I saw the following thread on the forums and checked the file, but mine doesn't have any uncommented lines in it:

SOLVED - [CPANEL-23931] The system failed to execute the system call setrlimit error

Full error code below.

Code:
Starting spamd: Cpanel::Exception::SystemCall/(XID ujgc4c) The system failed to execute the system call “setrlimit” (15 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒) because of an error: Invalid argument
 at /usr/local/cpanel/Cpanel/Syscall.pm line 116.
        Cpanel::Syscall::syscall("setrlimit", 15, "\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}") called at /usr/local/cpanel/Cpanel/Sys/Rlimit.pm line 126
        Cpanel::Sys::Rlimit::setrlimit("RTTIME", 18446744073709551615, 18446744073709551615) called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 788
        eval {...} called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 788
        eval {...} called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 773
        Cpanel::ServiceManager::Base::setrlimits(Cpanel::ServiceManager::Services::Spamd=HASH(0x162d8120)) called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 825
        Cpanel::ServiceManager::Base::start(Cpanel::ServiceManager::Services::Spamd=HASH(0x162d8120)) called at /usr/local/cpanel/Cpanel/ServiceManager/Services/Spamd.pm line 221
        Cpanel::ServiceManager::Services::Spamd::start(Cpanel::ServiceManager::Services::Spamd=HASH(0x162d8120)) called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 725
        Cpanel::ServiceManager::Base::restart(Cpanel::ServiceManager::Services::Spamd=HASH(0x162d8120), "graceful", undef) called at /usr/local/cpanel/Cpanel/ServiceManager/Base.pm line 541
        Cpanel::ServiceManager::Base::run_from_argv(Cpanel::ServiceManager::Services::Spamd=HASH(0x162d8120), "--verbose", "--no-verbose") called at bin/restartsrv_base.pl line 120
        scripts::restartsrv_base::__ANON__() called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 97
        eval {...} called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 88
        Try::Tiny::try(CODE(0x162c70c0), Try::Tiny::Catch=REF(0xc0d9c8)) called at bin/restartsrv_base.pl line 160
        scripts::restartsrv_base::run("--no-verbose") called at bin/restartsrv_base.pl line 57
ionice: ioprio_set failed: Operation not permitted
warn [restartsrv_spamd] The 'spamd' service's PID file '/var/run/spamd.pid' did not appear after 10 seconds.

info [restartsrv_spamd] The service 'spamd' failed to restart. Trying '/usr/local/cpanel/3rdparty/perl/528/bin/spamd'.
warn [restartsrv_spamd] The 'spamd' service's PID file '/var/run/spamd.pid' did not appear after 10 seconds.

(XID egkwpe) The “spamd” service failed to start.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hi @pmcgilli

Please feel free to open a ticket using the link in my signature. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hello @pmcgilli

I saw a case get opened for this issue today and realized you'd opened a ticket. Thank you for doing that. It looks like some older kernels are not able to recognize the setrlimit values used for spamassassin. We've opened an internal case CPANEL-26179 setrlimit option RLIMIT_RTTIME not available on older kernel <2.6.25, causing spamd to not start

Now looking at the information available I can say two things:

1. Updating the kernel should resolve the issue as 2.6.25 and after the RLIMIT_RTTIME variable is supported:

setrlimit(2): get/set resource limits - Linux man page
"RLIMIT_RTTIME (Since Linux 2.6.25)

2. Because of the age of the kernel I cannot guarantee this issue will be resolved.


The best solution at this point will be to update the kernel version at the very least to a version which supports this.

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

To follow-up, CPANEL-26179 was marked as by-design because Spamd starts successfully and correctly reports the warning message stemming from the use of an outdated kernel. Upgrading the kernel is the best course of action to address the warning message.

Thank you.