The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

spamd on server.xxxxx.xxx has failed

Discussion in 'E-mail Discussions' started by keddie, May 29, 2008.

  1. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    At around midnight last night, spamd failed, unleashing rolex watches and products for extending the usual parts of the anatomy on myself and my clients.

    I now get an email roughly every 10 minutes with the subject:

    "spamd on server.xxxxx.xxx has failed"

    When I try to start spamd manually via SSH, I get the following output:

    Errno architecture (i686-linux-2.6.9-023stab037.3-entnosplit) does not match executable architecture (i686-linux-2.6.18-ovz028stab053.4-enterprise) at /us r/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
    Compilation failed in require at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket.pm line 17.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket.pm line 17.
    Compilation failed in require at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket/INET.pm line 11.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket/INET.pm line 11.
    Compilation failed in require at ./spamd line 46.
    BEGIN failed--compilation aborted at ./spamd line 81.

    I am running the following:

    WHM 11.23.0 cPanel 11.23.1-R24893
    CENTOS Enterprise 4.6 i686 on virtuozzo - WHM X v3.1.0

    Any help would be gratefully received!

    Ked
     
  2. dwayrynen

    dwayrynen Member

    Joined:
    Jun 19, 2002
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Same here - about midnight updates were applied to a system that has "never update" turned on.

    Can someone from cpanel explain how a system that has never update can update itself and break things?

    Thanks!

    Darin
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I recommend anyone experiencing these issues (either of the issues mentioned), please let our technical analysts look into this for you: http://tickets.cpanel.net/submit
     
  4. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Ok,

    Compilation failed in require at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket.pm line 17.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket.pm line 17.
    Compilation failed in require at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket/INET.pm line 11.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket/INET.pm line 11.

    the lines point to the code:

    use errno

    Something in errno.pm seems to be broken. After backing this file up and deleting it, spamd now runs.

    The timing of this fits around the last automated cpanel update. This leads me to think that errno has been created / replaced and thrown a spanner in the works somehow.
     
  5. ddent

    ddent Member

    Joined:
    Apr 8, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    We had this problem show up today as well. Fix was the following:

    /scripts/perlinstaller Errno
     
  6. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Same problem last night at 3am (all the way until 4am when I finally woke to the constant beeping of my mobile).

    Using current - as there were a lot of changes in the version recently, I'm not totally surprised at this.

    Reinstallig SA fixed my error.

    I have yet to do another /scripts/upcp --force to see if SA breaks again (as it has since VPS Optimised, on my dedicated >_<), which has required a reinstall of SA each update - removing previous SA directories to ensure a clean install.
     
  7. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    The latest RELEASE build has this change:



    Added /scripts/fix_sa_compile script to autocorrect Errno.pm problems
    and invoke it before running sa-compile in update_sa_rules
     
  8. GarnetR

    GarnetR Member

    Joined:
    Aug 8, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    So what exactly is the fix?

    I tried running all of these:

    /scripts/perlinstaller Errno
    /scripts/fix_sa_compile
    update_sa_rules

    But I am still getting the errors. Do I also need to reinstall SA? What are the exact steps to do that? - Thanks....

    I also tried running /scripts/fixspamassassinfailedupdate, but even after running it, service status shows spamd failed, and running it again, starts with the same messages:

    cp4:~ # /scripts/fixspamassassinfailedupdate
    Mail::SpamAssassin::Plugin::Rule2XSBody test passed: enabled
    Config File Count: 53
    Spamassassin Update Failed, reinstalling!

    ----------
    At the bash prompt, I tried just running

    spamd &

    I now see lots of messages to my console about Spamd getting connections, etc. The /etc/rc.d/spamd script doesn't seem to do anything, but just calling spamd directly seems to have started it... A few minutes later the service status is showing green.
     
    #8 GarnetR, Jun 3, 2008
    Last edited: Jun 3, 2008
  9. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
  10. rockster

    rockster Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Spamd down since upgrade

    we have a server with the planet that was put back online and we updated cpanel. Since the update, we cannot get spamd running. upgraded from stable to to current. The Planet is still working on restoring to line 3000 servers.. anyone have an idea or can point us...
     
  11. ToddShipway

    ToddShipway Well-Known Member

    Joined:
    Nov 13, 2006
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    Could you open a ticket at https://tickets.cpanel.net/submit/ and send me the ticket ID and we will help get this resolved for you.
     
  12. rockster

    rockster Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Thanks!

    Thanks cPanelTodd.. I have tried everything for two days. I sent a dm with number.
     
  13. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    To reinstall I do pretty much the following (ensuring that I delete any left-over SA stuff before I start).

    Please check these out for yourself - before using them.
    Code:
    killall spamd
    cd /var/lib/
    rm -rf spamassassin
    cd /usr/share/spamassassin
    rm -rf *
    /scripts/perlinstaller --force Mail::SpamAssassin
    /etc/init.d/exim restart
    tail -f /var/log/maillog|grep spamd
    /scripts/restartsrv_spamd --status
    
    Basically - Stop any running spam services, remove SA directories, install SA, restart Exim, check that spamd is behaving in the mail log and ensure that the status of SA reports back proper settings.

    :)
     
  14. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    changed to Stable build from WHM and then ran

    /scripts/upcp --force

    from SSH. Spamassassin working fine after that.
     
  15. ToddShipway

    ToddShipway Well-Known Member

    Joined:
    Nov 13, 2006
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    I'd like to ask you to submit a ticket at https://tickets.cpanel.net/submit/index.cgi?reqtype=tickets if you continue to experience this issue on RELEASE or CURRENT builds. We would like to take a look at the issue further to be sure it doesn't re-occur.
     
Loading...

Share This Page