Skip to content

Retry temporary rclone backend errors#5251

Merged
MichaelEischer merged 5 commits intorestic:masterfrom
MichaelEischer:rclone-retries
Mar 22, 2025
Merged

Retry temporary rclone backend errors#5251
MichaelEischer merged 5 commits intorestic:masterfrom
MichaelEischer:rclone-retries

Conversation

@MichaelEischer
Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer commented Feb 17, 2025

What does this PR change? What problem does it solve?

rclone backends apparently sometimes temporarily report a file as missing even though it actually exists. This results in problems with the backend error redesign in restic 0.17.0, which relies on accurate information about missing files. Thus this PR reintroduces a limited number of retries when using rclone as backend.

Was the change previously discussed in an issue or on the forum?

Fixes https://forum.restic.net/t/data-does-not-exist-check-successful-on-second-attempt-but-restic-returns-non-zero-error-code/9117
Fixes https://forum.restic.net/t/fatal-repository-contains-errors-when-only-errors-are-successfully-retried-operations/8971

Checklist

  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I'm done! This pull request is ready for review.

Copy link
Copy Markdown
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MichaelEischer MichaelEischer merged commit 4454773 into restic:master Mar 22, 2025
11 checks passed
@MichaelEischer MichaelEischer deleted the rclone-retries branch March 22, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant