You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nix-prefetch-url fails, but seems to download fine #85
$ nix-prefetch-url https://github.com/raspberrypi/firmware/archive/4ade27942e.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 153 0 0:00:01 0:00:01 --:--:-- 211
100 86.0M 100 86.0M 0 0 271k 0 0:05:24 0:05:24 --:--:-- 336k
/usr/local/bin/nix-prefetch-url: download of ‘https://github.com/raspberrypi/firmware/archive/4ade27942e.tar.gz’ failed
it seems to be something with nscd, also on the non-nixos (and non-nix curl) raspbian.
curl keeps two sockets open: one with nscd (unix socket), and the tcp for the download. At the end of the download, it writes something to the nscd, gives EPIPE, and get skilled.
The three computers at home where I tried, reproduce it. I guess it has to do with the time of the download, and I guess I have a slower connection. 5m24s for the download, and that may trigger this.
oh my error. the nscd socket is closed immediately, and then it opens a new one to url hostname. Then it works with a 2nd, that of redirection. At the end of the download, it writes to the 1st, and gets killed by SIGPIPE.
Activity
viric commentedon Jan 6, 2013
The same result on nixos, btw.
edolstra commentedon Jan 6, 2013
Works for me... (on NixOS)
vcunat commentedon Jan 6, 2013
For me works OK as well (NixOS, about a week old trunk).
edolstra commentedon Jan 6, 2013
BTW, this error indicates that curl returned a non-zero exit code.
viric commentedon Jan 6, 2013
Umh ok, weird. I tried from 3 computers, and all of them run curl until the 100% of the download, but exit with exit code = 141.
viric commentedon Jan 6, 2013
it seems to be something with nscd, also on the non-nixos (and non-nix curl) raspbian.
curl keeps two sockets open: one with nscd (unix socket), and the tcp for the download. At the end of the download, it writes something to the nscd, gives EPIPE, and get skilled.
The three computers at home where I tried, reproduce it. I guess it has to do with the time of the download, and I guess I have a slower connection. 5m24s for the download, and that may trigger this.
viric commentedon Jan 6, 2013
oh my error. the nscd socket is closed immediately, and then it opens a new one to url hostname. Then it works with a 2nd, that of redirection. At the end of the download, it writes to the 1st, and gets killed by SIGPIPE.
viric commentedon Jan 6, 2013
shlevy could reproduce the problem by using "--limit-rate 250k" in curl. I've sent a letter to a curl mailing list about it.
viric commentedon Jan 10, 2013
It will work better in some next curl: http://curl.haxx.se/mail/archive-2013-01/0013.html
edolstra commentedon Jan 10, 2013
Cool, thanks!
Merge pull request NixOS#85 from cpcloud/rustfmt-toml
Merge pull request NixOS#85 from DeterminateSystems/keep-failed-remot…
libstore/globals: dedupe StoreReference Setting collection serialisers
libutil/configuration: lift parseSettingTokens / renderSettingTokens (N…
doc/inventory: Branch lines for libstore cleanup batch (7 landed, 1 s…
doc/inventory: add NixOS#220 and NixOS#221 + record Pass-B follow-up …
libstore/globals: dedupe StoreReference Setting collection serialisers
libutil/configuration: lift parseSettingTokens / renderSettingTokens (N…
libutil/configuration: lift parseSettingTokens / renderSettingTokens
libstore/globals: dedupe StoreReference Setting collection serialisers