I’ve created a Bucket in the S3 Region ap-southeast-2 - Asia Pacific Sydney. I’ve configured rclone to use this region and location restriction but I’m still getting the following error:
BucketRegionError: incorrect region, the bucket is not in ‘ap-southeast-2’ region
In the S3 console it specifies the Asia Pacific Sydney region and I made sure to select that when I created the bucket.
The interesting thing is that I’m only getting an error when I attempt the “rclone sync” command. If I attempt a “rclone ls” command I can list the directory contents. Although it does generate an Error: Entry doesn’t belong in directory “test folder” (same as directory) - ignoring.
The actual error I’m receiving is:
ERROR : : error reading destination directory: BucketRegionError: incorrect region, the bucket is not in 'ap-southeast-2' region status code: 301, request id: , host id:
The IAM user I’ve created has the required permissions:
Your config looks OK. Try removing the bucket and re-creating it - maybe it got created in a different region by accident? rclone rmdir s3:bucket to remove an empty bucket. or rclone purge s3:bucket to remove the contents and the bucket. Then use rclone mkdir s3:bucket to re-create the bucket. Or you could create a new one to test with.