AWS Amazon S3 - Cloud Credentials - add region.

dvc9

Explorer
Joined
May 2, 2012
Messages
72
Hey!
I'm testing different Cloud Credentials,
my goal is to create a Backup of my server on the cloud.

On AWS S3 I hoverer found an strange "bug" or missing option.
Im located in Norway, therefor when creating an S3 Bucket, I select (EU) Stockholm as a Region.

All is working perfectly, I can add the Access key ID & Secret access key, and leave the rest empty as stated in the Manual
However it looks like there is an option missing, as stated in the error message :

Code:
2019/03/07 20:02:26 ERROR : : error reading destination directory: BucketRegionError: incorrect region, the bucket is not in 'us-east-1' region
    status code: 301, request id: , host id:
2019/03/07 20:02:26 INFO  : S3 bucket ***productionbackup path ***/: Waiting for checks to finish
2019/03/07 20:02:26 INFO  : S3 bucket ***productionbackup path ***/: Waiting for transfers to finish
2019/03/07 20:02:26 ERROR : S3 bucket ***productionbackup path ***/: not deleting files as there were IO errors
2019/03/07 20:02:26 ERROR : S3 bucket ***productionbackup path ***/: not deleting directories as there were IO errors
2019/03/07 20:02:26 ERROR : Attempt 1/3 failed with 1 errors and: not deleting files as there were IO errors


I got this working on my local Mac, when I doublecheck the configs, then i see following :
region = eu-north-1
location_constraint = eu-north-1

My thought then is to test if I can add this manual into a config file on my FreeNAS ?
or is FreeNAS on an older version of rclone without this support?

So Question :)

Where can i find the settings file for rclone in FreeNAS ?
I would like to add those variables manually.

This variables should also be added to the FreeNAS Backlog.
 

jfreenas

Cadet
Joined
Nov 11, 2019
Messages
1
Not sure this was fixed. Ended up editing /usr/local/lib/python3.6/site-packages/middlewared/rclone/remote/s3.py
Changed default regions from us-east-1 to the desired region :cool: Now works.

Endpoint url for cloud credentials: https://s3.<region>.amazonaws.com/<bucket-name>

Should have UI drop-down option to select region within Cloud Credentials for AWS S3.
 
Top