Skip to content

Nix build hangs with "download thread waiting for 10000 ms" loop #13025

Open
@thomasjm

Description

@thomasjm

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:

download thread waiting for 10000 ms
download thread waiting for 10000 ms
download thread waiting for 10000 ms
download thread waiting for 10000 ms
download thread waiting for 10000 ms

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

git clone git@github.com:thomasjm/nix-deadlock-repro.git
cd nix-deadlock-repro
nix run .#go

(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfetchingNetworking with the outside (non-Nix) world, input locking

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions