How to repair "has nil blob list"

Hi,

I run daily backup, forget and check in that order. Today I recieved following error from check:

root@host ~ # restic check
using temporary cache in /tmp/restic-check-cache-440132791
repository 38d9a80c opened successfully, password is correct
created new cache in /tmp/restic-check-cache-440132791
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
error for tree ff1a4be5:
  tree ff1a4be5: file "mt-178-495x1000.jpg" has nil blob list
error for tree efa87df6:
  tree efa87df6: file "mt-178-495x1000.jpg" has nil blob list
Fatal: repository contains errors

So I updated restic from 0.9.4 to 10.0.0 by using “restic self-update” and then rerun an backup. But the error still exists.

What to do to fix this?

best regards, Ronny

You can use restic find --tree efa87df6 ff1a4be5 to search for the snapshots which contain the broken file and then forget those. What’s a bit worrying is that the “nil blob list” error should only be triggered by very old restic versions (far older than 0.9.0).

I’ve retraced the internal file metadata structures in 0.9.4 and 0.10.0, and I have no clue how a nil blob list could be created if it didn’t exist before.