Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle storage failures more gracefully #1091

Closed
mprasil opened this issue Mar 6, 2024 · 2 comments
Closed

Handle storage failures more gracefully #1091

mprasil opened this issue Mar 6, 2024 · 2 comments
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR

Comments

@mprasil
Copy link

mprasil commented Mar 6, 2024

I had my rustic copy operation fail multiple times with some variation of (I have truncated the long IDs):

[WARN] operation=Writer::close path=data/a7/a79b7... -> retry after 1.347199082s: error=Unexpected (temporary) at Writer::close, context: { url: https://s3.eu-west-1.amazonaws.com/bucket/data/a7/a79b7... , called: http_util::Client::send, service: s3, path: data/a7/a79b7... } => send http request, source: error sending request for url (https://s3.eu-west-1.amazonaws.com/bucket/data/a7/a79b7... ): connection closed before message completed

Then rustic exits with non-zero exit code. Retrying the copy command works as expected and the copy eventually succeeds, but perhaps this could be handled more gracefully with multiple retries?

This is with rustic 0.7.0 using S3 backend.

@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Mar 6, 2024
@aawsome
Copy link
Member

aawsome commented Mar 6, 2024

by default, rustic retries 5 times until it gives up. You can customize this using

[repository.options]
retry = "25" # or any other number

UPDATE: This is the retry per individual read or write access to the backend. Not the total number of retries.

@mprasil
Copy link
Author

mprasil commented Mar 6, 2024

Ah right, I haven't noticed the option in the example configuration. Thank you!

@mprasil mprasil closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants