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!

SOLVED Problem with SpamAssassin Update

Discussion in 'E-mail Discussion' started by zuliyomi, Mar 5, 2019.

  1. zuliyomi

    zuliyomi Registered

    Joined:
    Mar 5, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Hi.

    We are having problem to update SpamAssasin.

    [2019-03-04 21:56:19 -0600] E [/usr/local/cpanel/scripts/sa-update_wrapper] The “/usr/local/cpanel/scripts/sa-update_wrapper” command (process 25269) reported error number 255 when it ended.

    Here is the log when we try to update manually:
    Code:
    [root@vps-XXXXXXX-x ~] # /usr/local/cpanel/scripts/sa-update_wrapper
    [*] Cleaning up from previous updates.....
    [*] Running sa-update (/usr/local/cpanel/3rdparty/perl/528/bin/sa-update).....
    [*] Please note that 'IO::Socket::IP' and 'Net::Patricia' are not needed by our implementation of SpamAssassin.
    [*] The warnings related to them can be safely ignored.
    
    Mar 4 17:48:03.777 [2466] dbg: logger: adding facilities: all
    Mar 4 17:48:03.777 [2466] dbg: logger: logging level is DBG
    Mar 4 17:48:03.777 [2466] dbg: generic: SpamAssassin version 3.4.2
    Mar 4 17:48:03.777 [2466] dbg: generic: Perl 5.028000, PREFIX=/usr/local/cpanel/3rdparty/perl/528/lib/perl5, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
    Mar 4 17:48:03.778 [2466] dbg: config: timing enabled
    Mar 4 17:48:03.779 [2466] dbg: config: score set 0 chosen.
    Mar 4 17:48:03.789 [2466] dbg: generic: sa-update version 3.4.2 / svn1840377
    Mar 4 17:48:03.789 [2466] dbg: generic: using update directory: /var/lib/spamassassin/3.004002
    Mar 4 17:48:04.017 [2466] dbg: diag: perl platform: 5.028000 linux
    Mar 4 17:48:04.017 [2466] dbg: diag: [...] module installed: Digest::SHA, version 6.01
    Mar 4 17:48:04.017 [2466] dbg: diag: [...] module installed: HTML::Parser, version 3.72
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] module installed: Net::DNS, version 1.17
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] module installed: NetAddr::IP, version 4.079
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] module installed: Time::HiRes, version 1.9759
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] module installed: Archive::Tar, version 2.30
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] module installed: IO::Zlib, version 1.10
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Digest::SHA1, version 2.13
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: MIME::Base64, version 3.15
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: DB_File, version 1.84
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Net::SMTP, version 3.11
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Mail::SPF, version v2.009
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Geo::IP, version 1.51
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Net::CIDR::Lite, version 0.21
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Razor2::Client::Agent, version 2.84
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: IO::Socket::IP, version 0.39
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: IO::Socket::INET6, version 2.72
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: IO::Socket::SSL, version 2.060
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Compress::Zlib, version 2.074
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Mail::DKIM, version 0.53
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: DBI, version 1.641
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Getopt::Long, version 2.50
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: LWP::UserAgent, version 6.35
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: HTTP::Date, version 6.02
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Encode::Detect::Detector, version 1.01
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module not installed: Net::Patricia ('require' failed)
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: Net::DNS::Nameserver, version 1692
    Mar 4 17:48:04.018 [2466] dbg: diag: [...] optional module installed: BSD::Resource, version 1.2911
    Mar 4 17:48:04.019 [2466] dbg: gpg: Searching for 'gpg'
    Mar 4 17:48:04.019 [2466] dbg: util: current PATH is: /usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/opt/cpanel/composer/bin:/usr/local/bin:/root/.wp-cli/bin
    Mar 4 17:48:04.020 [2466] dbg: util: executable for gpg was found at /usr/bin/gpg
    Mar 4 17:48:04.020 [2466] dbg: gpg: found /usr/bin/gpg
    Mar 4 17:48:04.021 [2466] dbg: gpg: release trusted key id list: 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 0C2B1D7175B852C64B3CDC716C55397824F434CE
    Mar 4 17:48:04.022 [2466] dbg: util: secure_tmpfile created a temporary file /tmp/.spamassassin2466lFcc6ztmp
    Mar 4 17:48:04.022 [2466] dbg: channel: attempting channel updates.spamassassin.org
    Mar 4 17:48:04.022 [2466] dbg: channel: using existing directory /var/lib/spamassassin/3.004002/updates_spamassassin_org
    Mar 4 17:48:04.022 [2466] dbg: channel: channel cf file /var/lib/spamassassin/3.004002/updates_spamassassin_org.cf
    Mar 4 17:48:04.022 [2466] dbg: channel: channel pre file /var/lib/spamassassin/3.004002/updates_spamassassin_org.pre
    Mar 4 17:48:04.023 [2466] dbg: channel: metadata version = 1854245, from file /var/lib/spamassassin/3.004002/updates_spamassassin_org.cf
    Mar 4 17:48:04.037 [2466] dbg: dns: 2.4.3.updates.spamassassin.org => 1854677, parsed as 1854677
    Mar 4 17:48:04.037 [2466] dbg: channel: preparing temp directory for new channel
    Mar 4 17:48:04.038 [2466] dbg: channel: created tmp directory /tmp/.spamassassin2466M1E07Rtmp
    Mar 4 17:48:04.038 [2466] dbg: generic: lint checking site pre files once before attempting channel updates
    Mar 4 17:48:04.038 [2466] dbg: generic: SpamAssassin version 3.4.2
    Mar 4 17:48:04.038 [2466] dbg: generic: Perl 5.028000, PREFIX=/usr/local/cpanel/3rdparty/perl/528/lib/perl5, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
    Mar 4 17:48:04.038 [2466] dbg: config: timing enabled
    Mar 4 17:48:04.040 [2466] dbg: config: score set 0 chosen.
    Mar 4 17:48:04.042 [2466] dbg: ignore: using a test message to lint rules
    Mar 4 17:48:04.042 [2466] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
    Mar 4 17:48:04.049 [2466] dbg: config: read file /etc/mail/spamassassin/init.pre
    Mar 4 17:48:04.050 [2466] dbg: config: read file /etc/mail/spamassassin/v310.pre
    Mar 4 17:48:04.052 [2466] dbg: config: read file /etc/mail/spamassassin/v312.pre
    Mar 4 17:48:04.054 [2466] dbg: config: read file /etc/mail/spamassassin/v320.pre
    Mar 4 17:48:04.055 [2466] dbg: config: read file /etc/mail/spamassassin/v330.pre
    Mar 4 17:48:04.057 [2466] dbg: config: read file /etc/mail/spamassassin/v340.pre
    Mar 4 17:48:04.058 [2466] dbg: config: read file /etc/mail/spamassassin/v341.pre
    Mar 4 17:48:04.058 [2466] dbg: config: using "/tmp/.spamassassin2466M1E07Rtmp/doesnotexist" for sys rules pre files
    Mar 4 17:48:04.058 [2466] dbg: config: using "/tmp/.spamassassin2466M1E07Rtmp/doesnotexist" for default rules dir
    Mar 4 17:48:04.065 [2466] dbg: config: using "/tmp/.spamassassin2466M1E07Rtmp/doesnotexist/doesnotexist" for user prefs file
    config: failed to parse line, skipping, in "/etc/mail/spamassassin/init.pre":
    config: failed to parse line, skipping, in "/etc/mail/spamassassin/v310.pre":
    config: failed to parse line, skipping, in "/etc/mail/spamassassin/v312.pre":
    Mar 4 17:48:04.065 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC
    Mar 4 17:48:04.074 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTTPSMismatch from @INC
    Mar 4 17:48:04.079 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDetail from @INC
    Mar 4 17:48:04.081 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::Shortcircuit from @INC
    Mar 4 17:48:04.083 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::Bayes from @INC
    Mar 4 17:48:04.094 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::BodyEval from @INC
    Mar 4 17:48:04.098 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::DNSEval from @INC
    Mar 4 17:48:04.102 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTMLEval from @INC
    Mar 4 17:48:04.105 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::HeaderEval from @INC
    Mar 4 17:48:04.112 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEEval from @INC
    Mar 4 17:48:04.116 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayEval from @INC
    Mar 4 17:48:04.121 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIEval from @INC
    Mar 4 17:48:04.124 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::WLBLEval from @INC
    Mar 4 17:48:04.128 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
    Mar 4 17:48:04.130 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::Rule2XSBody from @INC
    Mar 4 17:48:04.136 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
    config: failed to parse line, skipping, in "/etc/mail/spamassassin/v330.pre":
    Mar 4 17:48:04.140 [2466] dbg: plugin: loading Mail::SpamAssassin::Plugin::AskDNS from @INC
    Mar 4 17:48:04.143 [2466] dbg: config: finish parsing
    Mar 4 17:48:04.143 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::Rule2XSBody=HASH(0x53fe3a8) implements 'finish_parsing_end', priority 0
    Mar 4 17:48:04.144 [2466] dbg: zoom: loading compiled ruleset from /var/lib/spamassassin/compiled/5.028/3.004002
    Mar 4 17:48:04.144 [2466] dbg: config: score set 0 chosen.
    Mar 4 17:48:04.144 [2466] dbg: dns: EDNS, UDP payload size 4096
    Mar 4 17:48:04.144 [2466] dbg: dns: servers obtained from Net::DNS : [200.58.117.74]:53, [200.58.122.8]:53
    Mar 4 17:48:04.144 [2466] dbg: dns: nameservers set to 200.58.117.74, 200.58.122.8
    Mar 4 17:48:04.144 [2466] dbg: dns: using socket module: IO::Socket::IP version 0.39
    Mar 4 17:48:04.144 [2466] dbg: dns: is Net::DNS::Resolver available? yes
    Mar 4 17:48:04.144 [2466] dbg: dns: Net::DNS version: 1.17
    Mar 4 17:48:04.145 [2466] dbg: config: time limit 300.0 s
    Mar 4 17:48:04.145 [2466] dbg: message: main message type: text/plain
    Mar 4 17:48:04.145 [2466] dbg: message: ---- MIME PARSER START ----
    Mar 4 17:48:04.145 [2466] dbg: message: parsing normal part
    Mar 4 17:48:04.145 [2466] dbg: message: storing a body to memory
    Mar 4 17:48:04.145 [2466] dbg: message: ---- MIME PARSER END ----
    Mar 4 17:48:04.145 [2466] dbg: check: pms new, time limit in 300.000 s
    Mar 4 17:48:04.145 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::DNSEval=HASH(0x50eda20) implements 'check_start', priority 0
    Mar 4 17:48:04.145 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::Rule2XSBody=HASH(0x53fe3a8) implements 'check_start', priority 0
    Mar 4 17:48:04.146 [2466] dbg: check: using scoreset 0 in M:S:Pms
    Mar 4 17:48:04.146 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x4fafe38) implements 'check_main', priority 0
    Mar 4 17:48:04.146 [2466] dbg: config: trusted_networks are not configured; it is recommended that you configure trusted_networks manually
    Mar 4 17:48:04.146 [2466] dbg: metadata: X-Spam-Relays-Trusted:
    Mar 4 17:48:04.146 [2466] dbg: metadata: X-Spam-Relays-Untrusted:
    Mar 4 17:48:04.146 [2466] dbg: metadata: X-Spam-Relays-Internal:
    Mar 4 17:48:04.146 [2466] dbg: metadata: X-Spam-Relays-External:
    Mar 4 17:48:04.147 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::AskDNS=HASH(0x546cee0) implements 'extract_metadata', priority 0
    Mar 4 17:48:04.147 [2466] dbg: dns: is DNS available? 0
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag AUTHORDOMAIN is now ready, value: compiling.spamassassin.taint.org
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag RELAYSTRUSTED is now ready, value:
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag RELAYSUNTRUSTED is now ready, value:
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag RELAYSINTERNAL is now ready, value:
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag RELAYSEXTERNAL is now ready, value:
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag LANGUAGES is now ready, value: <UNDEF>
    Mar 4 17:48:04.147 [2466] dbg: message: no encoding detected
    Mar 4 17:48:04.147 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::Shortcircuit=HASH(0x50af8e0) implements 'parsed_metadata', priority 0
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag SC is now ready, value: CODE(0x54cfd50)
    Mar 4 17:48:04.147 [2466] dbg: check: tagrun - tag SCRULE is now ready, value: CODE(0x54d00b0)
    Mar 4 17:48:04.148 [2466] dbg: check: tagrun - tag SCTYPE is now ready, value: CODE(0x54d0140)
    Mar 4 17:48:04.148 [2466] dbg: rules: local tests only, ignoring RBL eval
    Mar 4 17:48:04.148 [2466] dbg: check: check_main, time limit in 299.997 s
    Mar 4 17:48:04.150 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::Shortcircuit=HASH(0x50af8e0) implements 'have_shortcircuited', priority 0
    Mar 4 17:48:04.150 [2466] dbg: dns: harvest_dnsbl_queries
    Mar 4 17:48:04.151 [2466] dbg: check: is spam? score=0 required=5
    Mar 4 17:48:04.151 [2466] dbg: check: tests=
    Mar 4 17:48:04.151 [2466] dbg: check: subtests=
    Mar 4 17:48:04.151 [2466] dbg: timing: total 108 ms - init: 102 (94.5%), parse: 0.44 (0.4%), extract_message_metadata: 1.53 (1.4%), get_uri_detail_list: 2.6 (2.4%)
    Mar 4 17:48:04.151 [2466] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x4fafe38) implements 'finish_tests', priority 0
    Mar 4 17:48:04.152 [2466] dbg: generic: lint of site pre files failed, cannot continue
    Mar 4 17:48:04.152 [2466] dbg: generic: cleaning up temporary directory/files
    Mar 4 17:48:04.152 [2466] dbg: generic: cleaning directory /tmp/.spamassassin2466M1E07Rtmp
    Mar 4 17:48:04.152 [2466] dbg: diag: updates complete, exiting with code 2
    Cpanel::Exception::ProcessFailed::Error/(XID 3ykzsz) ?/usr/local/cpanel/3rdparty/perl/528/bin/sa-update? reported error code ?2? when it ended:
    at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 149.
    Cpanel::ChildErrorStringifier::die_if_error(Cpanel::SafeRun::Object=HASH(0x28fb9c8)) called at /usr/local/cpanel/scripts/sa-update_wrapper line 53
    main::run_saupdate() called at /usr/local/cpanel/scripts/sa-update_wrapper line 98
    
    How we could solve this problem?
    This happens with CENTOS 6.10 kvm v78.0.13
     
    #1 zuliyomi, Mar 5, 2019
    Last edited by a moderator: Mar 5, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,727
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @zuliyomi

    It may be easiest to try reinstalling it first:

    Can you run the following to get your version of SpamAssassin:

    Code:
    [root@server domlogs]# rpm -qa |grep -i spam
    cpanel-perl-528-Mail-SpamAssassin-3.004002-14.cp1178.x86_64
    Then use the out put to run the following to remove it:

    Code:
    [root@server domlogs]# rpm -e --nodeps cpanel-perl-528-Mail-SpamAssassin-3.004002-14.cp1178.x86_64
    warning: /etc/mail/spamassassin/v320.pre saved as /etc/mail/spamassassin/v320.pre.rpmsave
    warning: /etc/mail/spamassassin/local.cf saved as /etc/mail/spamassassin/local.cf.rpmsave
    And then run the following to reinstall it:
    Code:
    /scripts/check_cpanel_rpms --fix
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. zuliyomi

    zuliyomi Registered

    Joined:
    Mar 5, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Great!!
    Seems to be working fine now.

    Thank you very much.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,727
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @zuliyomi


    I'm really happy to hear that! Thanks for letting us know!
     
    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