Skip to content

Not retrying to load config #5081

@Mika56

Description

@Mika56

Output of restic version

restic 0.17.1 compiled with go1.23.1 on linux/amd64

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

S3 on Scaleway

Problem description / Steps to reproduce

Scaleway recently introduced rate limits on their object storage service.
Running multiple restic backup in a row will result in:

Fatal: unable to open config file: Stat: Reduce your request rate.
Is there a repository at the following location?
s3:https://s3.fr-par.scw.cloud/<redacted>

Expected behavior

While Restic does retry network calls when reading and writing on network, it does not seem to be the case when opening configuration.

Actual behavior

Restic does not retry reading config, and fails immediately

Do you have any idea what may have caused this?

restic/cmd/restic/global.go

Lines 648 to 650 in efec1a5

if err != nil {
return nil, errors.Fatalf("unable to open config file: %v\nIs there a repository at the following location?\n%v", err, location.StripPassword(gopts.backends, s))
}

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

Thank you for building an awesome, robust and free backup software! ❤️

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions