On Wed, Aug 12, 2009 at 01:53:42PM +0200, Peter Poeml wrote:
On Wed, Aug 12, 2009 at 01:48:06PM +0200, Duncan Mac-Vicar Prett wrote:
+ Test Case: + For the testcase set + cat ~/.aria2/aria2.conf header=X-Broken-Mirrors: true + So the redirector gives you broken mirrors. Then observe zypper log and + check that libzypp tries at least zypper.conf's download. + max_silent_tries times before giving up. You will never be able to + download the file by testing this way, as the redirector will only give + you broken mirrors.
That shouldn't be the case.
You _should_ be able to download packages successfully. The broken mirrors are added on top of the metalink, and tried first, but the working mirrors are included as well, and should eventually be used.
Did you not find this happening?
Peter
It clearly works for me: poeml@batavia510 ~ % aria2c --header=X-Broken-Mirrors: http://download.opensuse.org/factory/repo/oss/suse/noarch/bundle-lang-common... 2009-08-13 16:57:29.298836 WARN - You may encounter the certificate verification error with HTTPS server. See --ca-certificate and --check-certificate option. 2009-08-13 16:57:29.310024 NOTICE - Download complete: /suse/poeml/bundle-lang-common-en-11.2-13.1.noarch.rpm.metalink 2009-08-13 16:57:29.314667 ERROR - CUID#7 - Download aborted. URI=http://doesnotexist/repositories/Apache/openSUSE_11.1/Apache.repo Exception: [AbstractCommand.cc:195] URI=http://doesnotexist/repositories/Apache/openSUSE_11.1/Apache.repo -> [HttpSkipResponseCommand.cc:176] The response status is not successful. status=503 2009-08-13 16:57:29.327903 ERROR - CUID#8 - Download aborted. URI=http://www.poeml.de/nonexisting_file_for_libzypp Exception: [AbstractCommand.cc:195] URI=http://www.poeml.de/nonexisting_file_for_libzypp -> [HttpSkipResponseCommand.cc:174] Resource not found 2009-08-13 16:57:29.333877 ERROR - CUID#10 - Download aborted. URI=http://download.opensuse.org/error/ Exception: [AbstractCommand.cc:195] URI=http://download.opensuse.org/error/ -> [HttpSkipResponseCommand.cc:176] The response status is not successful. status=403 2009-08-13 16:57:29.500052 ERROR - CUID#9 - Download aborted. URI=http://ftp.opensuse.org:21/foobar Exception: [AbstractCommand.cc:195] URI=http://ftp.opensuse.org:21/foobar -> [HttpSkipResponseCommand.cc:176] The response status is not successful. status=503 2009-08-13 16:57:29.500792 ERROR - CUID#11 - Download aborted. URI=http://widehat.opensuse.org:22/foobar Exception: [AbstractCommand.cc:195] URI=http://widehat.opensuse.org:22/foobar -> [HttpSkipResponseCommand.cc:176] The response status is not successful. status=503 2009-08-13 16:57:29.692998 NOTICE - Download complete: /suse/poeml/bundle-lang-common-en-11.2-13.1.noarch.rpm Download Results: gid|stat|avg speed |path/URI ===+====+===========+=========================================================== 1| OK| n/a|/suse/poeml/bundle-lang-common-en-11.2-13.1.noarch.rpm.metalink 2| OK| 1.0MiB/s|/suse/poeml/bundle-lang-common-en-11.2-13.1.noarch.rpm Status Legend: (OK):download completed. Which is the whole point of the exercise! Also note that a ':' is needed after the header specified for aria2c. Otherwise it isn't parsed as valid header line by Apache. It looks as if the colon was lost in recent edits of the feature. Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development