Skip to content

Garbage collection failed #403

@iammarxg

Description

@iammarxg

Hi. When I type "backup gc" it says garbage collection failed. It doesn't delete the backups.

I have tried running "backup prune" as well and it prunes the images successfully, but doesn't delete (as it says in the docs).

This is a major issue since it corrupted my latest backup and my world because my SSD ran out of storage, so I had to go back to an hour old backup (my backups happen every 30 minutes).

The main issue is that it fills up my SSD, so every time I have to go to the .git folder and delete everything in there so it doesn't corrupt my world.

Minecraft 1.21.11 Fabric server

backup gc
[01:59:07] [pool-3-thread-16/INFO]: Garbage collection failed.  See log for details.
[01:59:07] [pool-3-thread-16/ERROR]: [STDERR] Prune error: error in `git log`: exit status 128 fatal: unable to read f2437b098289540a81c8ec485f656150672f9e4b
[01:59:07] [pool-3-thread-16/ERROR]: [STDERR] Errors logged to '/home/ammar/Documents/April2026/world/.git/lfs/logs/20260424T015907.015649619.log'.
[01:59:07] [pool-3-thread-16/ERROR]: [STDERR] Use `git lfs logs last` to view the log.
[01:59:07] [pool-3-thread-16/ERROR]: [STDERR] Prune sub-tasks failed, cannot continue
[01:59:07] [pool-3-thread-16/ERROR]: Exit 2 when executing: git -C /home/ammar/Documents/April2026/world -c lfs.pruneoffsetdays=999999 lfs prune --verbose --no-verify-remote
net.pcal.fastback.utils.ProcessException: Exit 2 when executing: git -C /home/ammar/Documents/April2026/world -c lfs.pruneoffsetdays=999999 lfs prune --verbose --no-verify-remote
        at knot//net.pcal.fastback.utils.ProcessUtils.doExec(ProcessUtils.java:81)
        at knot//net.pcal.fastback.utils.ProcessUtils.doExec(ProcessUtils.java:44)
        at knot//net.pcal.fastback.repo.ReclamationUtils.native_doLfsPrune(ReclamationUtils.java:82)
        at knot//net.pcal.fastback.repo.ReclamationUtils.doReclamation(ReclamationUtils.java:68)
        at knot//net.pcal.fastback.repo.RepoImpl.doGc(RepoImpl.java:165)
        at knot//net.pcal.fastback.commands.GcCommand.lambda$gc$0(GcCommand.java:58)
        at knot//net.pcal.fastback.commands.Commands.lambda$gitOp$0(Commands.java:129)                                          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)                                                   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
        at java.base/java.lang.Thread.run(Thread.java:1474)

Config (only local)

backup info
[10:13:11] [Server thread/INFO]:
FastBack Info
-------------
[10:13:11] [Server thread/INFO]: FastBack version: 0.30.0+1.21.11-fabric
[10:13:11] [Server thread/INFO]: git: git version 2.43.0
git-lfs: git-lfs/3.4.1 (GitHub; linux amd64; go 1.22.2)
[10:13:11] [Server thread/INFO]: Backup UUID: E7Zu
[10:13:11] [Server thread/INFO]: World size: 11 GB
[10:13:11] [Server thread/INFO]: Local backup size: 99 GB
[10:13:11] [Server thread/INFO]: backup-enabled = true
[10:13:11] [Server thread/INFO]: remote-url = null
[10:13:11] [Server thread/INFO]: restore-directory = null
[10:13:11] [Server thread/INFO]: autoback-wait = 30
[10:13:11] [Server thread/INFO]: mods-backup-enabled = false
[10:13:11] [Server thread/INFO]: broadcast-enabled = true
[10:13:11] [Server thread/INFO]: broadcast-message = null
[10:13:11] [Server thread/INFO]: Shutdown action: local
[10:13:11] [Server thread/INFO]: Autoback action: local
[10:13:11] [Server thread/INFO]: Snapshot retention policy set to:
[10:13:11] [Server thread/INFO]: Daily: Keep the last snapshot from each day, plus all snapshots from the last 1 days
[10:13:11] [Server thread/INFO]: No remote snapshot retention policy set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions