Skip to content

prune on b2: restic stopped reading files for new index after 36k files #2024

@fd0

Description

@fd0

Output of restic version

0.9.2

How did you run restic exactly?

restic prune

What backend/server/service did you use to store the repository?

B2

Expected behavior

Prune successfully

Actual behavior

building new index for repo
[1:28:48] 68.48%  36000 / 52567 packs
repository contains 36000 packs (606127 blobs) with 170.894 GiB
processed 606127 blobs: 0 duplicate blobs, 0B duplicate
load all snapshots
find data that is still in use for 8 snapshots
[0:33] 100.00%  8 / 8 snapshots
Fatal: number of used blobs is larger than number of available blobs!

Steps to reproduce the behavior

no idea

Do you have any idea what may have caused this?

Yep, when List() returns an error, it is silently discarded here:

_ = repo.List(ctx, restic.DataFile, func(id restic.ID, size int64) error {

Do you have an idea how to solve the issue?

Pass the error up the call chain and/or retry it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions