Skip to content

Assertion `buildResult.builtOutputs.count(wantedOutput) > 0' failed. #14172

@teto

Description

@teto

Describe the bug

I was doing a nixos-rebuild switch when I was greeted with a "lost connection to nix-daemon, maybe it crashed" (from memory)

Looking at journalctl, I can see:

oct. 07 09:50:02 jedha HOST[67468]: nix-daemon: ../build/derivation-goal.cc:186: nix::Goal::Co nix::DerivationGoal::haveDerivation(): Assertion `buildResult.builtOutputs.count(wantedOutput) > 0' failed.

This is with nix 2.31.1.

what might have triggered this:

  • I modified the flake after starting the command (added an input) ?
  • I've got > 20 cores on CPU

Steps To Reproduce

Cant reproduce .

Expected behavior

No crash.

Metadata

Additional context

Checklist

I will check with more recent nix after update


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions