AWS S3: env var-based command works on rclone 1.67.0 but breaks on later versions

What is the problem you are having with rclone?

I used to copy files to Amazon S3 with rclone, giving parameters using environment variables.
It works with the version 1.67.0, but not with newer versions.

Run the command 'rclone version' and share the full output of the command.

For rclone 1.67.0:

rclone v1.67.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.8.0-59-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: none

For rclone 1.68.0:

rclone v1.68.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.8.0-59-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: none

I have the same behaviour with the same rclone executable files on a different computer.
For rclone 1.67.0:

rclone v1.67.0
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-62-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: none

For rclone 1.68.0:

rclone v1.68.0
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-62-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: none

Outputs are more or less the same for rclone 1.69.0 and rclone 1.70.0 (only the Go version changes).

Which cloud storage system are you using? (eg Google Drive)

Amazon S3

The command you were trying to run (eg rclone copy /tmp remote:tmp)

This command works (see below for the output):

RCLONE_CONFIG_STORAGE_TYPE=s3 \
RCLONE_CONFIG_STORAGE_PROVIDER=AWS \
RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID='EDITED' \
RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY='EDITED' \
RCLONE_CONFIG_STORAGE_REGION=eu-west-3 \
./rclone-1.67.0 copy foo.txt storage:EDITED/foo.txt-1.67.0 -vv

This command doesn't work (only the rclone version changes; see below for the output):

RCLONE_CONFIG_STORAGE_TYPE=s3 \
RCLONE_CONFIG_STORAGE_PROVIDER=AWS \
RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID='EDITED' \
RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY='EDITED' \
RCLONE_CONFIG_STORAGE_REGION=eu-west-3 \
./rclone-1.68.0 copy foo.txt storage:EDITED/foo.txt-1.68.0 -vv

It's the same with newer versions of rclone (only the version number changes).

The rclone config contents with secrets removed.

There is no rclone configuration. All parameters are given using environment variables.

A log from the command with the -vv flag

With rclone version 1.67.0:

2025/06/22 09:15:29 DEBUG : rclone: Version "v1.67.0" starting with parameters ["./rclone-1.67.0" "copy" "foo.txt" "storage:EDITED/foo.txt-1.67.0" "-vv"]
2025/06/22 09:15:29 DEBUG : Creating backend with remote "foo.txt"
2025/06/22 09:15:29 NOTICE: Config file "/home/EDITED/.config/rclone/rclone.conf" not found - using defaults
2025/06/22 09:15:29 DEBUG : fs cache: adding new entry for parent of "foo.txt", "/home/EDITED"
2025/06/22 09:15:29 DEBUG : Creating backend with remote "storage:EDITED/foo.txt-1.67.0"
2025/06/22 09:15:29 DEBUG : Setting type="s3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_TYPE
2025/06/22 09:15:29 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 09:15:29 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 09:15:29 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : storage: detected overridden config - adding "{1BfYY}" suffix to name
2025/06/22 09:15:29 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 09:15:29 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 09:15:29 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 09:15:29 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:29 DEBUG : fs cache: renaming cache item "storage:EDITED/foo.txt-1.67.0" to be canonical "storage{1BfYY}:EDITED/foo.txt-1.67.0"
2025/06/22 09:15:29 DEBUG : foo.txt: Size and modification time the same (differ by 0s, within tolerance 1ns)
2025/06/22 09:15:29 DEBUG : foo.txt: Unchanged skipping
2025/06/22 09:15:29 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Elapsed time:         0.0s

2025/06/22 09:15:29 DEBUG : 6 go routines active

With rclone version 1.68.0 and above:

2025/06/22 09:15:46 DEBUG : rclone: Version "v1.68.0" starting with parameters ["./rclone-1.68.0" "copy" "foo.txt" "storage:EDITED/foo.txt-1.68.0" "-vv"]
2025/06/22 09:15:46 DEBUG : Creating backend with remote "foo.txt"
2025/06/22 09:15:46 NOTICE: Config file "/home/EDITED/.config/rclone/rclone.conf" not found - using defaults
2025/06/22 09:15:46 DEBUG : fs cache: adding new entry for parent of "foo.txt", "/home/EDITED"
2025/06/22 09:15:46 DEBUG : Creating backend with remote "storage:EDITED/foo.txt-1.68.0"
2025/06/22 09:15:46 DEBUG : Setting type="s3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_TYPE
2025/06/22 09:15:46 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 09:15:46 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 09:15:46 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : storage: detected overridden config - adding "{1BfYY}" suffix to name
2025/06/22 09:15:46 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 09:15:46 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 09:15:46 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 09:15:46 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:15:46 DEBUG : fs cache: renaming cache item "storage:EDITED/foo.txt-1.68.0" to be canonical "storage{1BfYY}:EDITED/foo.txt-1.68.0"
2025/06/22 09:15:46 DEBUG : foo.txt: Need to transfer - File not found at Destination
2025/06/22 09:15:46 ERROR : foo.txt: Failed to copy: failed to prepare upload: operation error S3: CreateBucket, https response error StatusCode: 400, RequestID: EDITED, HostID: EDITED, api error IllegalLocationConstraintException: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
2025/06/22 09:15:46 ERROR : Attempt 1/3 failed with 1 errors and: failed to prepare upload: operation error S3: CreateBucket, https response error StatusCode: 400, RequestID: EDITED, HostID: EDITED, api error IllegalLocationConstraintException: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
2025/06/22 09:15:47 DEBUG : foo.txt: Need to transfer - File not found at Destination
2025/06/22 09:15:47 ERROR : foo.txt: Failed to copy: failed to prepare upload: operation error S3: CreateBucket, https response error StatusCode: 400, RequestID: EDITED, HostID: EDITED, api error IllegalLocationConstraintException: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
2025/06/22 09:15:47 ERROR : Attempt 2/3 failed with 1 errors and: failed to prepare upload: operation error S3: CreateBucket, https response error StatusCode: 400, RequestID: EDITED, HostID: EDITED, api error IllegalLocationConstraintException: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
2025/06/22 09:15:47 DEBUG : foo.txt: Need to transfer - File not found at Destination
2025/06/22 09:15:47 ERROR : foo.txt: Failed to copy: failed to prepare upload: operation error S3: CreateBucket, https response error StatusCode: 400, RequestID: EDITED, HostID: EDITED, api error IllegalLocationConstraintException: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
2025/06/22 09:15:47 ERROR : Attempt 3/3 failed with 1 errors and: failed to prepare upload: operation error S3: CreateBucket, https response error StatusCode: 400, RequestID: EDITED, HostID: EDITED, api error IllegalLocationConstraintException: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.
2025/06/22 09:15:47 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.1s

2025/06/22 09:15:47 DEBUG : 6 go routines active
2025/06/22 09:15:47 NOTICE: Failed to copy: failed to prepare upload: operation error S3: CreateBucket, https response error StatusCode: 400, RequestID: EDITED, HostID: EDITED, api error IllegalLocationConstraintException: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.

