Bugzilla – Bug 842108
curl (e.g. from inside zypper dup) suddeny switches to ipv6 on ipv4-only host and fails zypper progress
Last modified: 2014-06-13 13:15:17 UTC
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0 I remember quite vividly that I used to report similar bugs and these ipv6 madness many opensuse versions back 12.1 and others come to my mind e.g. <https://bugzilla.novell.com/show_bug.cgi?id=765638> so today trying a zypper dup from a 13.1/m4 to 13.1/b1 on an ipv4-only host (and ipv4-only network, with ipv4-only ISP) eventually fails sometimes during fetching one or another package. var/log/zypper.log shows the ipv6 curl errors that it cannot reach the ipv6 address. this is a real shame. is it possible to sort these ipv6 mad bugs out ever? or is there just no solution to this? ever since ipv6 came along to get more wider adoption with opensuse it has been a huge pain in many areas of the distro :(, when actually trying to NOT use it, or trying to stay away from it or being unable to use it due to ISP limitations and so on. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: routing tables linux-box:~ # ip route show table local broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1 local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1 local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1 broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1 broadcast 192.168.15.0 dev eth0 proto kernel scope link src 192.168.15.53 local 192.168.15.53 dev eth0 proto kernel scope host src 192.168.15.53 broadcast 192.168.15.255 dev eth0 proto kernel scope link src 192.168.15.53 linux-box:~ # ip route show default via 192.168.15.254 dev eth0 127.0.0.0/8 dev lo scope link 169.254.0.0/16 dev eth0 scope link 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.53 linux-box:~ # ifconfig eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX inet addr:192.168.15.53 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:912124 errors:0 dropped:611 overruns:0 frame:0 TX packets:510169 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1280623420 (1221.2 Mb) TX bytes:38352458 (36.5 Mb) zypper.log excerpt 2013-09-24 19:28:52 <1> linux-box(20933) [zypp:fetcher] Fetcher.cc(provideFromCache):350 start fetcher with 1 cache directories. 2013-09-24 19:28:52 <1> linux-box(20933) [zypp:fetcher] Fetcher.cc(provideToDest):547 Not found in cache, downloading 2013-09-24 19:28:52 <1> linux-box(20933) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide file ./suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm from media number 1 2013-09-24 19:28:52 <1> linux-box(20933) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(1): desired (cached) 2013-09-24 19:28:52 <1> linux-box(20933) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(1): desired (cached) 2013-09-24 19:28:52 <1> linux-box(20933) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1319 dest: /var/adm/mount/AP_0xPkRC8l/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm 2013-09-24 19:28:52 <1> linux-box(20933) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1320 temp: /var/adm/mount/AP_0xPkRC8l/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm.new.zypp.FRo1Rg 2013-09-24 19:28:52 <1> linux-box(20933) [zypp++] MediaCurl.cc(doGetFileCopyFile):1365 ./suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm 2013-09-24 19:28:52 <1> linux-box(20933) [zypp++] MediaCurl.cc(doGetFileCopyFile):1375 URL: http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm 2013-09-24 19:29:22 <3> linux-box(20933) [zypp] MediaCurl.cc(doGetFileCopyFile):1439 curl error: 7: Failed to connect to 2001:67c:2178:8::13: Network is unreachable, temp file size 0 bytes. 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):1044 THROW: Download (curl) error for 'http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm': 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error code: Connection failed 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):1048 RETHROW: Download (curl) error for 'http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm': 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error code: Connection failed 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 MediaCurl.cc(doGetFileCopyFile):1451 RETHROW: Download (curl) error for 'http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm': 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error code: Connection failed 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] PathInfo.cc(unlink):666 unlink /var/adm/mount/AP_0xPkRC8l/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm.new.zypp.FRo1Rg 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 MediaMultiCurl.cc(doGetFileCopy):1350 RETHROW: Download (curl) error for 'http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm': 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error code: Connection failed 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 MediaCurl.cc(getFileCopy):885 RETHROW: Download (curl) error for 'http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm': 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error code: Connection failed 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 MediaSetAccess.cc(provide):216 CAUGHT: Download (curl) error for 'http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm': 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error code: Connection failed 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 Error message: Failed to connect to 2001:67c:2178:8::13: Network is unreachable 2013-09-24 19:29:22 <5> linux-box(20933) [zypp] Exception.cc(log):137 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(1): desired (cached) 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaHandler.cc(getDetectedDevices):1370 No devices for this medium 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaSetAccess.cc(provide):228 Media couldn't provide file ./suse/i586/libwebkitgtk-3_0-0-2.1.90.1-1.1.i586.rpm , releasing. 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaManager.cc(release):486 release(id=1) 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaHandler.cc(release):723 Request to release attached media http<http://download.opensuse.org/distribution/13.1/repo/oss/>, use count=1 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaHandler.cc(release):730 Releasing media http<http://download.opensuse.org/distribution/13.1/repo/oss/> 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaHandler.cc(disconnect):702 Disconnected: http://download.opensuse.org/distribution/13.1/repo/oss/ attached; localRoot "/var/adm/mount/AP_0xPkRC8l" 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaHandler.cc(removeAttachPoint):179 MediaHandler - checking if to remove attach point 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] PathInfo.cc(recursive_rmdir):430 recursive_rmdir /var/adm/mount/AP_0xPkRC8l 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaHandler.cc(removeAttachPoint):191 Deleted default attach point /var/adm/mount/AP_0xPkRC8l 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaHandler.cc(release):784 Released: http://download.opensuse.org/distribution/13.1/repo/oss/ not attached; localRoot "" 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaManager.cc(releaseAll):525 Releasing all attached media 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaManager.cc(releaseAll):543 Media id 1 not attached 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaManager.cc(releaseAll):553 Exit 2013-09-24 19:29:22 <1> linux-box(20933) [zypper++] media.cc(requestMedia):215 medium problem, url: http://download.opensuse.org/distribution/13.1/repo/oss/, error 3, label 'openSUSE-13.1-Oss', #1 2013-09-24 19:29:22 <1> linux-box(20933) [zypper] misc.cc(is_changeable_media):39 Checking if this is a changeable medium 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaAccess.cc(open):117 Trying scheme 'http' 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaCurl.cc(MediaCurl):450 MediaCurl::MediaCurl(http://download.opensuse.org/distribution/13.1/repo/oss/, ) 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaMultiCurl.cc(MediaMultiCurl):1158 MediaMultiCurl::MediaMultiCurl(http://download.opensuse.org/distribution/13.1/repo/oss/, ) 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaAccess.cc(open):197 Opened: http(http://download.opensuse.org/distribution/13.1/repo/oss/ not attached; localRoot "") 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaManager.cc(open):277 Opened new media access using id 2 to http://download.opensuse.org/distribution/13.1/repo/oss/ 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaManager.cc(close):309 Close to access handler using id 2 requested 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaHandler.cc(release):716 Request to release media - not attached; eject '' 2013-09-24 19:29:22 <1> linux-box(20933) [zypp] MediaAccess.cc(close):248 Close: http(http://download.opensuse.org/distribution/13.1/repo/oss/ not attached; localRoot "") (OK) 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaHandler.cc(release):716 Request to release media - not attached; eject '' 2013-09-24 19:29:22 <1> linux-box(20933) [zypp++] MediaHandler.cc(removeAttachPoint):179 MediaHandler - checking if to remove attach point 2013-09-24 19:31:35 <1> linux-box(20933) [zypper] Zypper.cc(cleanup):4948 START 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] PathInfo.cc(recursive_rmdir):430 recursive_rmdir /var/tmp/zypp.CQOl2t 2013-09-24 19:31:35 <1> linux-box(20933) [zypp++] TmpPath.cc(~Impl):78 TmpPath cleaned up /var/tmp/zypp.CQOl2t{d 0700 0/0} 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] ZYppFactory.cc(_openLockFile):166 Open lockfile /var/run/zypp.pid 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] ZYppFactory.cc(~ZYppGlobalLock):115 Cleanned lock file. (20933) 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] ZYppFactory.cc(_closeLockFile):184 Close lockfile /var/run/zypp.pid 2013-09-24 19:31:35 <1> linux-box(20933) [zypper] Zypper.cc(~Zypper):85 Zypper instance destroyed. Bye! 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] PathInfo.cc(recursive_rmdir):430 recursive_rmdir /var/tmp/TmpDir.I9k1Wj 2013-09-24 19:31:35 <1> linux-box(20933) [zypp++] TmpPath.cc(~Impl):78 TmpPath cleaned up /var/tmp/TmpDir.I9k1Wj{d 0700 0/0} 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] RpmDb.cc(closeDatabase):734 Calling closeDatabase: RpmDb[V4(X--)V3(---): '(/)/var/lib/rpm'] 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] librpmDb.cc(blockAccess):328 Block access 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] RpmDb.cc(closeDatabase):765 closeDatabase: RpmDb[NO_INIT] 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] TargetImpl.cc(~TargetImpl):815 Targets closed 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] RpmDb.cc(~RpmDb):268 ~RpmDb() 2013-09-24 19:31:35 <1> linux-box(20933) [zypp] RpmDb.cc(~RpmDb):271 ~RpmDb() end
I tried to reproduce this but failed. Is there an easier way to reproduce this, e.g. using curl directly with an URL that always fails? Please also provide the output of: ip a l ip -6 r l ip r l sysctl -a Thanks!
Same as bnc#780179. *** This bug has been marked as a duplicate of bug 780179 ***