Skip to content

Race between nix-copy-closure and garbage collector #141

Closed

Description

@edolstra

Nix::CopyClosure::copyTo first calls "nix-store --check-validity" to determine missing paths, and then uploads the missing paths. It's possible that the garbage collector on the remote machine deletes the already present paths in between.

Example of a Hydra build that fails because of this: http://hydra.nixos.org/build/549941

Here the path /nix/store/cjwmwjmg3lsz5dmk9zqjy92n2fz1pd4n-perl-XML-LibXML-2.0014 was already present but got GC'ed, causing the import of paths that refer to it to fail.

Activity

  1. vcunat commented on Jul 16, 2013

    @vcunat
    Member

    Eh, the provided example build seems to refer to something completely different.

  2. added a commit that references this issue on Jul 25, 2025
  3. added 2 commits that reference this issue on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions