Debian Bug report logs -
#478864
curl: (6) Resolving host timed out:
Reported by: Stepan Golosunov <stepan@golosunov.pp.ru>
Date: Thu, 1 May 2008 14:06:01 UTC
Severity: important
Tags: ipv6
Found in version curl/7.18.1-1
Fixed in version curl/7.18.2-1
Done: Domenico Andreoli <cavok@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Domenico Andreoli <cavok@debian.org>:
Bug#478864; Package curl.
(full text, mbox, link).
Acknowledgement sent to Stepan Golosunov <stepan@golosunov.pp.ru>:
New Bug report received and forwarded. Copy sent to Domenico Andreoli <cavok@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: curl
Version: 7.18.1-1
Severity: important
Tags: ipv6
After recent upgrade curl stopped working:
% curl http://www.debian.org/
curl: (6) Resolving host timed out: www.debian.org
After adding ipv4 nameserver entry to /etc/resolv.conf but with
ipv6-only http_proxy curl exits with
% curl http://www.debian.org/
curl: (5) Could not resolve host: www.debian.org (DNS server returned answer with no data)
This is probably caused by libc-ares support (see also #476735) and
downgrading libcurl3 to 7.18.0-1+b1 returns curl to working
state.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages curl depends on:
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libcurl3 7.18.1-1 Multi-protocol file transfer libra
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
curl recommends no packages.
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, Domenico Andreoli <cavok@debian.org>:
Bug#478864; Package curl.
(full text, mbox, link).
Acknowledgement sent to arno@natisbad.org (Arnaud Ebalard):
Extra info received and forwarded to list. Copy sent to Domenico Andreoli <cavok@debian.org>.
(full text, mbox, link).
Message #10 received at 478864@bugs.debian.org (full text, mbox, reply):
Hi,
I have the same kind of issues as the one reported previously by
Stepan. Mine is in apt-transport-https which uses libcurl (the gnutls
version).
Previously, it worked for me against an IPv6 DNS and for a target
resolving only to an IPv6 address but the recent addition of
--enable-ares in the CONFIGURE_ARGS in debian/rules of curl package
breaks IPv6 support.
IMHO, all packages that depends on libcurl might undergo the same kind
of issue, i.e. lack of IPv6 support.
I grabbed the source of the Debian package, read the README.ares file in
lib/ which contains:
c-ares and ipv6
===============
If the configure script enables IPv6 support you need to explicitly
disable that (--disable-ipv6) since c-ares isn't IPv6 compatible
(yet).
So, I just removed the --enable-ares from the CONFIGURE_ARGS in the
debian/rules file, performed a dpkg-buildpackage and installed the fresh
versions. Everything works again.
Cheers,
a+
Information forwarded to debian-bugs-dist@lists.debian.org, Domenico Andreoli <cavok@debian.org>:
Bug#478864; Package curl.
(full text, mbox, link).
Acknowledgement sent to Joshua Gilbert <jgilbertdebian@gmail.com>:
Extra info received and forwarded to list. Copy sent to Domenico Andreoli <cavok@debian.org>.
(full text, mbox, link).
Message #15 received at 478864@bugs.debian.org (full text, mbox, reply):
Package: curl
Version: 7.18.1-1
Followup-For: Bug #478864
curl always fails when trying to resolve a host name. Interestingly, if I run
curl under strace, it succeeds. I have
no idea as to why this might be the case. So
$ curl http://yahoo.com
curl: (6) Resolving host timed out: yahoo.com
$ strace curl http://yahoo.com 2> /dev/null
The document has moved <A HREF="http://www.yahoo.com/">here</A>.<P>
<!-- p3.rc.re4.yahoo.com uncompressed/chunked Sat May 31 05:17:34 PDT 2008 -->
Strange, but true. Does this make any sense to you?
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages curl depends on:
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libcurl3 7.18.1-1 Multi-protocol file transfer
libra
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
curl recommends no packages.
-- no debconf information
Tags added: pending
Request was from Domenico Andreoli <cavok@dandreoli.com>
to control@bugs.debian.org.
(Mon, 09 Jun 2008 16:00:03 GMT) (full text, mbox, link).
Tags added: pending
Request was from Domenico Andreoli <cavok@dandreoli.com>
to control@bugs.debian.org.
(Mon, 09 Jun 2008 16:00:03 GMT) (full text, mbox, link).
Reply sent to Domenico Andreoli <cavok@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Stepan Golosunov <stepan@golosunov.pp.ru>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #24 received at 478864-close@bugs.debian.org (full text, mbox, reply):
Source: curl
Source-Version: 7.18.2-1
We believe that the bug you reported is fixed in the latest version of
curl, which is due to be installed in the Debian FTP archive:
curl_7.18.2-1.diff.gz
to pool/main/c/curl/curl_7.18.2-1.diff.gz
curl_7.18.2-1.dsc
to pool/main/c/curl/curl_7.18.2-1.dsc
curl_7.18.2-1_hppa.deb
to pool/main/c/curl/curl_7.18.2-1_hppa.deb
curl_7.18.2.orig.tar.gz
to pool/main/c/curl/curl_7.18.2.orig.tar.gz
libcurl3-dbg_7.18.2-1_hppa.deb
to pool/main/c/curl/libcurl3-dbg_7.18.2-1_hppa.deb
libcurl3-gnutls_7.18.2-1_hppa.deb
to pool/main/c/curl/libcurl3-gnutls_7.18.2-1_hppa.deb
libcurl3_7.18.2-1_hppa.deb
to pool/main/c/curl/libcurl3_7.18.2-1_hppa.deb
libcurl4-gnutls-dev_7.18.2-1_hppa.deb
to pool/main/c/curl/libcurl4-gnutls-dev_7.18.2-1_hppa.deb
libcurl4-openssl-dev_7.18.2-1_hppa.deb
to pool/main/c/curl/libcurl4-openssl-dev_7.18.2-1_hppa.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 478864@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Domenico Andreoli <cavok@debian.org> (supplier of updated curl package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 09 Jun 2008 14:09:42 +0200
Source: curl
Binary: curl libcurl3 libcurl3-gnutls libcurl4-openssl-dev libcurl4-gnutls-dev libcurl3-dbg
Architecture: source hppa
Version: 7.18.2-1
Distribution: unstable
Urgency: low
Maintainer: Domenico Andreoli <cavok@debian.org>
Changed-By: Domenico Andreoli <cavok@debian.org>
Description:
curl - Get a file from an HTTP, HTTPS or FTP server
libcurl3 - Multi-protocol file transfer library (OpenSSL)
libcurl3-dbg - libcurl compiled with debug symbols
libcurl3-gnutls - Multi-protocol file transfer library (GnuTLS)
libcurl4-gnutls-dev - Development files and documentation for libcurl (GnuTLS)
libcurl4-openssl-dev - Development files and documentation for libcurl (OpenSSL)
Closes: 478864 478864 481189 482814 483999 485023
Changes:
curl (7.18.2-1) unstable; urgency=low
.
* New upstream release:
- removed patches/ftp-response, it is already in the upstream release
- fixed issues with kerberos ftp (closes: #478864).
* Disable c-ares support, it is still not ready for Debian's wide
user base (closes: #478864, #481189).
* Standards-Version bumped to 3.8.0:
- added support for parallel builds to debian/rules
* Removal of $QUILT_PC's override makes this package ready for new
source format 3.0 (quilt) (closes: #485023).
* Configure build with --with-ca-path but only for OpenSSL flavour,
GnuTLS supports only --with-ca-bundle (closes: #482814, #483999).
Both libcurl3 and libcurl3-gnutls now depend on ca-certificates.
Checksums-Sha1:
33dbaf0cdea6ec3f41b331116eda535db560d79d 1394 curl_7.18.2-1.dsc
b4f8b1f4aea093c3e4f6efc423beca08a1373156 2273077 curl_7.18.2.orig.tar.gz
350d475c9b2ba93cbb32fa32a99c134ceab59feb 19602 curl_7.18.2-1.diff.gz
dfc58842adb91636022d5fb80c8627ffd9fadad4 209194 curl_7.18.2-1_hppa.deb
2832224ab93ea03b2681eaac77a55613fa65ffdb 243926 libcurl3_7.18.2-1_hppa.deb
99223315d0b7870c594f8e828aa2dfe0578d5483 227002 libcurl3-gnutls_7.18.2-1_hppa.deb
983d2a8e9db0498622fb2f31c49370d6011d8624 960616 libcurl4-openssl-dev_7.18.2-1_hppa.deb
b0b5c09247f8ccef1aeee8dc6b5769263168ed0c 939324 libcurl4-gnutls-dev_7.18.2-1_hppa.deb
8fc7efc3d60e96b1a082c1213c909eb928e2c2a0 1174902 libcurl3-dbg_7.18.2-1_hppa.deb
Checksums-Sha256:
3a58554d025b0d59c8ecb3ffdc932c6c2ade5c66e5c6708f3efcec651116de1e 1394 curl_7.18.2-1.dsc
55a711ad1d703f8b9c3ca80e5b859b5222f64566f9a3b82ac6773055ef8cee71 2273077 curl_7.18.2.orig.tar.gz
42db1191ef753c027b2bdde4c679fac7286d522be9dceacd14280cad22254e82 19602 curl_7.18.2-1.diff.gz
fb90bb5974163525e82c1a3820de8453bd0f7bfea85e2ad164ce5dde8af2d626 209194 curl_7.18.2-1_hppa.deb
69356fb5eb8b529b49c8be7b5e7e39be04d46d9996f227f3f7c2d5c216ece1e1 243926 libcurl3_7.18.2-1_hppa.deb
f3c78a56266e05aeee881ed3474d46c231856c1c009f0524f65b065bee114105 227002 libcurl3-gnutls_7.18.2-1_hppa.deb
12cb9c391ae349c2137665a6e229fe4cd509e82baa6e81f4db9b345e5dcc7373 960616 libcurl4-openssl-dev_7.18.2-1_hppa.deb
4b19d18461e99eefc4ba553009d24fba9876dac41b27d1629329257674017044 939324 libcurl4-gnutls-dev_7.18.2-1_hppa.deb
e3f91b860ece0ee1122014e4115a6faa657d40be6f2bcdfab2b711ccf3cdf0d4 1174902 libcurl3-dbg_7.18.2-1_hppa.deb
Files:
2557756e1501fe7d61e49be97a1de6f1 1394 web optional curl_7.18.2-1.dsc
4fe99398a64a34613c9db7bd61bf6e3c 2273077 web optional curl_7.18.2.orig.tar.gz
131065cd1c2012d648e9508fc2277c20 19602 web optional curl_7.18.2-1.diff.gz
5c3e2f20153ec3bced3b056ef57d35fa 209194 web optional curl_7.18.2-1_hppa.deb
a3c0c495cac04979f61c0524521c39d1 243926 libs optional libcurl3_7.18.2-1_hppa.deb
0e6613c15af2d685a4e6ae6e13922863 227002 libs optional libcurl3-gnutls_7.18.2-1_hppa.deb
5ba2f3d3015ed11bc2f189131a2dbe91 960616 libdevel optional libcurl4-openssl-dev_7.18.2-1_hppa.deb
530d2feb618e61541c919d615957d5b1 939324 libdevel optional libcurl4-gnutls-dev_7.18.2-1_hppa.deb
9db24a33388e032319387f94554040c9 1174902 libdevel extra libcurl3-dbg_7.18.2-1_hppa.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkhNaWIACgkQBneQM6IOvFCwiQCgxeieqkgEQyrmuxQx/sip/RhQ
HTkAoIZD0Y2YPk/tulN6uWAgRdGgnVfj
=9ukB
-----END PGP SIGNATURE-----
Information forwarded to debian-bugs-dist@lists.debian.org, Domenico Andreoli <cavok@debian.org>:
Bug#478864; Package curl.
(full text, mbox, link).
Acknowledgement sent to Derick Rethans <derick@derickrethans.nl>:
Extra info received and forwarded to list. Copy sent to Domenico Andreoli <cavok@debian.org>.
(full text, mbox, link).
Message #29 received at 478864@bugs.debian.org (full text, mbox, reply):
Hello,
this bug is still occurring:
derick@kossu:~$ dpkg -l *curl* | grep curl | grep ii
ii curl 7.18.2-6 Get a file from an HTTP, HTTPS or FTP server
ii libcurl3 7.18.2-6 Multi-protocol file transfer library (OpenSS
ii libcurl3-gnutls 7.18.2-6 Multi-protocol file transfer library (GnuTLS
ii libcurl4-openssl 7.16.2-4 Multi-protocol file transfer library (SSL/Op
ii libcurl4-openssl-dev 7.18.2-6 Development files and documentation for libc
derick@kossu:/tmp$ curl www.php.net
curl: (6) Could not resolve host: www.php.net (DNS server returned answer with no data)
derick@kossu:/tmp$ wget www.php.net
--2008-07-12 23:03:30-- http://www.php.net/
Resolving www.php.net... 69.147.83.197
Connecting to www.php.net|69.147.83.197|:80... connected.
...
derick@kossu:/tmp$ strace curl www.php.net
execve("/usr/bin/curl", ["curl", "www.php.net"], [/* 36 vars */]) = 0
brk(0) = 0x1f20000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f26f340e000
...
...
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("217.13.7.140")}, 16) = 0
sendto(3, "\30\336\1\0\0\1\0\0\0\0\0\0\3www\3php\3net\0\0\34\0\1", 29, MSG_NOSIGNAL, NULL, 0) = 29
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(3, "\30\336\201\200\0\1\0\1\0\1\0\0\3www\3php\3net\0\0\34\0"..., 513, 0, NULL, NULL) = 103
close(3) = 0
recvfrom(-1, 0x7ffffb40ec30, 513, 0, 0, 0) = -1 EBADF (Bad file descriptor)
write(2, "c", 1c) = 1
strace with wget:
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("217.13.7.140")}, 28) = 0
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
sendto(3, "\24_\1\0\0\1\0\0\0\0\0\0\3www\3php\3net\0\0\34\0\1", 29, MSG_NOSIGNAL, NULL, 0) = 29
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [103]) = 0
recvfrom(3, "\24_\201\200\0\1\0\1\0\1\0\0\3www\3php\3net\0\0\34\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("217.13.7.140")}, [16]) = 103
close(3) = 0
stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=94, ...}) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("217.13.7.140")}, 28) = 0
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
sendto(3, "\t\272\1\0\0\1\0\0\0\0\0\0\3www\3php\3net\0\0\1\0\1", 29, MSG_NOSIGNAL, NULL, 0) = 29
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [217]) = 0
recvfrom(3, "\t\272\201\200\0\1\0\2\0\4\0\4\3www\3php\3net\0\0\1\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("217.13.7.140")}, [16]) = 217
close(3) = 0
--
Derick Rethans
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
Information forwarded to debian-bugs-dist@lists.debian.org, Domenico Andreoli <cavok@debian.org>:
Bug#478864; Package curl.
(full text, mbox, link).
Acknowledgement sent to Eric Cooper <ecc@cmu.edu>:
Extra info received and forwarded to list. Copy sent to Domenico Andreoli <cavok@debian.org>.
(full text, mbox, link).
Message #34 received at 478864@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Forwarding this because the problem is caused by curl failing.
Let me know if you agree this is the same bug and I will merge it (or
feel free to do so).
--
Eric Cooper e c c @ c m u . e d u
[Message part 2 (message/rfc822, inline)]
On Sat, Jul 12, 2008 at 08:33:03PM -0400, Eric Cooper wrote:
> > it's transparently being proxied through squid, and i'm wondering if
> > that's somehow messing with it, although until yesterday (the last time
> > it worked), it was working with the identical squid configuration. the
> > same mirrors are accessible if put in sources.list directly and using
> > the squid proxy.
>
> Please try the same "curl" commands that approx is using and let me
> know if there's any more information about why they are failing.
> They're in the log:
>
> > Jul 12 15:50:47 hobo approx: Command: /usr/bin/curl --fail --silent --include "http://debian.osuosl.org/debian/dists/lenny/Release"
> > Jul 12 15:50:48 hobo approx: Command: /usr/bin/curl --fail --silent --include "http://debian.osuosl.org/debian/dists/lenny/main/binary-i386/Packages.gz"
> > Jul 12 15:50:48 hobo approx: Command: /usr/bin/curl --fail --silent --include "http://debian.osuosl.org/debian/dists/sid/main/binary-i386/Packages.gz"
>
> (Even if they succeed, please send me the output. Approx expects some
> headers as a result of the "--include" option; maybe the squid setup
> is breaking its assumptions.)
all silently fail. dropping the --silent option:
/usr/bin/curl --fail --include "http://debian.osuosl.org/debian/dists/lenny/Release"
curl: (6) Could not resolve host: debian.osuosl.org (DNS server returned answer with no data)
which sounds similar to debian bug #478864, possibly.
host debian.osuosl.org
debian.osuosl.org has address 140.211.166.134
debian.osuosl.org is an alias for ftp.osuosl.org.
debian.osuosl.org is an alias for ftp.osuosl.org.
so, i switched to ftp.osuosl.org, and it seems to work fine:
/usr/bin/curl --fail --include "http://ftp.osuosl.org/debian/dists/lenny/Release"
HTTP/1.0 200 OK
Date: Mon, 14 Jul 2008 00:38:57 GMT
Server: Apache
Last-Modified: Sun, 13 Jul 2008 20:55:59 GMT
ETag: "7d40a7c-122d1-451ee007b75c0"
Accept-Ranges: bytes
Content-Length: 74449
Content-Type: text/plain
X-Cache: MISS from tentacle.fglan
X-Cache-Lookup: MISS from tentacle.fglan:3128
Via: 1.0 tentacle.fglan:3128 (squid/2.6.STABLE5)
Connection: close
Origin: Debian
Label: Debian
Suite: testing
Codename: lenny
Date: Sun, 13 Jul 2008 20:54:51 UTC
Architectures: alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc
s390 sparc
Components: main contrib non-free
Description: Debian x.y Testing distribution - Not Released
MD5Sum:
79fe3caaa475eace9b3a6a88319531ac 23080247 main/binary-alpha/Packages
d58ce0efbcb976641afbcab306a2bd55 6613328 main/binary-alpha/Packages.gz
....
so maybe there's something wrong with handling of CNAMEs ?
thanks!
live well,
vagrant
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 12 Aug 2008 07:30:39 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 14 06:47:32 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.