[Bug 1192433] New: zypper ipv6 problem
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 Bug ID: 1192433 Summary: zypper ipv6 problem Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService Assignee: screening-team-bugs@suse.de Reporter: werwolf131313@gmail.com QA Contact: adrian.schroeter@suse.com Found By: --- Blocker: --- if the system contains ipv6 (on my machine is hurricane electrics tunnel) zypper gets errors often (to many redirects or content size), but if i ``` export ZYPP_MEDIA_CURL_IPRESOLVE=4 ``` before run zypper then there is no problem P.S.: sorry for my english -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 Dmitry Markov <werwolf131313@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werwolf131313@gmail.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 Andreas Stieger <Andreas.Stieger@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|BuildService |libzypp Version|unspecified |Current Assignee|screening-team-bugs@suse.de |zypp-maintainers@suse.de Product|openSUSE.org |openSUSE Tumbleweed Target Milestone|--- |Current QA Contact|adrian.schroeter@suse.com |qa-bugs@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c1 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(werwolf131313@gma | |il.com) --- Comment #1 from Michael Andres <ma@suse.com> --- Dimitry, please export ZYPP_MEDIA_CURL_DEBUG=2 Do _not_ set ZYPP_MEDIA_CURL_IPRESOLVE and let a few errors occur. Then attach the /var/log/zypper.log here. We'll check the log then. Maybe they reveal soemthing, but it may also be an issue in your IPV6 environment. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c2 --- Comment #2 from Dmitry Markov <werwolf131313@gmail.com> --- I tried for half a day, but the only thing I get is this: Warning: Digest verification failed for file 'wine-gecko-2.47.2-65.17.noarch.rpm' I will return when the problem recurs, it is floating and does not happen regularly, but it will definitely repeat itself within a week, maybe two. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c3 --- Comment #3 from Dmitry Markov <werwolf131313@gmail.com> --- Created attachment 853636 --> http://bugzilla.opensuse.org/attachment.cgi?id=853636&action=edit Curl error 47 Maximum (6) redirects followed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c4 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(werwolf131313@gma | |il.com) | --- Comment #4 from Michael Andres <ma@suse.com> ---
grep -B 1 'redirects' zypper.log
Shows a typical redirection sequence like this:
URL: https://download.opensuse.org/repositories/network/openSUSE_Tumbleweed/x86_6... redirecting to location: https://mirrorcache.opensuse.org/repositories/network/openSUSE_Tumbleweed/x86_64/nextcloud-desktop-dolphin-3.3.6-52> redirecting to location: https://mirrorcache-us.opensuse.org/repositories/network/openSUSE_Tumbleweed/x86_64/nextcloud-desktop-dolphin-3.3.6> redirecting to location: https://provo-mirror.opensuse.org/repositories/network/openSUSE_Tumbleweed/x86_64/nextcloud-desktop-dolphin-3.3.6-5>
And sometimes all of a sudden it starts looping:
URL: https://download.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumblew... redirecting to location: https://mirrorcache.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.> redirecting to location: https://mirrorcache-us.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-> redirecting to location: https://mirrorcache.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.> redirecting to location: https://mirrorcache-us.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-> redirecting to location: https://mirrorcache.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.> redirecting to location: https://mirrorcache-us.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-> redirecting to location: https://mirrorcache.opensuse.org/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.> curl error: 47: Maximum (6) redirects followed, temp file size 0 bytes.
This is IMO nothing zypp/libcurl can influence. It almost looks like mirrorcache-us.opensuse.org sometimes redirects back to mirrorcache.opensuse.org and then it loops... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c5 --- Comment #5 from Dmitry Markov <werwolf131313@gmail.com> --- While I have been able to catch only this problem, there are others. But let me remind you that they stop if I disable ipv6. I wrote in he, so far, they are sure that it's not about them. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c6 Andrii Nikitin <andrii.nikitin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrii.nikitin@suse.com --- Comment #6 from Andrii Nikitin <andrii.nikitin@suse.com> --- Currently download.opensuse.org uses two different redirectors for https and http requests: http - old one MirrorBrain https - new one MirrorCache Somehow your IP is resolved differently on different mirrorcache instances, this should be possible to fix on Thursday. Just in case you can compare country resolved using commands below - which ones are incorrect?: curl -6 http://mirrorcache.opensuse.org/rest/myip curl -6 http://mirrorcache-us.opensuse.org/rest/myip curl -4 http://mirrorcache.opensuse.org/rest/myip curl -4 http://mirrorcache-us.opensuse.org/rest/myip There are two immediate workarounds: 1. use http instead of https - old redirector shouldn't have this issue. 2. Add ?COUNTRY=us at the and of baseurl in *.repo files, e.g. baseurl=https://download.opensuse.org/repositories/network/openSUSE_Tumbleweed/?COUN... Let me know if you need assistance with 1 or 2. You can also report similar problems at https://github.com/openSUSE/MirrorCache/issues -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c7 Dmitry Markov <werwolf131313@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(andrii.nikitin@su | |se.com) --- Comment #7 from Dmitry Markov <werwolf131313@gmail.com> ---
[werwolf@home] ~ ��� curl -6 http://mirrorcache.opensuse.org/rest/myip {"country":"US","ip":"XXX:XXX:XXX:XXX","region":"NA"} [werwolf@home] ~ ��� curl -6 http://mirrorcache-us.opensuse.org/rest/myip {"country":"US","ip":"XXX:XXX:XXX:XXX","region":"NA"} [werwolf@home] ~ ��� curl -4 http://mirrorcache.opensuse.org/rest/myip {"country":"RU","ip":"YYY.YYY.YYY.YYY","region":"EU"} [werwolf@home] ~ ��� curl -4 http://mirrorcache-us.opensuse.org/rest/myip {"country":"RU","ip":"YYY.YYY.YYY.YYY","region":"EU"}
maybe the problem is that "region":"NA" in ipv6 answer? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c8 --- Comment #8 from Andrii Nikitin <andrii.nikitin@suse.com> --- Exactly, if country and region are correct when you try your IPv6 at https://www.maxmind.com/en/geoip-demo or https://www.maxmind.com/en/locate-my-ip-address - then it is just an outdated Geo database at mirrorcache. (Which is likely and could be fixed tomorrow). Otherwise you should report the problem at https://support.maxmind.com/geoip-data-correction-request/ , so you are not redirected to the NA instance. In any case the redirection loop shouldn't happen, it should be fixed tomorrow as well. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c9 --- Comment #9 from Andrii Nikitin <andrii.nikitin@suse.com> --- So looking at the MirrorCache logs - it looks zypper connected to mirrorcache.o.o using IPv6 , so the country was detected as US and the request was redirected to mirrorcache-us.o.o . But then for some reasons zypper connected there using IPv4 (see ipv4 column below), so country was detected as RU and the request was sent back. ``` mirrorcache> select path, country, dt, ipv4 from stat where dt between '2021-11-09 15:27:00' and '2021-11-09 15:27:59' and path like '/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16%' order by id desc; path | country | dt | ipv4 --------------------------------------------------------------------------------------------------+---------+---------------------+------ /repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.49.x86_64.rpm | us | 2021-11-09 15:27:12 | f /repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.49.x86_64.rpm | us | 2021-11-09 15:27:13 | f /repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.49.x86_64.rpm | us | 2021-11-09 15:27:13 | f ``` ``` mirrorcache-us> select path, country, dt, ipv4 from stat where dt between '2021-11-09 15:27:00' and '2021-11-09 15:27:59' and path like '/repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16%' order by id desc; path | country | dt | ipv4 --------------------------------------------------------------------------------------------------+---------+---------------------+------ /repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.49.x86_64.rpm | ru | 2021-11-09 15:27:13 | t /repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.49.x86_64.rpm | ru | 2021-11-09 15:27:13 | t /repositories/home:/Dead_Mozay/openSUSE_Tumbleweed/x86_64/gnome-firmware-3.36.0-16.49.x86_64.rpm | ru | 2021-11-09 15:27:13 | t ``` I agree that the loop shouldn't occur even when such strange behavior happens. I will change the behavior, so only mirrorcache.o.o may redirect to regional instance and never in opposite direction. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1192433 http://bugzilla.opensuse.org/show_bug.cgi?id=1192433#c10 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Flags|needinfo?(andrii.nikitin@su | |se.com) | --- Comment #10 from Michael Andres <ma@suse.com> --- Closing it. Please re-open if the issue persists. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com