It looks like rclone 1.68.0+ tries to create the bucket (but it is already created, and the IAM user doesn't have the right to create buckets).

More information

If the file already exists on Amazon S3, there is no error when uploading a new version using rclone 1.68.0+.
Then, this command :

RCLONE_CONFIG_STORAGE_TYPE=s3 \
RCLONE_CONFIG_STORAGE_PROVIDER=AWS \
RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID='EDITED' \
RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY='EDITED' \
RCLONE_CONFIG_STORAGE_REGION=eu-west-3 \
./rclone-1.68.0 copy foo.txt storage:EDITED/foo.txt-1.67.0 -vv

(considering that the file EDITED/foo.txt-1.67.0/foo.txt already exists in the bucket)
Results with:

2025/06/22 09:28:40 DEBUG : rclone: Version "v1.68.0" starting with parameters ["./rclone-1.68.0" "copy" "foo.txt" "storage:EDITED/foo.txt-1.67.0" "-vv"]
2025/06/22 09:28:40 DEBUG : Creating backend with remote "foo.txt"
2025/06/22 09:28:40 NOTICE: Config file "/home/EDITED/.config/rclone/rclone.conf" not found - using defaults
2025/06/22 09:28:40 DEBUG : fs cache: adding new entry for parent of "foo.txt", "/home/EDITED"
2025/06/22 09:28:40 DEBUG : Creating backend with remote "storage:EDITED/foo.txt-1.67.0"
2025/06/22 09:28:40 DEBUG : Setting type="s3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_TYPE
2025/06/22 09:28:40 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 09:28:40 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 09:28:40 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : storage: detected overridden config - adding "{1BfYY}" suffix to name
2025/06/22 09:28:40 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 09:28:40 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 09:28:40 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 09:28:40 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 09:28:40 DEBUG : fs cache: renaming cache item "storage:EDITED/foo.txt-1.67.0" to be canonical "storage{1BfYY}:EDITED/foo.txt-1.67.0"
2025/06/22 09:28:40 DEBUG : foo.txt: Size and modification time the same (differ by 0s, within tolerance 1ns)
2025/06/22 09:28:40 DEBUG : foo.txt: Unchanged skipping
2025/06/22 09:28:40 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Elapsed time:         0.0s

2025/06/22 09:28:40 DEBUG : 6 go routines active
set RCLONE_CONFIG_STORAGE_TYPE=s3
set RCLONE_CONFIG_STORAGE_PROVIDER=AWS
set RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID=redacted
set RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY=redacted
set RCLONE_CONFIG_STORAGE_REGION=eu-west-3
set RCLONE_CONFIG_STORAGE_LOCATION_CONSTRAINT=eu-west-3
set RCLONE_CONFIG_STORAGE_NO_CHECK_BUCKET=true

rclone copy d:\files\file.ext storage:zorkitnow -vv 
DEBUG : rclone: Version "v1.70.1" starting with parameters ["d:\\data\\rclone\\rclone.exe" "copy" "d:\\files\\file.ext" "storage:zorkitnow" "-vv"]
DEBUG : Creating backend with remote "d:\\files\\file.ext"
DEBUG : Using config file from "d:\\data\\rclone\\rclone.conf"
DEBUG : fs cache: renaming child cache item "d:\\files\\file.ext" to be canonical for parent "//?/d:/files"
DEBUG : Creating backend with remote "storage:zorkitnow"
DEBUG : Setting type="s3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_TYPE
DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
DEBUG : Setting access_key_id="redacted" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
DEBUG : Setting secret_access_key="redacted" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
DEBUG : Setting location_constraint="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_LOCATION_CONSTRAINT
DEBUG : Setting no_check_bucket="true" for "storage" from environment variable RCLONE_CONFIG_STORAGE_NO_CHECK_BUCKET
DEBUG : storage: detected overridden config - adding "{i-inA}" suffix to name
DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
DEBUG : Setting access_key_id="redacted" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
DEBUG : Setting secret_access_key="redacted" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
DEBUG : Setting location_constraint="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_LOCATION_CONSTRAINT
DEBUG : Setting no_check_bucket="true" for "storage" from environment variable RCLONE_CONFIG_STORAGE_NO_CHECK_BUCKET
DEBUG : fs cache: renaming cache item "storage:zorkitnow" to be canonical "storage{i-inA}:zorkitnow"
NOTICE: S3 bucket zorkitnow: Switched region to "us-east-1" from "eu-west-3"
DEBUG : pacer: low level retry 1/2 (error operation error S3: HeadObject, https response error StatusCode: 301, RequestID: 7W2NY2098DQYBHJ3, HostID: ENDwKOrwYcd+DbVHindjBWU8vmSHBQlEz8f4lTA/ZGoCUksDGa7ZcHkDPIs7Gg4vf2tUkOQ9uG8=, api error MovedPermanently: Moved Permanently)
DEBUG : pacer: Rate limited, increasing sleep to 10ms
DEBUG : pacer: Reducing sleep to 0s
DEBUG : file.ext: Need to transfer - File not found at Destination
DEBUG : file.ext: md5 = dee1aac4a3da2008154b230303f922b6 OK
INFO  : file.ext: Copied (new)
INFO  : 
Transferred:   	   75.083 KiB / 75.083 KiB, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.1s

I answer to your first message (which you have modified since)

About the last version, everything I wrote about version 1.68.0 and above was tested (with the same results) with the latest version (1.70.1) as well.

I tried with the --s3-no-check-bucket option, and it worked. Thank you!

Here is the result (with version 1.70.1):

RCLONE_CONFIG_STORAGE_TYPE=s3 \
RCLONE_CONFIG_STORAGE_PROVIDER=AWS \
RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID='EDITED' \
RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY='EDITED' \
RCLONE_CONFIG_STORAGE_REGION=eu-west-3 \
./rclone-1.70.1 copy foo.txt storage:EDITED/foo.txt-$VERSION --s3-no-check-bucket -vv

2025/06/22 16:55:38 DEBUG : rclone: Version "v1.70.1" starting with parameters ["./rclone-1.70.1" "copy" "foo.txt" "EDITED/foo.txt-1.70.1" "--s3-no-check-bucket" "-vv"]
2025/06/22 16:55:38 DEBUG : Creating backend with remote "foo.txt"
2025/06/22 16:55:38 NOTICE: Config file "/home/EDITED/.config/rclone/rclone.conf" not found - using defaults
2025/06/22 16:55:38 DEBUG : fs cache: renaming child cache item "foo.txt" to be canonical for parent "/home/amaury/Dev/rclone_bug"
2025/06/22 16:55:38 DEBUG : Creating backend with remote "storage:EDITED/foo.txt-1.70.1"
2025/06/22 16:55:38 DEBUG : Setting type="s3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_TYPE
2025/06/22 16:55:38 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 16:55:38 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 16:55:38 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : storage: detected overridden config - adding "{OfVwx}" suffix to name
2025/06/22 16:55:38 DEBUG : Setting provider="AWS" for "storage" from environment variable RCLONE_CONFIG_STORAGE_PROVIDER
2025/06/22 16:55:38 DEBUG : Setting access_key_id="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_ACCESS_KEY_ID
2025/06/22 16:55:38 DEBUG : Setting secret_access_key="EDITED" for "storage" from environment variable RCLONE_CONFIG_STORAGE_SECRET_ACCESS_KEY
2025/06/22 16:55:38 DEBUG : Setting region="eu-west-3" for "storage" from environment variable RCLONE_CONFIG_STORAGE_REGION
2025/06/22 16:55:38 DEBUG : fs cache: renaming cache item "storage:EDITED/foo.txt-1.70.1" to be canonical "storage{OfVwx}:EDITED/foo.txt-1.70.1"
2025/06/22 16:55:38 DEBUG : foo.txt: Need to transfer - File not found at Destination
2025/06/22 16:55:38 DEBUG : foo.txt: md5 = d3b07384d113edec49eaa6238ad5ff00 OK
2025/06/22 16:55:38 INFO  : foo.txt: Copied (new)
2025/06/22 16:55:38 INFO  : 
Transferred:   	          4 B / 4 B, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.0s

2025/06/22 16:55:38 DEBUG : 6 go routines active

But it's an odd behaviour. Why it worked without this option in version 1.67.0? Why it works without this option when the file already exists on S3? To begin with, why rclone tries to create the bucket when it exists already?

It looks like a regression introduced after version 1.67.0.

I don't know what to think about your test result.
Maybe there is a difference because I'm on Linux? Did the management of environment variables has changed only on Linux but not on Windows?

welcome


i just ran the same test on linux and it worked, exactly the same.