Restic check failures after upgrading to 0.9.0

Hi folks,

I’m having trouble with “restic check” failing on my local repository after upgrading to 0.9.0. The first backup took a long time, as mentioned in the release notes, and succeeded, but after this first backup and subsequent backups, I’m getting fatal errors when running “restic check”. I run “restic check” after every backup or prune operation and it has run clean on every backup and prune before the upgrade.

Here’s what check shows:

using temporary cache in /tmp/restic-check-cache-207486998
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
error for tree da9c3c89:
  EOF
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 422.681235ms: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 751.67125ms: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 1.335946766s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 2.289883062s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 2.944521523s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 2.056574586s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 5.806512301s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 9.238188946s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 14.188976508s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
Load(<data/b39d209d07>, 0, 0) returned error, retrying after 21.782241785s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b39d209d075028da7e6b5a85f033f6589c9f47184b7b8eeb8f6a902436b36e52: file exists
error for tree d04765ea:
  EOF
error for tree b453bc2d:
  EOF
error for tree 6fb824b2:
  EOF
error for tree cf8add8e:
  EOF
error for tree 3673ab34:
  EOF
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 651.246582ms: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 695.151403ms: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 795.045989ms: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 530.701382ms: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 985.630512ms: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 1.229767982s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 1.33495044s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 1.044776904s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 2.92729338s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 3.371335934s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 1.922171516s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 3.675276121s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 6.075245468s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 8.257801962s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 4.887612895s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 9.389076108s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 15.13215126s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 18.548000292s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Load(<data/b324d80952>, 0, 0) returned error, retrying after 15.390605458s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/b3/b324d80952cf023cee3c92d7e88d4ddab3d8d668a2157a0b733ae3a967cf95ff: file exists
Load(<data/79b1431ef9>, 0, 0) returned error, retrying after 20.446865651s: Create: open /tmp/restic-check-cache-207486998/706073a0ac81ec60bf120ddb2b816afcbaf4277e7ce5102e24f85975f582fd13/data/79/79b1431ef9eb199feea00924d4ab66080c7dfd6de03ba04522b3735f53b25569: file exists
Fatal: repository contains errors

I tried “rebuild-index” already but that did not help. Can you please advise on how to recover my repository from these errors? Can I delete the snapshots with the errors and move on? Thanks.

Oh, interesting, that’s a bug! Does it happen all the time?

Would you mind filing a new issue on GitHub so we can find out what’s going on? Thanks!

Your repository and the snapshots therein are fine by the way, there’s just something odd going on with the temporary cache restic check creates during the check. You can disable it by running restic check with the option --no-cach (although then the check will take longer).

Thanks for the reply, fd0, and thanks for confirming it is a check cache issue and not a problem with my repository!

It happened yesterday after my first manual backup after upgrading to 0.9.0 and again this morning after my scheduled daily backup ran. The second backup has more errors shown than the first. I will try with --no-cache and see how it goes.

I will open a GitHub issue later today when I have access to the computer again to provide all of the requested information in the issue template. I’ll update this thread when I do so. Thanks again!

I opened the following issue: https://github.com/restic/restic/issues/1833

Thanks again for the quick assistance, fd0. I did verify that restic check works and reports no errors in my repository when I use --no-cache.

2 Likes