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

Backups fail with "unable to save snapshot" - no retries #4706

Open
ItalyPaleAle opened this issue Feb 24, 2024 · 0 comments
Open

Backups fail with "unable to save snapshot" - no retries #4706

ItalyPaleAle opened this issue Feb 24, 2024 · 0 comments

Comments

@ItalyPaleAle
Copy link

Output of restic version

restic 0.16.2 compiled with go1.21.3 on linux/amd64

(Installed from the Fedora repositories)

What backend/service did you use to store the repository?

Restic REST server, running on a RPi and connected via Tailscale

Problem description / Steps to reproduce

The connection between the source and the target server (REST server running on a RPi) is not always stable. Backups are often failing with a network error while saving snapshots:

Fatal: unable to save snapshot: Post "http://:***@100.xxx.xxx.xxx:4848/xxx/data/5d0094bb55e5b179bcfc04febe8dba95ae3e0ff43ed9176220c1f0432295910f": readfrom tcp 100.xxx.xxx.xxx:39242->100.xxx.xxx.xxx:4848: write tcp 100.xxx.xxx.xxx:39242->100.xxx.xxx.xxx:4848: write: connection timed out

Note that sometimes the error is different, such as a "connection timed out" on the read side. All of the errors are network-related.

Expected behavior

In case of network failures, Restic should automatically retry the operation, with an exponential backoff.

Actual behavior

Restic shows a fatal error, aborts the backup, and exits.

Do you have any idea what may have caused this?

I suspect the operation of saving a snapshot is not retried in case of transient network failures.

Did restic help you today? Did it make you happy in any way?

Restic helps me every day :) It also saved my bottom at least once. I am running it on my servers as well as my Linux dev box, and I've been recommending it to others!

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

No branches or pull requests

1 participant