Region is needed when using custom s3 endpoint
Currently testing out the hetzner object storage beta with this config:
[repository]
repository = "opendal:s3"
password = "XXX"
[repository.options]
access_key_id = "XXX"
secret_access_key = "XXX"
bucket = "bucket-name"
root = "/"
endpoint = "https://fsn1.your-objectstorage.com"
# region = "us-east-1"
When not using region, opendal fails:
error: backend openDAL Backend cannot be loaded: ConfigInvalid (permanent) at Builder::build, context: { service: s3 } => region is missing. Please find it by S3::detect_region() or set them in env.
When commenting out the region key, it works.
Thanks for opening this issue @kkettinger
This is actually how opendal is working, see https://opendal.apache.org/docs/rust/opendal/services/struct.S3.html.
We can't fix this in rustic. If you want to have it fixed, can you please open an issue for opendal: https://github.com/apache/opendal/issues/new/choose
Thanks!
// Set the region. This is required for some services, if you don't care about it, for example Minio service, just set it to "auto", it will be ignored.
Probably worth to keep it, and set it to 'auto', then?
// Set the region. This is required for some services, if you don't care about it, for example Minio service, just set it to "auto", it will be ignored.
Probably worth to keep it, and set it to 'auto', then?
Setting to "auto" works!
@kkettinger Can you close this issue?