Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'E-mail Discussion' started by pmcgilli, Mar 11, 2019.

  1. pmcgilli

    pmcgilli Registered

    Joined:
    Sep 9, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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.
    
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice