You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Kevin A. McGrail" <km...@apache.org> on 2020/10/25 14:58:05 UTC

Re: curl get fails; MIRRORED.BY claimed empty. But neither is really true

This sounds like a path issue and you have two versions of SA installed.
One perhaps from a package manager like yum or apt and another from cpan.
Your root installation likely has a different path, hence the discrepancy.
And sa-update rights to /var/lib/spamassassdin by default so likely a
non-privileged user can't overwrite the MIRRORED.BY file.

Hope this helps.

Regards,
KAM
--
Kevin A. McGrail
Member, Apache Software Foundation
Chair Emeritus Apache SpamAssassin Project
https://www.linkedin.com/in/kmcgrail - 703.798.0171


On Sun, Oct 25, 2020 at 12:13 AM L A Walsh <sa...@tlinx.org> wrote:

> On 2020/10/18 09:22, L A Walsh wrote:
> > On 2020/10/17 15:58, RW wrote:
> >
> >> Probably a networking problem at the time sa-update ran.
> >> status: 1792 decodes to a curl error code of 7 "Failed to connect to
> >> host".
> >> I suspect it's a bug that 1792 wasn't decoded.
> ----
> Reinstalled from CPAN...getting same  _verbiage_  but isn't true.
>
>
> dbg info (slightly trimmed) vs. "reality":
> 3:06:28 [77] dbg: channel: protocol family available: inet; force inet
> 3:06:28 [77] dbg: channel: --refreshmirrors used, forcing mirrors file
> refresh on channel updates.spamassassin.org
> 3:06:28 [77] dbg: channel: DNS lookup on mirrors.updates.spamassassin.org
> 3:06:29 [77] dbg: http: url:
> http://spamassassin.apache.org/updates/MIRRORED.BY
> 3:06:29 [77] dbg: http: downloading to:
> /var/lib/spamassassin/3.004004/updates_spamassassin_org/MIRRORED.BY,
> replace
> 3:06:29 [77] dbg: util: executable for curl was found at /usr/bin/curl
> 3:06:29 [77] dbg: http: /usr/bin/curl -s -L -O --remote-time -g
> --max-redirs 2 --connect-timeout 30 --max-time 300 --fail -o MIRRORED.BY
> -4 -- http://spamassassin.apache.org/updates/MIRRORED.BY
> 3:06:29 [77] 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
>
> ------
> Looking in the download dir:
> /var/lib/spamassassin/3.004004/updates_spamassassin_org, I see MIRRORED.BY
> with 1401 bytes in it (not empty).
>
> There i tried d/l w/wget -- worked fine -- actually said file on server was
> not newer than local copy, so it didn't d/l it (FWIW, I'm not going
> through a
> proxy).
>
> Then I tried curl.  It worked as well (exit status of 0).  Just to ensure
> it
> really was downloading the file, I tried same command but in a tmp dir and
> it downloaded the same file (1401 bytes), status=0.
>
> *cough*...just tried it again now rerunning sa-update as root
> curl is working but am getting a version mismatch:
>
> ===================
> Oct 24 20:54:45.081 [97694] dbg: plugin: did not register
> Mail::SpamAssassin::Plugin::VBounce, already registered
> Oct 24 20:54:45.082 [97694] dbg: plugin: did not register
> Mail::SpamAssassin::Plugin::ImageInfo, already registered
> Oct 24 20:54:45.082 [97694] dbg: plugin: did not register
> Mail::SpamAssassin::Plugin::Rule2XSBody, already registered
> Oct 24 20:54:45.082 [97694] dbg: plugin: loading
> Mail::SpamAssassin::Plugin::AskDNS from @INC
> config: configuration file
> "/tmp/.spamassassin97694UzqVBBtmp/20_advance_fee.cf" requires version
> 3.004000 of SpamAssassin, but this is code version 3.004004. Maybe you
> need to use the -C switch, or remove the old config files? Skipping this
> file at /usr/lib/perl5/site_perl/5.16/Mail/SpamAssassin/Conf/Parser.pm
> line 408.
> config: configuration file
> "/tmp/.spamassassin97694UzqVBBtmp/20_advance_fee.cf" requires version
> 3.004000 of SpamAssassin, but this is code version 3.004004. Maybe you
> need to use the -C switch, or remove the old config files? Skipping this
> file
> Oct 24 20:54:45.097 [97694] dbg: config: cleared tld lists
> -----------------
>
> The current version on CPAN seems to be 3.4.4 -- where in my config
> would it be saying to use the 3.4.0 ruleset?
>
>
> Thanks again *sigh*....
>
>
>
>
>
>
>
>
>

Re: curl get fails; MIRRORED.BY claimed empty. But neither is really true

Posted by "Linda A. Walsh" <sa...@tlinx.org>.

On 2020/10/25 07:58, Kevin A. McGrail wrote:
> This sounds like a path issue and you have two versions of SA 
> installed.  
----
	Yeah, sorta.

> One perhaps from a package manager like yum or apt and 
> another from cpan.
----
	Both by me, but I didn't know the "sa-<binaries>" ignored
where they were installed/invoked from.


>  Your root installation likely has a different path, 
> hence the discrepancy.  
---
	Oddly enough, not -- mostly to prevent probs like this.


> And sa-update rights to /var/lib/spamassassdin 
> by default so likely a non-privileged user can't overwrite the 
> MIRRORED.BY <http://MIRRORED.BY> file.
---

	My normal login has the correct access rights.  It's in
the spamd group.


> Hope this helps.
---

	Indeed!  Before I could tell you there was no possibility of that, 
I had to check & used locate to find all copies of 'sa-update' and weeded out
the backups. Then found the prob -- sorta...In order not to hve
to duplicate explain, will put that in a different note.

Thanks again!