[Bug 698926] New: zypper fails to connect to the OBS repository when IPv6 DNS entries enabled
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c0 Summary: zypper fails to connect to the OBS repository when IPv6 DNS entries enabled Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: anixx@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.19) Gecko/20110420 SUSE/2.0.14-2.1 SeaMonkey/2.0.14 Today is the world's IPv6 testing day. It means all sites enabled IPv6 DNS entries, including download.opensuse.org. But my provider does not provide IPv6 access. Zypper does not know about it and fails to connect to the repositories, saying the network is unreachable. It does not attempt to connect using IPv4 address. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c1 --- Comment #1 from Ilya Chernykh <anixx@opensuse.org> 2011-06-08 23:39:35 UTC --- anixx@anixx-desktop:~> sudo zypper rm totem anixx's password: Ошибка загрузки (curl) 'http://download.opensuse.org/repositories/X11:/Compiz/openSUSE_11.4/repodata...': Код ошибки: Connection failed Сообщение об ошибке: Failed to connect to 2001:67c:2178:8::13: Сеть недоступна -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c2 --- Comment #2 from Ilya Chernykh <anixx@opensuse.org> 2011-06-08 23:52:18 UTC --- I disabled IPv6 in Yast but it does not help: I cannot update the system now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c3 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #3 from Michael Andres <ma@novell.com> 2011-06-09 11:09:49 CEST --- Please attach the zypper logfile /var/log/zypper.log (or an older /var/log/zypper.log-YYYYMMDD.bz2) that shows the reported behavior. You can execute 'grep main.cc /var/log/zypper.log' (or 'zgrep main.cc /var/log/zypper.log-YYYYMMDD.bz2') to see execution dates and commands the log contains. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c4 --- Comment #4 from Ilya Chernykh <anixx@opensuse.org> 2011-06-09 09:28:50 UTC --- My zypper.log takes 1.3 GB. I cannot attach it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c5 --- Comment #5 from Ilya Chernykh <anixx@opensuse.org> 2011-06-09 09:33:43 UTC --- And I cannot open it in any editor. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c6 --- Comment #6 from Michael Schröder <mls@novell.com> 2011-06-09 09:42:48 UTC --- Delete the old file before you run zypper. Zypper just appends to the file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c7 --- Comment #7 from Ilya Chernykh <anixx@opensuse.org> 2011-06-09 09:58:39 UTC --- If I delete the file, how could I reproduce this bug? IPv6 testing day is over. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c8 --- Comment #8 from Ilya Chernykh <anixx@opensuse.org> 2011-06-09 10:07:23 UTC --- Created an attachment (id=433723) --> (http://bugzilla.novell.com/attachment.cgi?id=433723) final part of the log Well this is the final part of the log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c9 --- Comment #9 from Ilya Chernykh <anixx@opensuse.org> 2011-06-09 10:08:36 UTC --- Also note t5hat this problem was experienced by other people as well: http://forums.opensuse.org/english/get-technical-help-here/network-internet/... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c10 --- Comment #10 from Michael Andres <ma@novell.com> 2011-06-10 11:25:26 CEST --- (In reply to comment #5)
And I cannot open it in any editor.
JFYI: This is what you can try, if the logfile is too big: - Execute 'grep main.cc /var/log/zypper.log' this will show you the 'Hi, me zypper..' lines followed by the command that was executed: 2011-06-09 14:37:26 <1> fibonacci(15841) \ [zypper] main.cc(main):75 ===== Hi, me zypper 1.6.9... 2011-06-09 14:37:26 <1> fibonacci(15841) \ [zypper] main.cc(main):76 ===== '/Local/ma/zypp/BUILD/zypper/src/zypper' \ 'up' 'fate' ===== - If you can identify the command that went wrong, look at the 'HOSTNAME(PID)' at the beginning of the line that shows the command. Here it's fibonacci(15841)' Then execute 'grep "fibonacci(15841)" /var/log/zypper.log >/tmp/my-zypper.log' /tmp/my-zypper.log will then contain the log of this zypper command only. - If you just know the date (like '2011-06-09') you can grep for all command of this day: 'grep "^2011-06-09" /var/log/zypper.log >/tmp/my-zypper.log' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c11 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |anixx@opensuse.org --- Comment #11 from Michael Andres <ma@novell.com> 2011-06-10 11:26:41 CEST --- Now as IPv6 testing day is over, does it work for you again, or does it still fail? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c12 Ilya Chernykh <anixx@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|anixx@opensuse.org | --- Comment #12 from Ilya Chernykh <anixx@opensuse.org> 2011-06-10 10:05:24 UTC --- Works of course. The same as for others if you read the provided link to a forum thread. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c13 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #13 from Michael Andres <ma@novell.com> 2011-06-14 14:21:23 CEST --- There's no log that hints to a bug in zypper/libzypp. Feel free to reopoen the bug if new information appears. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c14 Ilya Chernykh <anixx@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #14 from Ilya Chernykh <anixx@opensuse.org> 2011-06-14 12:29:38 UTC --- Of course it works because the IPv6 testing day is over but should not we be prepared for enabling IPv6 DNS entries on build.opensuse.org are enabled as promised? It DOES NOT work when IPv6 DNS is on. Even if it's not a fault of another library, not libzypp. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c15 --- Comment #15 from Ilya Chernykh <anixx@opensuse.org> 2011-06-14 12:30:49 UTC --- For what IPv6 testing day then if not for testing? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c16 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WORKSFORME --- Comment #16 from Michael Andres <ma@novell.com> 2011-06-14 18:55:33 CEST --- That's ok, but as I wrote, I need more information in order to investigate something. It does not WORKFORME because I'm again using IPV4. zypper on my local machine is also today able to access download.opensuse.org using it's IPV6 address [2001:67c:2178:8::13] and to retrieve data from there: (doGetFileCopyFile):1328 URL: http://download.opensuse.org/repositories/ zypp:/Head/openSUSE_11.4/repodata/repomd.xml.asc (log_curl):109 * About to connect() to download.opensuse.org port 80 (#0) (log_curl):109 * Trying 2001:67c:2178:8::13... (log_curl):109 * Connected to download.opensuse.org (2001:67c:2178:8::13) port 80 (#0) ... (log_curl):109 < Accept-Ranges: bytes (log_curl):109 < Content-Length: 189 ... (doGetFileCopy):1299 HTTP response: 200 So for me IPV6 basically works, and I do not know what caused the problem on your machine. It may very well be, the problem was not located on your machine at all, but somewhere between you and download.opensuse.org. So if you can provide the zypper log showing this error, I'll check whether it contains any hints to errors we can fix. But without further info I don't know what to do. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c17 Ilya Chernykh <anixx@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #17 from Ilya Chernykh <anixx@opensuse.org> 2011-06-16 23:41:32 UTC --- Disable IPv6 and you will see the same problem as I did. I cannot provide other logs than I provided. This means the problem is not reflected in the log.
It may very well be, the problem was not located on your machine at all, but somewhere between you and download.opensuse.org.
The only problem was that zypper tried to access download.opensuse.org via IPv6 when IPv6 was not available. As you can see fromn the zypper's output, it tries to connect only via IPv6 even though IPv4 was available. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=698926 https://bugzilla.novell.com/show_bug.cgi?id=698926#c18 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WORKSFORME --- Comment #18 from Michael Andres <ma@novell.com> 2011-06-17 14:20:29 CEST --- - Which curl version are you using? (should be 7.20 or above, 7.21.2 is what I'm using). - This is what I execute in one terminal to see how zypper(libcurl) connects: $ export ZYPP_MEDIA_CURL_DEBUG=2 $ tail -f /var/log/zypper.log | grep log_curl - In an other terminal I call 'zypper ref' for one of my repos and check how curl behaves: $ host download.opensuse.org download.opensuse.org has address 195.135.221.134 download.opensuse.org has IPv6 address 2001:67c:2178:8::13 $ zypper ref -f zypp:Head 2011-06-17 11:31:00 <1> fibonacci(15669) [zypp++] MediaCurl.cc(log_curl):109 \ * About to connect() to download.opensuse.org port 80 (#0) * Trying 2001:67c:2178:8::13... * connected ... ==> So curl per default connects using IPv6 $ ip route del ::/0 ==> deleting my IPv6 route $ zypper ref -f zypp:Head 2011-06-17 11:33:07 <1> fibonacci(15968) [zypp++] MediaCurl.cc(log_curl):109 \ * About to connect() to download.opensuse.org port 80 (#0) * Trying 195.135.221.134... * connected ==> So curl now falls back to using IPv4 $ ip route add ::/0 via ... ==> reenable IPv6 route $ zypper ref -f zypp:Head 011-06-17 11:35:11 <1> fibonacci(16435) [zypp++] MediaCurl.cc(log_curl):109 \ * About to connect() to download.opensuse.org port 80 (#0) * Trying 2001:67c:2178:8::13... * connected ==> back to IPv6 again And even if I mess up my route, so it does not fail on my host, but some hops apart: 2011-06-17 13:52:18 <1> fibonacci(22660) [zypp++] MediaCurl.cc(log_curl):109 \ * About to connect() to download.opensuse.org port 80 (#0) * Trying 2001:67c:2178:8::13... * No route to host * Trying 195.135.221.134... IPv6 does not succeed and curl falls back to v4. - I finally found just one way to reproduce the behavior you describe: In /etc/hosts explicitly enter just the v6 adress of download.opensuse.org: 2001:67c:2178:8::13 download.opensuse.org #195.135.221.134 download.opensuse.org In that case v4 is not considered as an /etc/hosts entry superseeds DNS. But if both addresses are present, as they should be, it again works. 2001:67c:2178:8::13 download.opensuse.org 195.135.221.134 download.opensuse.org Sorry, but I can't find a bug here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com