I get this message when running prune. I’m running restic 0.9.3
, the host storing the repo is Debian and I’m backing up an Ubuntu machine. This is my output:
repository 75ed913a opened successfully, password is correct
counting files in repo
building new index for repo
[0:32] 100.00% 24401 / 24401 packs
incomplete pack file (will be removed): a4211ba254b88471e9bd64596f7e48082fd30cf097a743ab7b40f864f4cf7330
incomplete pack file (will be removed): ddf2d259ffcd45d434f00806e3730f10f6f1f964c981ed180075d4237e79bb0f
incomplete pack file (will be removed): 5f3c5666bbaedbe175da089925e1ea35f26d3bce38f57a88e6ffa65f159463c5
incomplete pack file (will be removed): 4193897d4943c903ac10ca44a253a0ccb2c3900f34db2b5611c90181d83fb678
incomplete pack file (will be removed): faaa65c6100f48890934cdcefec6bc33d277f75574e55983f3420aafe34741ab
incomplete pack file (will be removed): 4cda4347e13636d9eb71fb7edc29f706cf0b97906c3b691f6f5deb6956191d40
incomplete pack file (will be removed): 152b1481a59d8273c0028b5aaa8726ef85066236995015645109960b2033fcbf
repository contains 24394 packs (254518 blobs) with 108.574 GiB
processed 254518 blobs: 0 duplicate blobs, 0B duplicate
load all snapshots
find data that is still in use for 51 snapshots
[0:07] 100.00% 51 / 51 snapshots
Fatal: number of used blobs is larger than number of available blobs!
Please report this error (along with the output of the 'prune' run) at
https://github.com/restic/restic/issues/new
Still, running backups works and it doesn’t complain. I ran rebuild-index
, check
and it says:
using temporary cache in /tmp/restic-check-cache-776913306
repository 75ed913a opened successfully, password is correct
created new cache in /tmp/restic-check-cache-776913306
create exclusive lock for repository
load indexes
check all packs
pack 4cda4347: not referenced in any index
pack 4193897d: not referenced in any index
pack faaa65c6: not referenced in any index
pack ddf2d259: not referenced in any index
pack a4211ba2: not referenced in any index
pack 5f3c5666: not referenced in any index
pack 152b1481: not referenced in any index
7 additional files were found in the repo, which likely contain duplicate data.
You can run `restic prune` to correct this.
check snapshots, trees and blobs
error for tree ac08e4f0:
tree ac08e4f0: file "d8cbe80e7ffd44acbea278507ecd65d8-device-volumes.tdb" blob 0 size could not be found
tree ac08e4f0, blob eb4c8c4c: not found in index
error for tree fd2c7606:
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 191 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 193 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 194 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 201 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 202 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 204 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 205 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 220 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 221 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 224 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 227 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 228 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 229 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 231 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 232 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 286 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 287 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 290 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 295 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 298 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 300 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 302 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 330 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 337 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 339 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 341 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 343 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 346 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 347 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 349 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 351 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 352 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 353 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 354 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 358 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 359 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 360 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 363 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 364 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 365 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 369 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 370 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 371 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3872 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 7643 size could not be found
tree fd2c7606: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 8896 size could not be found
tree fd2c7606, blob f5e26eac: not found in index
tree fd2c7606, blob f1ef845f: not found in index
tree fd2c7606, blob 658910ec: not found in index
tree fd2c7606, blob fd05611a: not found in index
tree fd2c7606, blob 34fd46d3: not found in index
tree fd2c7606, blob 8498c836: not found in index
tree fd2c7606, blob f4cf51e2: not found in index
tree fd2c7606, blob 25ab5818: not found in index
tree fd2c7606, blob 1819b147: not found in index
tree fd2c7606, blob e9abece4: not found in index
tree fd2c7606, blob 8846b4ed: not found in index
tree fd2c7606, blob 9a61985a: not found in index
tree fd2c7606, blob 1c6a1c49: not found in index
tree fd2c7606, blob 5f0f0cae: not found in index
tree fd2c7606, blob 5680a992: not found in index
tree fd2c7606, blob a916d525: not found in index
tree fd2c7606, blob 89b72aa1: not found in index
tree fd2c7606, blob c6418b93: not found in index
tree fd2c7606, blob 5b68bc8f: not found in index
tree fd2c7606, blob f6be3b3d: not found in index
tree fd2c7606, blob 01fdd840: not found in index
tree fd2c7606, blob 40ae55ee: not found in index
tree fd2c7606, blob 7e88171b: not found in index
tree fd2c7606, blob 798b7f1e: not found in index
tree fd2c7606, blob 3ba22ccf: not found in index
tree fd2c7606, blob 4c0849fb: not found in index
tree fd2c7606, blob a6a7daf7: not found in index
tree fd2c7606, blob 9dcd1d31: not found in index
tree fd2c7606, blob b962369b: not found in index
tree fd2c7606, blob 2e116b27: not found in index
tree fd2c7606, blob 5cf76ddd: not found in index
tree fd2c7606, blob 7be16ddf: not found in index
tree fd2c7606, blob 8b0bfd2b: not found in index
tree fd2c7606, blob e9926f0f: not found in index
tree fd2c7606, blob 7b28ed57: not found in index
tree fd2c7606, blob df684f97: not found in index
tree fd2c7606, blob 4d54d4c8: not found in index
tree fd2c7606, blob 796c2294: not found in index
tree fd2c7606, blob 033192c0: not found in index
tree fd2c7606, blob 3b3b0ab2: not found in index
tree fd2c7606, blob 780a44b7: not found in index
tree fd2c7606, blob 07142166: not found in index
tree fd2c7606, blob 3611aa2a: not found in index
tree fd2c7606, blob fb2e726f: not found in index
tree fd2c7606, blob 13aa5ee5: not found in index
tree fd2c7606, blob 84d47d3f: not found in index
error for tree c80b0385:
tree c80b0385: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3872 size could not be found
tree c80b0385: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 7641 size could not be found
tree c80b0385: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 8895 size could not be found
tree c80b0385, blob fb2e726f: not found in index
tree c80b0385, blob 13aa5ee5: not found in index
tree c80b0385, blob 84d47d3f: not found in index
error for tree 4430a525:
tree 4430a525: file "d8cbe80e7ffd44acbea278507ecd65d8-device-volumes.tdb" blob 0 size could not be found
tree 4430a525, blob eb4c8c4c: not found in index
error for tree 45b1a9fb:
tree 45b1a9fb: file "local-log_2018-11-06-19:00" blob 0 size could not be found
tree 45b1a9fb: file "local-log_2018-11-06-21:00" blob 0 size could not be found
tree 45b1a9fb: file "rsync-log_2018-11-06-20:10" blob 0 size could not be found
tree 45b1a9fb, blob 32c4fe85: not found in index
tree 45b1a9fb, blob 7fbf7a8b: not found in index
tree 45b1a9fb, blob 8a15704b: not found in index
error for tree e5954881:
tree e5954881: file "rhythmdb.xml" blob 0 size could not be found
tree e5954881: file "rhythmdb.xml" blob 1 size could not be found
tree e5954881: file "rhythmdb.xml" blob 5 size could not be found
tree e5954881: file "rhythmdb.xml" blob 6 size could not be found
tree e5954881, blob db5808b1: not found in index
tree e5954881, blob 47fba7c6: not found in index
tree e5954881, blob e5028949: not found in index
tree e5954881, blob e8df5c77: not found in index
error for tree 55249162:
tree 55249162: file "4c134e0dedda492393414cc1ecc47171.manager" blob 6 size could not be found
tree 55249162: file "4c134e0dedda492393414cc1ecc47171.manager" blob 48 size could not be found
tree 55249162, blob 92ef75c2: not found in index
tree 55249162, blob 9df4d307: not found in index
error for tree 17dd982c:
tree 17dd982c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3881 size could not be found
tree 17dd982c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3884 size could not be found
tree 17dd982c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 7599 size could not be found
tree 17dd982c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 8850 size could not be found
tree 17dd982c, blob fb2e726f: not found in index
tree 17dd982c, blob 2b15a7d2: not found in index
tree 17dd982c, blob 13aa5ee5: not found in index
tree 17dd982c, blob 84d47d3f: not found in index
error for tree ed307211:
tree ed307211: file "local-log_2018-11-06-19:00" blob 0 size could not be found
tree ed307211: file "rsync-log_2018-11-06-20:10" blob 0 size could not be found
tree ed307211, blob 32c4fe85: not found in index
tree ed307211, blob 8a15704b: not found in index
error for tree 58b4abfb:
tree 58b4abfb: file "000282.log" blob 0 size could not be found
tree 58b4abfb, blob fcfad676: not found in index
error for tree 19ea73f0:
tree 19ea73f0: file "4c134e0dedda492393414cc1ecc47171.manager" blob 0 size could not be found
tree 19ea73f0: file "4c134e0dedda492393414cc1ecc47171.manager" blob 6 size could not be found
tree 19ea73f0: file "4c134e0dedda492393414cc1ecc47171.manager" blob 12 size could not be found
tree 19ea73f0: file "4c134e0dedda492393414cc1ecc47171.manager" blob 17 size could not be found
tree 19ea73f0: file "4c134e0dedda492393414cc1ecc47171.manager" blob 33 size could not be found
tree 19ea73f0: file "4c134e0dedda492393414cc1ecc47171.manager" blob 48 size could not be found
tree 19ea73f0: file "4c134e0dedda492393414cc1ecc47171.manager" blob 59 size could not be found
tree 19ea73f0, blob 31f22e2e: not found in index
tree 19ea73f0, blob 92ef75c2: not found in index
tree 19ea73f0, blob 5075ee5f: not found in index
tree 19ea73f0, blob b497b70a: not found in index
tree 19ea73f0, blob b2bf9429: not found in index
tree 19ea73f0, blob 9df4d307: not found in index
tree 19ea73f0, blob 138c8a18: not found in index
error for tree 3d21062a:
tree 3d21062a: file "file" blob 0 size could not be found
tree 3d21062a: file "file" blob 6 size could not be found
tree 3d21062a: file "file" blob 12 size could not be found
tree 3d21062a: file "file" blob 17 size could not be found
tree 3d21062a: file "file" blob 33 size could not be found
tree 3d21062a: file "file" blob 48 size could not be found
tree 3d21062a: file "file" blob 59 size could not be found
tree 3d21062a: file "file" blob 6 size could not be found
tree 3d21062a: file "file" blob 48 size could not be found
tree 3d21062a, blob 31f22e2e: not found in index
tree 3d21062a, blob 92ef75c2: not found in index
tree 3d21062a, blob 5075ee5f: not found in index
tree 3d21062a, blob b497b70a: not found in index
tree 3d21062a, blob b2bf9429: not found in index
tree 3d21062a, blob 9df4d307: not found in index
tree 3d21062a, blob 138c8a18: not found in index
tree 3d21062a, blob 92ef75c2: not found in index
tree 3d21062a, blob 9df4d307: not found in index
error for tree f02fc452:
tree f02fc452: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3879 size could not be found
tree f02fc452: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3880 size could not be found
tree f02fc452: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3882 size could not be found
tree f02fc452: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3883 size could not be found
tree f02fc452: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3884 size could not be found
tree f02fc452: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 7587 size could not be found
tree f02fc452: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 8838 size could not be found
tree f02fc452, blob fb2e726f: not found in index
tree f02fc452, blob 80ebbc47: not found in index
tree f02fc452, blob 2b15a7d2: not found in index
tree f02fc452, blob b7d74a00: not found in index
tree f02fc452, blob 6c83cead: not found in index
tree f02fc452, blob 13aa5ee5: not found in index
tree f02fc452, blob 84d47d3f: not found in index
error for tree 06be86f1:
tree 06be86f1: file "http_127.0.0.1_55555.localstorage-shm" blob 0 size could not be found
tree 06be86f1: file "http_127.0.0.1_55555.localstorage-wal" blob 0 size could not be found
tree 06be86f1, blob 38b1969c: not found in index
tree 06be86f1, blob 30f31282: not found in index
error for tree 5d861a1d:
tree 5d861a1d: file "file" blob 0 size could not be found
tree 5d861a1d: file "file" blob 6 size could not be found
tree 5d861a1d: file "file" blob 12 size could not be found
tree 5d861a1d: file "file" blob 17 size could not be found
tree 5d861a1d: file "file" blob 33 size could not be found
tree 5d861a1d: file "file" blob 48 size could not be found
tree 5d861a1d: file "file" blob 59 size could not be found
tree 5d861a1d, blob 31f22e2e: not found in index
tree 5d861a1d, blob 92ef75c2: not found in index
tree 5d861a1d, blob 5075ee5f: not found in index
tree 5d861a1d, blob b497b70a: not found in index
tree 5d861a1d, blob b2bf9429: not found in index
tree 5d861a1d, blob 9df4d307: not found in index
tree 5d861a1d, blob 138c8a18: not found in index
error for tree 8e23e83c:
tree 8e23e83c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3878 size could not be found
tree 8e23e83c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3881 size could not be found
tree 8e23e83c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 3882 size could not be found
tree 8e23e83c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 7561 size could not be found
tree 8e23e83c: file "{8636e43b-5952-41ea-a09c-8679ff84055a}.vdi" blob 8811 size could not be found
tree 8e23e83c, blob fb2e726f: not found in index
tree 8e23e83c, blob 2b15a7d2: not found in index
tree 8e23e83c, blob b7d74a00: not found in index
tree 8e23e83c, blob 13aa5ee5: not found in index
tree 8e23e83c, blob 84d47d3f: not found in index
Fatal: repository contains errors
Before this I had a minor problem with the disk I am storing the repo. I repair it and then move the repo again to the disk.
How could I solve this? Is this a bug?
Edit:
I think this was my fault. Initially my problem was that I had some data with ????
permissions. So I searched and found that maybe was something wrong with my disk. At first I thought it was the repo. So, the day before that I made a copy of my repo (usually I do make a copy of my repo every week or so). So I used fsck
and the problem was gone. I transferred my repo again to my main disk and then this “fatal” error happened. What I think the problem was that maybe while I was copying the repo from one disk to another there was some machine doing a backup at the same time, so rsync
didn’t notice that there was some data being transferred at the same time so the repo at the end is incomplete, missing data; leaving me no option than to start a new one.
I was going to delete this but I read recently a question about copying the repo to another location, which I think cause this problem. It seems like it is not a good practice to copy the repo while others processes are running. If I’m wrong and there is a way to fix this, please let me know. I may be wrong, I don’t know.