You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustic check prints lots of "pack XXXXXXXX is referenced by the index but not present! To repair: 'rustic repair index'" on a restic checked repo #1671
changed the title [-]rustic check prints lots of "pack fbe9ce2b is referenced by the index but not present! To repair: 'rustic repair index'" on a restic checked repo[/-][+]rustic check prints lots of "pack XXXXXXXX is referenced by the index but not present! To repair: 'rustic repair index'" on a restic checked repo[/+]on Feb 10, 2026
Anything I can do to help progress on this one? As you can imagine I'm mostly concerned with the health of my repo, with two tools telling me different things about the status of it..
@zuzzurro Did you run a rustic repair index as proposed? Afterwards, check shouldn't print out these errors anymore. And if there is no other error, your repo should be sane.
To give some background (what I think is happening here): rustic prune does not directly delete pack files, but only mark them as unused in a separate index structure. This index structure is not read by restic, but only by rustic. So, a follow-up restic prune may just remove these pack files as they are not indexed. Then the rustic check would complain about indexed, but not present pack files.
Altogether, if this is the only error reported by rustic check and restic check doesn't report any error, there is no problem about repository integrity, only a mixing of somewhat incompatible prune behavior. I'll think about how we can handle such a case more nicely within rustic...
OK, I did that on the second copy of the backup and now both restic and rustic say they are fine. rustic just removed all the unreferenced packs. Thanks for the explanation... I'm crossing my fingers the repo will be fine the moment I actually need to restore some files :-)
I added better output for the check errors in rustic-rs/rustic_core#484.
Besides this, I'll close this issue as it can be explained by restic prune runs on the same repository.
Activity
[-]rustic check prints lots of "pack fbe9ce2b is referenced by the index but not present! To repair: 'rustic repair index'" on a restic checked repo[/-][+]rustic check prints lots of "pack XXXXXXXX is referenced by the index but not present! To repair: 'rustic repair index'" on a restic checked repo[/+]aawsome commentedon Feb 10, 2026
Hi @zuzzurro!
Could it be that you are running both
rustic pruneandrestic pruneon this repo?zuzzurro commentedon Feb 10, 2026
I may have tried either one or both some six months back but I do not remember for sure. Why? Can it cause problems?
zuzzurro commentedon Feb 16, 2026
Anything I can do to help progress on this one? As you can imagine I'm mostly concerned with the health of my repo, with two tools telling me different things about the status of it..
aawsome commentedon Feb 20, 2026
@zuzzurro Did you run a
rustic repair indexas proposed? Afterwards,checkshouldn't print out these errors anymore. And if there is no other error, your repo should be sane.To give some background (what I think is happening here):
rustic prunedoes not directly delete pack files, but only mark them as unused in a separate index structure. This index structure is not read by restic, but only by rustic. So, a follow-up resticprunemay just remove these pack files as they are not indexed. Then therustic checkwould complain about indexed, but not present pack files.Altogether, if this is the only error reported by
rustic checkandrestic checkdoesn't report any error, there is no problem about repository integrity, only a mixing of somewhat incompatible prune behavior. I'll think about how we can handle such a case more nicely within rustic...zuzzurro commentedon Feb 20, 2026
OK, I did that on the second copy of the backup and now both restic and rustic say they are fine. rustic just removed all the unreferenced packs. Thanks for the explanation... I'm crossing my fingers the repo will be fine the moment I actually need to restore some files :-)
fix: Add information about to_delete to check errors (#484)
aawsome commentedon Feb 28, 2026
I added better output for the check errors in rustic-rs/rustic_core#484.
Besides this, I'll close this issue as it can be explained by
restic pruneruns on the same repository.