Copy mkdir etc failed with status code 409

Hi guys!
I have a problem using rclone while copying or making a directory or other commands!

when I am trying to copy a file to S3 client I got this error:

2022/06/28 08:44:11 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "copy" "tmp.log" "******:*******-backup/test" "-P" "-vv"]
2022/06/28 08:44:11 DEBUG : Creating backend with remote "tmp.log"
2022/06/28 08:44:11 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/06/28 08:44:11 DEBUG : fs cache: adding new entry for parent of "tmp.log", "/home/ubuntu"
2022/06/28 08:44:11 DEBUG : Creating backend with remote "**********-backup/test"
2022-06-28 08:44:13 DEBUG : tmp.log: Need to transfer - File not found at Destination
2022-06-28 08:44:13 ERROR : tmp.log: Failed to copy: Conflict: Conflict
        status code: 409, request id: , host id:
2022-06-28 08:44:13 ERROR : Attempt 1/3 failed with 1 errors and: Conflict: Conflict
        status code: 409, request id: , host id:
2022-06-28 08:44:13 DEBUG : tmp.log: Need to transfer - File not found at Destination
2022-06-28 08:44:13 ERROR : tmp.log: Failed to copy: Conflict: Conflict
        status code: 409, request id: , host id:
2022-06-28 08:44:13 ERROR : Attempt 2/3 failed with 1 errors and: Conflict: Conflict
        status code: 409, request id: , host id:
2022-06-28 08:44:13 DEBUG : tmp.log: Need to transfer - File not found at Destination
2022-06-28 08:44:13 ERROR : tmp.log: Failed to copy: Conflict: Conflict
        status code: 409, request id: , host id:
2022-06-28 08:44:13 ERROR : Attempt 3/3 failed with 1 errors and: Conflict: Conflict
        status code: 409, request id: , host id:
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         2.0s
2022/06/28 08:44:13 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         2.0s

2022/06/28 08:44:13 DEBUG : 5 go routines active
2022/06/28 08:44:13 Failed to copy: Conflict: Conflict
	status code: 409, request id: , host id: 

I can copy the directory with the contents successfully but when I'm trying to copy the directory files separately, I receive this error.

I have the same error when making a directory!

How can I solve this error?

Please post your config without the secrets.

Are you sure you own the bucket called naringames-backup?

@ncw Hi, Thanks for your recommendation :pray: .

yes, it's true, I try with another bucket and receive the same error.
directory copy is ok but when I select specific files this occurs.
also, I created a new bucket and the result was the same.
I tried with another S3 account and the result was the same.
I searched for error code 409:

** The HTTP 409 Conflict response status code indicates a request conflict with the current state of the target resource . Conflicts are most likely to occur in response to a PUT request.**

Is there any possibility that a rclone command keeps running somewhere else?
I tried with S3 Browser and uploading is ok!

I solved it finally!!! @ncw

I had some problems like this but I had solved them before,
I used the same flags to solve this problem.
with these flags finally, I could copy files:

rclone copy  wordpress.tar s3:*****/home/  --s3-no-check-bucket -P
1 Like

Great! Yes --no-check-bucket stops rclone seeing whether the bucket exists or not which tight permissions often don't allow.

Now I have another problem!!
files copied successfully but some files have an error:

2022-06-28 17:16:08 ERROR : Attempt 3/3 failed with 40 errors and: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>BadDigest</Code><BucketName>***********</BucketName><RequestId>tx****************38fd819-***********-14a93e3e-default</RequestId><HostId>14a93e3e-default-default</HostId></Error>

when I search the failed upload file name, it exists in S3 !!!
Do you have any idea what is the source of error?
@ncw

What s3 server are you using?

Can you add -vv --dump headers and post the failing request and response.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.