Skip to content

Borg continues even if cache partition fills up #8666

Closed

Description

@drws

If the partition ~/.cache/borg resides on fills up (during create), Borg still continues, producing 'file not found' errors. Happened with the latest stable v1.4.0. A solution would be to detect the situation before zero free space is left, gracefully stop and produce .checkpoint (if necessary) while also clearly informing the user of the situation.

Activity

  1. added this to the 1.4.1 milestone on Feb 16, 2025
  2. ThomasWaldmann commented on Feb 16, 2025

    @ThomasWaldmann
    Member

    Can you please:

    • reproduce this
    • add the log output to the top post
    • describe whether that causes any permanent problem besides the fs being full
  3. drws commented on Mar 6, 2025

    @drws
    Author

    I encountered the issue in a production environment so I'd rather not try to reproduce the exact scenario (I could try something in a VM if it helps), but I do remember some specifics which might help. First of all, the listed not-found files were cache files, not the actual files processed. After seeing errors I stopped the operation with SIGINT, deleted the allegedly corrupted cache and enlarged its storage. Listing repository contents, a consistency check and successful later backups indicate repository is fine.

    Thinking about it now I'm unsure whether I also did any server-side cleanup (besides the consistency check), could that be a problem?

  4. ThomasWaldmann commented on Mar 6, 2025

    @ThomasWaldmann
    Member

    @drws I don't think a server-side cleanup should be needed if you ran into an out-of-space issue client-side.

  5. modified the milestones: 1.4.1, 1.4.2 on Apr 15, 2025
  6. modified the milestones: 1.4.2, 1.4.3 on Oct 11, 2025
  7. modified the milestones: 1.4.3, 1.4.4 on Nov 20, 2025
  8. modified the milestones: 1.4.4, 1.4.5 on Mar 17, 2026
  9. modified the milestones: 1.4.5, 1.4.6 on Jun 25, 2026
  10. ThomasWaldmann commented on Nov 5, 2026

    @ThomasWaldmann
    Member

    This should be fixed in 1.4.5 by #9854 (commit 0c6e8e1). Before that, the checkpoint code (which also writes the local cache) ran inside a backup_io('read') wrapper, so a full cache partition became per-file warnings and borg create kept going. Now an ENOSPC there is critical: borg aborts (rc 2) and rolls back the partial transaction, and the next run works once space is freed. Closing. Please reopen if you still see this with 1.4.5 or later.

  11. modified the milestones: 1.4.6, 1.4.5 on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions