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
[CA-drvs] Nix fails to remove directory trees #4858
Comments
I suppose this bug wasn't present in Nix 2.4pre20210514_de9e43c and Nix 2.4pre20210506_db6ab75. |
Thanks for reporting this. I also encountered the issue (and I think with some slightly older Nix versions). There might be two different issues there:
|
I don't think it's directly locking related (at least not process-bound locking), as I thought I properly killed (SIGINT, then waiting for termination) the old nix process before starting a new one... |
In case a previous interrupted build left a garbage path laying around, remove it before trying to move the path to its final location. Fix #4858
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/content-addressed-nix-call-for-testers/12881/118 |
Describe the bug
I got the following error messages:
Steps To Reproduce
The above mentioned
bootstrap-stage0-binutils-wrapper-
directory was an aborted previous install, a non-valid store path, which just was still there. It should be possible to reproduce this by creating a fresh store, and build the stdenv withcontentAddressedByDefault
enabled when importing<nixpkgs>
and-j1
, terminating it mid-install, and restarting it. Sources shall be substituted fromcache.nixos.org
, but realizations won't be substituted from there, andcache.ng*.nixos.org
won't substitute it bc of #4849.Expected behavior
Nix should cleanup left-over directories. Currently, this does sometimes fail unexpectedly. Additionally, it seems as if it might try to rebuild something, and doesn't correctly deal with it when the destination is already present (due to CA-derivations).
nix-env --version
outputnix-env (Nix) 2.4pre20210529_1f39092
Additional context
The text was updated successfully, but these errors were encountered: