Why Spamassassin update fails with channel failed error ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (All Versions)

Issue

  • Why the spamassassin update is failing with following error ?
10-Jun-2023 04:23:39: SpamAssassin: Unknown error code 3 from sa-update channel: no 'mirrors.sought.rules.yerp.org' record found, channel failed
11-Jun-2023 05:53:48: SpamAssassin: Unknown error code 3 from sa-update channel: no 'mirrors.sought.rules.yerp.org' record found, channel failed
12-Jun-2023 04:55:58: SpamAssassin: Unknown error code 3 from sa-update channel: no 'mirrors.sought.rules.yerp.org' record found, channel failed
channel: could not find working mirror, channel failed

Resolution

  • Disable affected channel in spamassassin configuration. Comment out the related lines to disable affected channel.

    # vi /etc/mail/spamassassin/channel.d/sought.conf
    
    # http://wiki.apache.org/spamassassin/SoughtRules
    # CHANNELURL=sought.rules.yerp.org
    # KEYID=6C6191E3
    # Ignore everything below.
    

Root Cause

  • The channel 'sought.rules.yerp.org' has failed as there are no mirrors available.

    14-Jun-2023 05:32:30: SpamAssassin: Update available, but download or extract failed 
    channel: no 'mirrors.sought.rules.yerp.org' record found, channel failed
    channel: could not find working mirror, channel failed
    

Diagnostic Steps

  • On disabling the affected channel run verbose command to see if updates are working with default channel 'updates.spamassassin.org'

    # sa-update --nogpg -v
    
  • The default channel for spamassassin will be used as 'updates.spamassassin.org'.

    Update available for channel updates.spamassassin.org: 1910382 -> 1910422
    http: (curl) GET http://update-site.com/1910422.tar.gz, success
    http: (curl) GET http://update-site.com/1910422.tar.gz.sha512, success
    Update was available, and was downloaded and installed successfully
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments