Nix: "waiting for locks or build slots" is not a very helpful message

Created on 11 Apr 2018  路  5Comments  路  Source: NixOS/nix

I think the message that nix prints when something is blocking the build could be a bit more descriptive. "waiting for locks or build slots" does not indicate whether there is a resource problem that the user needs to go fix (let alone what the resource problem is), or whether the same build is already underway by another process. Even turning the logging up to vomit doens't yield anything particularly insightful.

UX documentation

Most helpful comment

@shlevy Splitting it down the middle seems like a good start. If an output path is locked, does that always mean that it is being built by another process? In that case, I would have a message that looked something like: "waiting for /nix/store/... to be built". If it's an out of resources issue, it should say "waiting for build slots". This would at least remove the ambiguity. Should generate a list of what all the conditions that can cause that message to appear are.

All 5 comments

Possibly related: it _is_ possible to run multiple Nix instances in parallel as root and get an error (instead of blocking to wait for build slots) after running out of build users.

@ledettwy Any interest in providing a patch, or suggested output at least?

@shlevy Splitting it down the middle seems like a good start. If an output path is locked, does that always mean that it is being built by another process? In that case, I would have a message that looked something like: "waiting for /nix/store/... to be built". If it's an out of resources issue, it should say "waiting for build slots". This would at least remove the ambiguity. Should generate a list of what all the conditions that can cause that message to appear are.

See #1216

See #3577

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lilyball picture lilyball  路  67Comments

lovesegfault picture lovesegfault  路  37Comments

domenkozar picture domenkozar  路  53Comments

ryanbooker picture ryanbooker  路  34Comments

taktoa picture taktoa  路  35Comments