I've been seeing this error recently too.

If I run sa-update from the command line (with debug options), as follows;

sa-update --refreshmirrors -vvvvv -D

I see these messages;

Dec 12 09:11:02.699 [5628] dbg: channel: --refreshmirrors used, forcing
mirrors file refresh on channel updates.spamassassin.org
Dec 12 09:11:02.700 [5628] dbg: channel: DNS lookup on
mirrors.updates.spamassassin.org
DNS TXT query: mirrors.updates.spamassassin.org ->
http://spamassassin.apache.org/updates/MIRRORED.BY
fetching http://spamassassin.apache.org/updates/MIRRORED.BY
Dec 12 09:11:02.711 [5628] dbg: http: url:
http://spamassassin.apache.org/updates/MIRRORED.BY
Dec 12 09:11:02.712 [5628] dbg: http: downloading to:
/var/lib/spamassassin/3.004001/updates_spamassassin_org/MIRRORED.BY, replace
Dec 12 09:11:02.712 [5628] dbg: util: executable for curl was found at
/usr/bin/curl
Dec 12 09:11:02.712 [5628] dbg: http: /usr/bin/curl -s -L -O --remote-time
-g --max-redirs 2 --connect-timeout 30 --max-time 300 --fail -o MIRRORED.BY
-- http://spamassassin.apache.org/updates/MIRRORED.BY
Dec 12 09:11:32.724 [5628] dbg: http: process [5629], exit status: exit 28
http: (curl) GET http://spamassassin.apache.org/updates/MIRRORED.BY, FAILED,
status: exit 28
Dec 12 09:11:32.726 [5628] dbg: channel: no mirror data available for
channel updates.spamassassin.org from
http://spamassassin.apache.org/updates/MIRRORED.BY
error: unable to refresh mirrors file for channel updates.spamassassin.org,
using old file
error: no mirror data available for channel updates.spamassassin.org
channel: MIRRORED.BY file contents were missing, channel failed


It seems there's a timeout when curl attempts to retrieve
http://spamassassin.apache.org/updates/MIRRORED.BY

Note: according to curl man pages, exit code 28 is a timeout.

It seems to be intermittent tho.  If I run 'curl -X GET
http://spamassassin.apache.org/updates/MIRRORED.BY' at the command line,
some times it returns immediate results.  Sometimes it times out.

I've temporarily increased the curl timeout from 30 seconds to 120 seconds
in /usr/bin/sa-update.
I did this by changing the following (found at around line 1472);
    push(@args, qw(-s -L -O --remote-time -g --max-redirs 2
                   --connect-timeout 30 --max-time 300
                   --fail -o), $out_fname_short);
to
    push(@args, qw(-s -L -O --remote-time -g --max-redirs 2
                   --connect-timeout 120 --max-time 300
                   --fail -o), $out_fname_short);

Will see if the error is reported in the next few cron daily updates.



--
Sent from: http://spamassassin.1065346.n5.nabble.com/SpamAssassin-Users-f3.html

Reply via email to