-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Nix build hangs with "download thread waiting for 10000 ms" loop #13025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Has |
From the docs:
My intention with |
I just tried |
Ah, I'm seeing it happen sometimes even without the Bubblewrap sandbox. The common denominator seems to be that it gets stuck when using a local substituter, like |
Update: it can get stuck with a local HTTP substituter too! I made a branch to try this variation: https://github.com/thomasjm/nix-deadlock-repro/tree/http. (See comparison). |
Describe the bug
I'm having this issue very similar to #11249, where I try to run a Nix build in a container-like environment and get an endless loop like this:
In my case, rather than devcontainer, i'm using Bubblewrap. Also, I'm mounting a local binary cache constructed with
mkBinaryCache
and trying to make my build use it as a substituter.Steps To Reproduce
I put together a full repro here, which constructs a script that shows the problem: https://github.com/thomasjm/nix-deadlock-repro. All you have to do is
(If this succeeds the first time, maybe try it once or twice more and you should see the deadlock.)
Expected behavior
The Nix build should complete successfully and promptly.
Metadata
Everything is fixed in my repro flake. I'm using a static build of Nix 2.28.
Additional context
Issue #11249 said it was fixed by #11171, but I'm testing on the latest Nix and that solution is not fixing it for me.
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: