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.

Spamassassin Update Failed, reinstalling!

Discussion in 'General Discussion' started by Bruce, Jan 18, 2005.

  1. Bruce

    Bruce Well-Known Member

    Joined:
    Oct 4, 2001
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    I have been getting this (Spamassassin Update Failed, reinstalling!) for the past 4 days on two of our servers. Is there a way to disable this update ? Not even using Spamass, to many better alternatives.

    Thanks
     
  2. Jones

    Jones Well-Known Member

    Joined:
    Jul 10, 2004
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    I got this problem too...
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    #3 chirpy, Jan 20, 2005
    Last edited: Jan 20, 2005
  4. Jones

    Jones Well-Known Member

    Joined:
    Jul 10, 2004
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    I want to vote upto 5, hehe but I just vote for 1. My first time to vote.

    I am still experiencing this problem. I did everything but still re-installing...


    Hope they will be able to solve this.
     
  5. brentp

    brentp Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ayr, North Queensland, Australia
    try /scripts/fixspamassassinfailedupdate

    Regards,
    Brent
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Erm, No, that's the script with the bug in it ;)
     
  7. Jones

    Jones Well-Known Member

    Joined:
    Jul 10, 2004
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Yup, and I tried this /scripts/fixspamassassinfailedupdate 20 times...


    No, that is not the solution...


    Until now, spamassassin is still reinstalling again and again...
     
  8. Jones

    Jones Well-Known Member

    Joined:
    Jul 10, 2004
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    I think this is happening only to those who disable their spamassassin.

    Temporary Solution: Patch By Ben From Cpanel

    --- fixspamassassinfailedupdate.orig 2005-01-20 11:25:50.000000000 -0500
    +++ fixspamassassinfailedupdate 2005-01-20 11:29:53.000000000 -0500
    @@ -7,6 +7,11 @@
    use IPC::Open3;
    use RestartSrv;

    +if ( -e "/etc/spamddisable" || -e "/etc/spamdisable" ) {
    + print "SpamAssassin disabled in Service Manager\n";
    + exit();
    +}
    +
    $sa = '/usr/bin/spamassassin';
    if (! -e $sa && -e "/usr/local/bin/spamassassin") {
    $sa = '/usr/local/bin/spamassassin';

    Caution:

    If you run /scripts/updatenow this will wipe the patch again :-(


    We need another solution for this.


    Jones
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Well, that is the solution, we've just got to wait for it to get into EDGE.
     
  10. mr.wonderful

    mr.wonderful BANNED

    Joined:
    Feb 1, 2004
    Messages:
    345
    Likes Received:
    0
    Trophy Points:
    0
    Its happening with Edge too.

    Hostname Virtual Host is already setup
    PHP version file is up to date
    Spamassassin Update Failed, reinstalling!
    Testing connection speed...(this could take a while)....Done
    Three usable mirrors located
    Mirror Check passed for ftp.sedl.org
    CPAN: Storable loaded ok
    Going to read /home/.cpan/Metadata
    Database was generated on Fri, 21 Jan 2005 01:50:12 GMT
    Running install for module Mail::SpamAssassin
    Running make for F/FE/FELICITY/Mail-SpamAssassin-3.0.2.tar.gz
    CPAN: Digest::MD5 loaded ok
    CPAN: Compress::Zlib loaded ok
    Checksum for /home/.cpan/sources/authors/id/F/FE/FELICITY/Mail-SpamAssassin-3.0.2.tar.gz ok

    etc
     
  11. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    mr.wonderful, did you updatenow first ?

    Either way, if you apply the above patch and chattr +i ( untill a fix is released in your build ) that should help out for the time being. Works for me.
     
  12. Bruce

    Bruce Well-Known Member

    Joined:
    Oct 4, 2001
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    (I think this is happening only to those who disable their spamassassin)

    Yes, that is correct. If you enable SPAS, the updates stop. If you just disable it in tweak settings it stops but as soon as you disable it in (both) the Server Manager, it starts to update and never stops
     
  13. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    This issue is resolved in Edge builds.
     
  14. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Ben, many thanks :)
     
  15. Vatoloco

    Vatoloco Well-Known Member

    Joined:
    Jun 21, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    How do we apply that patch?
     
  16. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should be able to get the patched script now with:

    /scripts/updatenow

    If not, do the following:

    1. cd /scripts/

    2. create a file called sa.patch and add the patch text mentioned above.

    3. patch fixspamassassinfailedupdate sa.patch
     
  17. Vatoloco

    Vatoloco Well-Known Member

    Joined:
    Jun 21, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Thanks! I noticed they said it was resolved in EDGE builds. I have my update preferences set for RELEASE tree, so I'll just do the patch.

    I get this message though when applying the patch:

    patch: **** malformed patch at line 4: use IPC::Open3;


    One more question, it was mentioned to "apply the above patch and chattr +i". What is chattr +i and how do I do that? Just type chattr +i at the prompt or does that mean I need to do chattr +i /scripts/fixspamassassinfailedupdate ?
     
    #17 Vatoloco, Jan 27, 2005
    Last edited: Jan 27, 2005
  18. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Where'd Bens post go ;)

    chattr +i (man chattr) enables the immutable flag on a file. The immutable flag prevents deletion or writing to a file, even by root. The only way to write/delete it is to remove the chattr immutable flag first with chattr -i, e.g.:

    chattr +i filename

    However, setting the immutable flag on files that cPanel updates is not a good idea as this can break somethings and prevents you getting updates to those files too.
     
  19. KimBO

    KimBO Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Hello...

    is these bug also at the user prefs for the user own spam definitions... this doesnt work at one from our servers... you can write whatever you want, but it will not be recognised...

    Greetings.. KimBO
     
  20. mvhost

    mvhost Active Member

    Joined:
    Sep 23, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    My problem with Spamassassin Update Failed

    Hi,

    I am having this problem with upcp (Spamassassin Update Failed, reinstalling!). And now I naum obtain to apply patch,

    I appear the error message: "patch: **** malformed patch at line 4: use IPC::Open3;"

    What I must make to correct this?
    Already exists some definitive correction for this problem?


    Regards,

    Fernando Freitas
     
Loading...

Share This Page