[Nix-dev] name resolution in nix packages not working
Tobias Hammerschmidt
tobias.hammerschmidt at gmx.de
Fri Sep 14 14:56:34 CEST 2007
Eelco Dolstra schrieb:
> Tobias Hammerschmidt wrote:
>
>> Eelco Dolstra schrieb:
>>> Tobias Hammerschmidt wrote:
>>>> Wouter schrieb:
>>>>> Is this just restricted to the packages you installed (can you ping
>>>>> www.google.com)?
>>>>>
>>>> Yes it is. All packages from debian which do need name resolution are
>>>> working without problems.
>>> Very strange. Do you have the "nscd" daemon running on your system,
>>> and if so,
>>> what version of Glibc does your Debian install use? And if nscd is
>>> running,
>>> could you try if it works without nscd?
>> "nscd" is not running -- "ps ax | grep nscd" gives me an empty list.
>> Debian Etch ships with glibc version 2.3.6.
>
> Hm. Could you install something like curl from Nixpkgs and do an strace? E.g.
>
> $ strace curl http://nix.cs.uu.nl
>
> and see if it gets stuck somewhere? Also, it should make at least the following
> syscalls:
>
> open("/etc/nsswitch.conf", O_RDONLY) = 3
> open("/etc/resolv.conf", O_RDONLY) = 3
> open("/nix/store/brba7k7qrpk7r8qnha6hf1pr46rkmvzc-glibc-2.5/lib/libnss_files.so.2",
> O_RDONLY) = 3
> open("/etc/hosts", O_RDONLY) = 3
> open("/nix/store/brba7k7qrpk7r8qnha6hf1pr46rkmvzc-glibc-2.5/lib/libnss_dns.so.2",
> O_RDONLY) = 3
> open("/nix/store/brba7k7qrpk7r8qnha6hf1pr46rkmvzc-glibc-2.5/lib/libresolv.so.2",
> O_RDONLY) = 3
> connect(3, {sa_family=AF_INET, sin_port=htons(53),
> sin_addr=inet_addr("131.211.80.32")}, 28) = 0
>
> (where 131.211.80.32 is the nameserver)
>
Hm strange I'm unable to install curl from Nixpkgs. This is the output
when running nix-env -i curl:
warning: there are multiple derivations named `curl-7.16.2'; using the
first one
installing `curl-7.16.2'
substituting path
`/nix/store/zdmxbj71y1h280nqv6kjwizkd8l80a9d-stdenv-linux' using
substituter `/nix/libexec/nix/download-using-manifests.pl'
*** Trying to download/patch
`/nix/store/zdmxbj71y1h280nqv6kjwizkd8l80a9d-stdenv-linux'
*** Step 1/1: downloading
`http://nix.cs.uu.nl/dist/nix-cache/1b0rm7mm49djfmih66acbv04banfdq2z0d3rl472fswckfn4ng4i.nar.bz2'
into `/nix/store/zdmxbj71y1h280nqv6kjwizkd8l80a9d-stdenv-linux'
downloading archive...
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 5647 100 5647 0 0 4061 0 0:00:01 0:00:01 --:--:--
42780
unpacking archive...
substituting path
`/nix/store/71dwiz8hfmx8ygyl5lm7s1dpm1jxvim0-zlib-1.2.3' using
substituter `/nix/libexec/nix/download-using-manifests.pl'
*** Trying to download/patch
`/nix/store/71dwiz8hfmx8ygyl5lm7s1dpm1jxvim0-zlib-1.2.3'
*** Step 1/1: downloading
`http://nix.cs.uu.nl/dist/nix-cache/06sl0lrvs1x3xcw0p1jfha3q0rqj4nxgmmvbkx6676gm08yv1k69.nar.bz2'
into `/nix/store/71dwiz8hfmx8ygyl5lm7s1dpm1jxvim0-zlib-1.2.3'
downloading archive...
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 67810 100 67810 0 0 64327 0 0:00:01 0:00:01 --:--:--
104k
unpacking archive...
substituting path
`/nix/store/ipqqrbwm3n9m15vny2kipx40pj25ahml-curl-7.16.2' using
substituter `/nix/libexec/nix/download-using-manifests.pl'
*** Trying to download/patch
`/nix/store/ipqqrbwm3n9m15vny2kipx40pj25ahml-curl-7.16.2'
*** Step 1/1: downloading
`http://nix.cs.uu.nl/dist/nix-cache/0fdr46ma7n934jxbdr4rkfxd6n60j68j47688ys317cm9svr4s79.nar.bz2'
into `/nix/store/ipqqrbwm3n9m15vny2kipx40pj25ahml-curl-7.16.2'
downloading archive...
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 299k 100 299k 0 0 92568 0 0:00:03 0:00:03 --:--:--
101k
unpacking archive...
building path(s)
`/nix/store/42f8swvpl9zjgwyydq1cp6jmkqd3w84a-curl-7.16.2.tar.bz2'
downloading file curl-7.16.2.tar.bz2 with sha256 hash
18mzp56y8qhlvi27av7866mvsiyiigb7c5qdppjr8qizsj0kx0rf...
error checking the existence of
http://nix.cs.uu.nl/dist/tarballs/sha256/18mzp56y8qhlvi27av7866mvsiyiigb7c5qdppjr8qizsj0kx0rf:
curl: (6) Couldn't resolve host 'nix.cs.uu.nl'
trying http://curl.haxx.se/download/curl-7.16.2.tar.bz2
curl: (6) Couldn't resolve host 'curl.haxx.se'
error: cannot download curl-7.16.2.tar.bz2 from any mirror
builder for
`/nix/store/d1nzm181pwnlzhlbdl49c0aryr2qpwsx-curl-7.16.2.tar.bz2.drv'
failed with exit code 1
cannot build derivation
`/nix/store/s25yvqnsrp6ik9yhffl7yfhgy3c1li95-curl-7.16.2.drv': 1 inputs
could not be realised
error: build of
`/nix/store/s25yvqnsrp6ik9yhffl7yfhgy3c1li95-curl-7.16.2.drv' failed
More information about the nix-dev
mailing list