NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.28k stars 1.48k forks source link

Nix Copy Returns 0 exit code Despite Failing to Upload Some Archives #1659

Open jammerful opened 6 years ago

jammerful commented 6 years ago

I would expect that if nix copy (from nix 1.12) was unable to upload some store paths to S3, it would return a non-zero exit code. I know when it hits an internal error, it will return a non-zero exit code. However, it seems to silently fail to upload a handful of store paths it was asked to (out of a ~5000). I found this out by pointing nix-build --dry-run (with a blank store) to my cache, and seeing what was not in the cache.

copumpkin commented 6 years ago

cc @edolstra have any idea what might cause this? I've been doing some large nix copy to S3 and anecdotally it occasionally seems to succeed but my S3 bucket doesn't contain what I asked.

chreekat commented 4 years ago

Ah, just ran into this. I was pushing to a S3 cache without the appropriate permissions, and nix copy silently failed. No error output (except with extra verbosity), and no error code.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info