Mailing List Archive

curl get fails; MIRRORED.BY claimed empty. But neither is really true
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 [ In reply to ]
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-user@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 [ In reply to ]
On Sat, 24 Oct 2020 21:12:39 -0700
L A Walsh 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...

It not something I know much about, but some people on the list have
advised against installing from CPAN. These installs do seem to create a
disproportionate amount of problems compared with package installs.
Re: curl get fails; MIRRORED.BY claimed empty. But neither is really true [ In reply to ]
On 25 Oct 2020, at 12:06, RW wrote:

> On Sat, 24 Oct 2020 21:12:39 -0700
> L A Walsh 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...
>
> It not something I know much about, but some people on the list have
> advised against installing from CPAN. These installs do seem to create
> a
> disproportionate amount of problems compared with package installs.

A common source of such problems is widespread adoption of the
local::lib module which creates a per-user Perl library tree for each
user of CPAN, even root. If that's not disabled, it can result in
independent module trees with different versions of the same modules,
one of which is used by the system (e.g. by cron) and the others by
individual users in interactive sessions.


--
Bill Cole
bill@scconsult.com or billcole@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
Re: curl get fails; MIRRORED.BY claimed empty. But neither is really true [ In reply to ]
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!