NixOS Reproducible Builds | 545 Members | |
| Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30 | 123 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 Aug 2021 | ||
| 16:13:07 | |
| there is an interesting comment in nix preloadNSS | 16:13:21 | |
| is nss loaded before switching to sandbox, and then out of reach once in the sandbox? | 16:13:43 | |
| As long as the file has been loaded before the sandbox has been entered it shouldn't be a problem. It is very common to open a FD, enter a sandbox and only then operate on it. | 16:15:22 | |
| in this case, it's relying on nss to dlopen the libraries, but yes | 16:15:53 | |
| Could it be a glibc mismatch of sorts? | 16:16:36 | |
| Another glibc on the host than what is in the sandbox and does the fetching? | 16:16:49 | |
| and thus it might not be "tricked" into reusing the already loaded stuff? | 16:16:59 | |
| what I don't understand is that some looks must be working | 16:18:19 | |
| like all the cache.nixos.org at least | 16:18:33 | |
| * what I don't understand is that some lookups must be working | 16:18:48 | |
In reply to @andi:kack.it i was running this on a system build from a PR (master+). not sure which nixpkgs version it is using. could be a mismatch if it's an older version
| 16:18:50 | |
| Do we have a minimal reproducer for this that doesn't involve flakes, nixpkgs-update, ....? A simple derivation? | 16:18:56 | |
In reply to @davidak:matrix.orgIt started building from bootstrap or so. How long before that error occurs? | 16:23:46 | |
In reply to @baloo_:matrix.orgdo you have this anywhere I could play with it 😅 or do you plan to submit a PR? I'd love to review it | 16:24:23 | |
| I need to cleanup my code and document it. | 16:24:49 | |
| but I'll push it on Github. although I don't recommend running it :D | 16:25:20 | |
In reply to @andi:kack.itfew minutes. when it connects to tarballs.nixos.org or ftpmirror.gnu.org | 16:25:25 | |
| And what makes this expression special? That uncached / custom nixpkgs? | 16:25:58 | |
| does it get the packages from cachix on your system or build every single package? it builds 120 packages in my case which took about 2 hours | 16:26:04 | |
| I don't know if it fetches from cachix. I never trusted / used it. | 16:26:18 | |
| I used your command 1:1 | 16:26:22 | |
| I am not a trusted user on my systems so probably not. | 16:26:36 | |
| 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 | |
| try reproducing the error with this:
| 16:31:43 | |
| 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 | |
| Looking at the Nix issue that pretty much looks like it is fetching all the (missing) sources. | 16:33:34 | |
| nrdxp: https://github.com/baloo/emmett for now | 16:37:48 | |
| Use this to verify the latter:
| 16:37:55 | |
| that just tries to fetch 1000 imaginary packages that will never exist and should stress the fetching code out. | 16:38:19 | |