| 23 Aug 2021 |
davidak | yes, in that case not. but i added my user to trustedUsers, but it still builds everything. that's a bit strange. not used cachix before, so i'm not sure if the cache is maybe outdated | 16:28:13 |
andi- | try reproducing the error with this:
let pkgs = import <nixpkgs> {}; in
pkgs.fetchurl {
url = "mirror://gnu/whatever/something-v1234.tar.gz";
sha256 = "0000000000000000000000000000000000000000000000000000000000000000";
}
| 16:31:43 |
andi- | It might also be a case of many downloads happening at the same time where some of them are then causing the DNS thing to fall over? | 16:33:14 |
andi- | Looking at the Nix issue that pretty much looks like it is fetching all the (missing) sources. | 16:33:34 |
baloo | nrdxp: https://github.com/baloo/emmett for now | 16:37:48 |
andi- | Use this to verify the latter:
let
pkgs = import <nixpkgs> { };
d = "0000000000000000000000000000000000000000000000000000000000000000";
in
pkgs.symlinkJoin {
name = "whatever";
paths = builtins.genList
(x:
let s = toString x; in
pkgs.fetchurl {
url = "mirror://gnu/whatever/something-v${s}.tar.gz";
sha256 = s + (builtins.substring 0 (builtins.stringLength d - builtins.stringLength s) d);
}) 1000;
}
``
| 16:37:55 |
andi- | that just tries to fetch 1000 imaginary packages that will never exist and should stress the fetching code out. | 16:38:19 |
baloo | it's reproducible with only 1 | 18:09:25 |
baloo | (here) | 18:09:35 |
baloo | and makes less noise | 18:10:11 |
tomberek | I'm getting a bunch of unchecked now as well. | 18:12:45 |
baloo | so nix invokes curl, which forks and straight out opens /var/run/nscd/socket | 18:15:37 |
baloo | fork which then open nsswitch, then hosts, then resolv.conf | 18:16:28 |
baloo | then libnss_dns.so, then looks up from the resolver just fine | 18:19:20 |
baloo | it fails when it picks up mirror.cict.fr, and keeps retrying the same over and over | 18:23:23 |
baloo | that comes from pkgs/build-support/fetchurl/mirrors.nix | 18:23:34 |
baloo | but it ... appears out of date | 18:23:40 |
baloo | (mirror.cict.fr does not resolve) | 18:23:56 |
baloo | and does not exists anymore afaict | 18:24:03 |
baloo | but this is a different issue | 18:50:07 |
baloo | https://github.com/NixOS/nixpkgs/pull/135464 | 18:56:53 |
baloo | andi-: I can't reproduce the issue anymore with this applied | 18:59:24 |
baloo | is this the same you were hitting? | 18:59:37 |
andi- | I wasn't hitting any of those errors. I was just confirming that hydra.nixos.org had it | 22:57:29 |
andi- | I personally never had that issue | 22:57:33 |
baloo | running with resolver 127.0.0.1? | 22:59:02 |
baloo | Besides the ones I fixed in the last PR, I can't find any other issue. | 23:00:45 |
andi- | I'm running a recursive resolver on almost all of my machines so that might be a difference | 23:02:55 |
baloo | yeah same here | 23:03:04 |
| 24 Aug 2021 |
baloo | got my mirrors PR merged, but r13y rebuilt before that. | 16:54:20 |