1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00
nix/src
Picnoir f68cdf1801 gc: resume GC after a pathinuse error
First the motivation: I recently faced a bug that I assume is coming
from the topoSortPaths function where the GC was trying to delete a
path having some alive referrers. I resolved this by manually deleting
the faulty path referrers using nix-store --query --referrers. I sadly
did not manage to reproduce this bug.

This bug alone is not a big deal. However, this bug is
triggering a cascading failure: invalidatePathChecked is throwing a
PathInUse exception. This exception is not catched and fails the whole GC
run. From there, the machine (a builder machine) was unable to GC its
Nix store, which led to an almost full disk with no way to
automatically delete the dead Nix paths.

Instead, I think we should log the error for the specific store path
we're trying to delete, specifying we can't delete this path because
it still has referrers. Once we're done with logging that, the GC run
should continue to delete the dead store paths it can delete.

(cherry picked from commit ced8d311a5)
2025-01-15 15:59:24 +00:00
..
build-remote build-remote: only allocate storeUri once 2024-07-25 14:04:03 +02:00
external-api-docs Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
internal-api-docs Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
libcmd doc/manual: Fix some broken fragments 2025-01-10 10:17:08 +00:00
libexpr parser-state: fix attribute merging 2025-01-12 13:07:28 +01:00
libexpr-c allow to c api with older c versions 2024-08-07 23:12:17 +00:00
libfetchers Bump fetcher cache version 2024-11-23 09:05:52 +01:00
libflake fix: add flake headers 2024-07-30 13:19:55 -04:00
libmain fix(libmain/common-args): do not exceed maximum allowed verbosity 2025-01-10 10:04:39 +00:00
libmain-c Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
libstore gc: resume GC after a pathinuse error 2025-01-15 15:59:24 +00:00
libstore-c Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
libutil libutil: thread-pool: ensure threads finished on error 2025-01-13 08:03:02 +00:00
libutil-c Merge pull request #11127 from NixOS/issue-10635-c-api-error-enum 2024-07-29 16:00:58 +02:00
libutil-tests makeParentCanonical: test case where parent is empty 2025-01-07 07:20:55 +01:00
nix Merge pull request #12206 from NixOS/mergify/bp/2.24-maintenance/pr-11381 2025-01-10 23:43:18 +00:00
nix-build Fix issue 11892 2024-11-18 21:21:13 +00:00
nix-channel downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
nix-collect-garbage inline the usage of nix::readDirectory 2024-05-12 17:42:18 +05:30
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Make abort() call sites log first 2024-07-24 16:52:04 +02:00
nix-instantiate No global settings in libnixfetchers and libnixflake 2024-07-12 08:50:28 -04:00
nix-store fix: Resolve CLI parent symlinks before adding to store 2025-01-07 07:20:55 +01:00
perl add werror=suggest-override 2024-07-25 07:41:12 +02:00
nix-expr-test-support Put back files for now 2024-07-02 09:26:22 -04:00
nix-expr-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-fetchers-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-flake-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-store-test-support Put back files for now 2024-07-02 09:26:22 -04:00
nix-store-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-util-test-support Put back files for now 2024-07-02 09:26:22 -04:00
nix-util-tests Put back files for now 2024-07-02 09:26:22 -04:00