Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] bad mirroring

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Thomas Orgis <thomas-forum AT orgis.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] bad mirroring
  • Date: Tue, 28 Apr 2015 09:25:30 +0200

Hi,

I am updating a system with a variety of spells from the past decade
and am also stumbling over download troubles. One thing is figuring out
sorcery's mirror selection: For xml-twig It tries the configured
PERL_CPAN_URL and then a bunch of others, finally dropping to the
overall default fallback mirror of home.shlrm.org/sourcemage/fallback/.

But I have this in /etc/sorcer/local/url:


sh# cat /etc/sorcery/local/url
FALLBACK_URL_MIRROR[0]="http://mirror.sobukus.de/src";

SOURCEFORGE_URL="${SOURCEFORGE_URL:-http://switch.dl.sourceforge.net/sourceforge}";

PERL_CPAN_URL="${PERL_CPAN_URL:-ftp://ftp.fu-berlin.de/unix/languages/perl}";


It worked before that this uses my own server as fallback mirror. Not
this time. I changed sorcery versions in between and am now on stable.
Am I relying on a devel feature?

Oh, apparently. Switching to devel sorcery makes it pick up my mirror.
Can we please port that feature to stable?

Anyhow, what I want to complain about is home.shlrm.org. It says 200 OK
and then delivers a 404 page to wget:

shell$ wget http://home.shlrm.org/sourcemage/fallback/XML-Twig-3.46.tar.gz
--2015-04-28 09:11:12--
http://home.shlrm.org/sourcemage/fallback/XML-Twig-3.46.tar.gz
Resolving home.shlrm.org (home.shlrm.org)... 173.174.142.231
Connecting to home.shlrm.org (home.shlrm.org)|173.174.142.231|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 319 [application/octet-stream]
Saving to: 'XML-Twig-3.46.tar.gz.3'

XML-Twig-3.46.tar.gz.3
100%[====================================================================================================================>]
319 --.-KB/s in 0s

2015-04-28 09:11:13 (15.7 MB/s) - 'XML-Twig-3.46.tar.gz' saved [319/319]
shell$ file XML-Twig-3.46.tar.gz
XML-Twig-3.46.tar.gz: HTML document, ASCII text

That confuses sorcery as this is a HTML file with "404 Not Found" in
it. Correct behaviour should be that, right?

shell$ wget http://mirror.sobukus.de/XML-Twig-3.46.tar.gzz
--2015-04-28 09:11:24-- http://mirror.sobukus.de/XML-Twig-3.46.tar.gzz
Resolving mirror.sobukus.de (mirror.sobukus.de)... 176.9.85.107
Connecting to mirror.sobukus.de (mirror.sobukus.de)|176.9.85.107|:80...
connected.
HTTP request sent, awaiting response... 404 Not Found
2015-04-28 09:11:24 ERROR 404: Not Found.


On the other hand, it happens not so rarely nowadays that "helpful"
download sites produce a human-readable HTML message when a file is not
found. Perhaps we should summon in a smarter way, checking that we only
got a sorry note and download from a different server.

But at least our own servers should not confuse sorcery, right?


Alrighty then,

Thomas

Attachment: pgpHQkOnyi2Yq.pgp
Description: Digitale Signatur von OpenPGP




Archive powered by MHonArc 2.6.24.

Top of Page