Snapshot GC failure: error running snapshot gc: unable to find in-use content ID

I do a monthly maintenance job on my Kopia instance and have encountered an issue:

docker run --user 0 --rm -e KOPIA_PASSWORD=password -e override-hostname=kopia-server -e TZ=Australia/Sydney kopia/kopia:latest maintenance run
2022-07-06T20:09:48.750275+10:00  Running full maintenance...
2022-07-06T20:09:49.502034+10:00  Looking for active contents...
2022-07-06T20:10:05.677816+10:00 ERROR error processing /xteve/root/cache/images/87ce9acea8a70e89954177a329e4309c.jpg: error verifying **-hash-**: error getting content info for **-hash-**: content not found
2022-07-06T20:10:08.266956+10:00  Finished full maintenance.
2022-07-06T20:10:18.167795+10:00 ERROR snapshot GC failure: error running snapshot gc: unable to find in-use content ID: error processing snapshot root: error verifying **-hash-**: error getting content info for **-hash-**: content not found

This has occurred after I had a power outage during an active backup.

I saw a similar issue raised previously that was sorted by a direct Discord support discussion and am wondering if there was a solution that can be applied.

Any suggestions?

1 Like

Easily fixed (when you know what you’re doing). All it took was:

snapshot fix invalid-files
snapshot fix invalid-files --commit

I’m in awe of the stability and flexibility of Kopia. Thanks again to @jkowalski and all of the contributors.

2 Likes