MirrorCache redirects to wrong servers

I have set my zypper to use the new MirrorCache redirector. I'm using the european servers:
https://en.opensuse.org/MirrorCache#Setting_up_MirrorCache_for_your_machine mirrorcache-eu.opensuse.org has European mirrors only
First, I'm being redirected to
https://ftp.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/oss/ why? As far as I know, Japan is not in Europe.
Then I get redirected to
http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/os...
which throws an exception because of the https -> http downgrade:
Retrieving repository 'openSUSE-Tumbleweed-Debug' metadata ...................................................................[error] Repository 'openSUSE-Tumbleweed-Debug' is invalid. [repo-debug|https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/] Valid metadata not found at specified URL> History: - Download (curl) error for 'https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/repodata/1c92b...': Error code: Unsupported protocol or redirect (Location: http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/rep o/oss/repodata/1c92b1536363bed4d5cc8f1d8d54becf1105301e326033601cf10168a3 00da41-primary.xml.gz) Error message: Redirect to protocol "http" not supported or disabled in libcurl> - Can't provide ./repodata/1c92b1536363bed4d5cc8f1d8d54becf1105301e326033601cf10168a300da4 1-primary.xml.gz> Please check if the URIs defined for this repository are pointing to a valid repository
I have tried manually downloading the package index it with cURL:
$ curl -O -v https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/repodata/1c92b... This redirects me to a the japanese host on https (not http).
So why am I being redirected to a japanese server, and why is zypper redirected to http, but not cURL? regards

* Maximilian Trummer <maximilian@trummer.xyz> [07-22-22 14:17]:
I have set my zypper to use the new MirrorCache redirector. I'm using the european servers:
https://en.opensuse.org/MirrorCache#Setting_up_MirrorCache_for_your_machine mirrorcache-eu.opensuse.org has European mirrors only
First, I'm being redirected to
https://ftp.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/oss/ why? As far as I know, Japan is not in Europe.
Then I get redirected to
http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/os...
which throws an exception because of the https -> http downgrade:
Retrieving repository 'openSUSE-Tumbleweed-Debug' metadata ...................................................................[error] Repository 'openSUSE-Tumbleweed-Debug' is invalid. [repo-debug|https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/] Valid metadata not found at specified URL> History: - Download (curl) error for 'https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/repodata/1c92b...': Error code: Unsupported protocol or redirect (Location: http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/rep o/oss/repodata/1c92b1536363bed4d5cc8f1d8d54becf1105301e326033601cf10168a3 00da41-primary.xml.gz) Error message: Redirect to protocol "http" not supported or disabled in libcurl> - Can't provide ./repodata/1c92b1536363bed4d5cc8f1d8d54becf1105301e326033601cf10168a300da4 1-primary.xml.gz> Please check if the URIs defined for this repository are pointing to a valid repository
I have tried manually downloading the package index it with cURL:
$ curl -O -v https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/repodata/1c92b... This redirects me to a the japanese host on https (not http).
So why am I being redirected to a japanese server, and why is zypper redirected to http, but not cURL?
fwiw: you can set *specific* locations in your repo files, baseurl=http://ftp.ussg.iu.edu/linux/opensuse/opensuse/tumbleweed/repo/oss/boot/x86_... https://download.opensuse.org/tumbleweed/repo/oss/ http://download.opensuse.org/tumbleweed/repo/oss/ https://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ http://ftp.ussg.iu.edu/linux/opensuse/tumbleweed/repo/oss/ http://distro.ibiblio.org/opensuse/tumbleweed/repo/oss/ http://suse.mobile-central.org/tumbleweed/repo/oss/ http://ftp.uni-erlangen.de/opensuse/tumbleweed/repo/non-oss/ http://ftp5.gwdg.de/pub/opensuse/tumbleweed/repo/oss/ -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc

On 22.07.2022 21:15, Maximilian Trummer wrote:
I have set my zypper to use the new MirrorCache redirector. I'm using the european servers:
https://en.opensuse.org/MirrorCache#Setting_up_MirrorCache_for_your_machine mirrorcache-eu.opensuse.org has European mirrors only
First, I'm being redirected to
https://ftp.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/oss/ why? As far as I know, Japan is not in Europe.
Then I get redirected to
http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/os...
which throws an exception because of the https -> http downgrade:
Retrieving repository 'openSUSE-Tumbleweed-Debug' metadata ...................................................................[error] Repository 'openSUSE-Tumbleweed-Debug' is invalid. [repo-debug|https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/] Valid metadata not found at specified URL> History: - Download (curl) error for 'https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/repodata/1c92b...': Error code: Unsupported protocol or redirect (Location: http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/rep o/oss/repodata/1c92b1536363bed4d5cc8f1d8d54becf1105301e326033601cf10168a3 00da41-primary.xml.gz) Error message: Redirect to protocol "http" not supported or disabled in libcurl> - Can't provide ./repodata/1c92b1536363bed4d5cc8f1d8d54becf1105301e326033601cf10168a300da4 1-primary.xml.gz> Please check if the URIs defined for this repository are pointing to a valid repository
I have tried manually downloading the package index it with cURL:
$ curl -O -v https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/repodata/1c92b... This redirects me to a the japanese host on https (not http).
So why am I being redirected to a japanese server, and why
Because this is currently the only mirror that has this file?
is zypper redirected to http, but not cURL?
It is not zypper, nor is it opensuse infrastructure. bor@bor-Latitude-E5450:~$ curl -IL https://mirrorcache-eu.opensuse.org/debug/tumbleweed/repo/oss/repodata/1c92b... HTTP/2 302 content-length: 0 date: Fri, 22 Jul 2022 19:52:06 GMT location: https://ftp.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/oss/re... x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block x-content-type-options: nosniff referrer-policy: no-referrer-when-downgrade strict-transport-security: max-age=15768000 HTTP/1.1 302 Found Date: Fri, 22 Jul 2022 19:52:08 GMT Server: Apache/2.4.46 (Unix) OpenSSL/1.0.1e-fips Location: http://ftp-srv2.kddilabs.jp/Linux/packages/opensuse/debug/tumbleweed/repo/os... Content-Type: text/html; charset=iso-8859-1 HTTP/1.1 200 OK Date: Fri, 22 Jul 2022 19:52:09 GMT Server: Apache/2.4.46 (Unix) OpenSSL/1.0.1e-fips Last-Modified: Wed, 20 Jul 2022 00:04:27 GMT ETag: "977ab4-5e431582678c0" Accept-Ranges: bytes Content-Length: 9927348 Content-Type: application/x-gzip bor@bor-Latitude-E5450:~$ So it is mirror itself that redirects from https to http.
participants (3)
-
Andrei Borzenkov
-
Maximilian Trummer
-
Patrick Shanahan