Rclone upload fails for OVHcloud provider with --s3-chunk-size parameter

What is the problem you are having with rclone?

When uploading files via multipart upload (using rcat or copy) to the OVHcloud S3 provider, the upload fails whenever --s3-chunk-size is set to any value other than the default 5Mi.

  • Changing the provider field in the backend definition (AWS, Other, or OVHcloud) does not resolve the issue.
  • The exact same commands work correctly on other S3-compatible providers (AWS, Backblaze, Hetzner).
  • This issue does not occur on older rclone versions: for example, it works correctly with v1.60.1-DEV on the same machine.
  • Uploads of small files (that do not trigger multipart upload) also succeed.

Therefore, the problem appears to be specifically related to multipart uploads on OVHcloud when using custom --s3-chunk-size values in rclone v1.71.2.

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

rclone v1.71.2

  • os/version: ubuntu 24.04 (64 bit)
  • os/kernel: 6.8.0-87-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.25.3
  • go/linking: static
  • go/tags: none

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

Local storage for source, OVHcloud Object Storage (s3.sbg.io.cloud.ovh.net) for destination.

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

cat '/tmp/foo.txt' | rclone rcat -vv --s3-chunk-size 300M ':s3,provider=Other,env_auth=true,region=sbg,endpoint="https://s3.sbg.io.cloud.ovh.net/":bar-bucket/foo.txt'

or

rclone copy -vv --s3-chunk-size 300M '/tmp/foo.txt' ':s3,provider=Other,env_auth=true,region=sbg,endpoint="https://s3.sbg.io.cloud.ovh.net/":bar-bucket/foo.txt'

The rclone config contents with secrets removed.

I do not use a rclone config, I just setup the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY env variables (Allows for command line rclone setup only)

A log from the command with the -vv flag

2025/11/17 14:26:13 DEBUG : rclone: Version "v1.71.2" starting with parameters ["rclone" "rcat" "-vv" "--s3-chunk-size" "300M" ":s3,provider=Other,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":bar-bucket/foo.txt"]
2025/11/17 14:26:13 DEBUG : Creating backend with remote ":s3,provider=Other,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":bar-bucket/"
2025/11/17 14:26:13 DEBUG : Using config file from "/home/francois/.config/rclone/rclone.conf"
2025/11/17 14:26:13 DEBUG : :s3: detected overridden config - adding "{qNhzk}" suffix to name
2025/11/17 14:26:13 DEBUG : fs cache: renaming cache item ":s3,provider=Other,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":bar-bucket/" to be canonical ":s3{qNhzk}:bar-bucket"
2025/11/17 14:26:14 NOTICE: S3 bucket bar-bucket: Streaming uploads using chunk size 300Mi will have maximum file size of 2.861Ti
2025/11/17 14:26:14 DEBUG : foo.txt: open chunk writer: started multipart upload: OWVlYzZhNmUtMmRiNS00MDczLWE1YWUtYTk2MDNkNGUxN2Zh
2025/11/17 14:26:15 DEBUG : foo.txt: multipart upload: starting chunk 0 size 300Mi offset 0/off
2025/11/17 14:26:16 DEBUG : foo.txt: multipart upload: starting chunk 1 size 300Mi offset 300Mi/off
2025/11/17 14:26:16 DEBUG : foo.txt: Cancelling multipart upload
2025/11/17 14:26:16 DEBUG : foo.txt: multipart upload "OWVlYzZhNmUtMmRiNS00MDczLWE1YWUtYTk2MDNkNGUxN2Zh" aborted
2025/11/17 14:26:16 ERROR : foo.txt: Post request rcat error: failed to upload chunk 1 with 314572800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: tx902c2682a3cf4ab39f3e2-00691b2277, HostID: tx902c2682a3cf4ab39f3e2-00691b2277, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 14:26:16 DEBUG : 6 go routines active
2025/11/17 14:26:16 NOTICE: Failed to rcat with 2 errors: last error was: failed to upload chunk 1 with 314572800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: tx902c2682a3cf4ab39f3e2-00691b2277, HostID: tx902c2682a3cf4ab39f3e2-00691b2277, api error IncompleteBody: The request body terminated unexpectedly

A log from the same command working nicely under an older RClone version (v1.60.1):

<7>DEBUG : rclone: Version "v1.60.1-DEV" starting with parameters ["rclone" "rcat" "-vv" "--s3-chunk-size" "300M" ":s3,provider=Other,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":bar-bucket/foo.txt"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote ":s3,provider=Other,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":bar-bucket/"
<7>DEBUG : Using config file from "/home/francois/.config/rclone/rclone.conf"
<7>DEBUG : :s3: detected overridden config - adding "{qNhzk}" suffix to name
<7>DEBUG : fs cache: renaming cache item ":s3,provider=Other,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":bar-bucket/" to be canonical ":s3{qNhzk}:bar-bucket"
<5>NOTICE: S3 bucket bar-bucket: Streaming uploads using chunk size 300Mi will have maximum file size of 2.861Ti
<7>DEBUG : foo.txt: multipart upload starting chunk 1 size 300Mi offset 0/off
<7>DEBUG : foo.txt: multipart upload starting chunk 2 size 300Mi offset 300Mi/off
<7>DEBUG : foo.txt: multipart upload starting chunk 3 size 300Mi offset 600Mi/off
<7>DEBUG : foo.txt: multipart upload starting chunk 4 size 53.674Mi offset 900Mi/off
<7>DEBUG : foo.txt: Dst hash empty - aborting Src hash check
<7>DEBUG : foo.txt: Size of src and dst objects identical
<7>DEBUG : 14 go routines active

welcome to the forum,


for a deeper look at the api calls, can use --dump flags such as --dump=bodies


can you please use OVHcloud when posting debug logs?

Here is the request with OVHcloud as a provider (I also changed the bucket name for simplicity on my side, and the –s3-chunk-size to 50M)

2025/11/17 15:01:13 DEBUG : rclone: Version "v1.71.2" starting with parameters ["rclone" "rcat" "-vv" "--s3-chunk-size" "50M" ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/foo.txt"]
2025/11/17 15:01:13 DEBUG : Creating backend with remote ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/"
2025/11/17 15:01:13 DEBUG : Using config file from "/home/francois/.config/rclone/rclone.conf"
2025/11/17 15:01:13 DEBUG : :s3: detected overridden config - adding "{uOc7Z}" suffix to name
2025/11/17 15:01:13 DEBUG : fs cache: renaming cache item ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/" to be canonical ":s3{uOc7Z}:blg-backup-unittest"
2025/11/17 15:01:13 NOTICE: S3 bucket blg-backup-unittest: Streaming uploads using chunk size 50Mi will have maximum file size of 488.281Gi
2025/11/17 15:01:13 DEBUG : foo.txt: open chunk writer: started multipart upload: NzU1M2UyMzctOTM4OC00MTQ3LWI2ZWItZWI1NzdmNmUwYmVj
2025/11/17 15:01:13 DEBUG : foo.txt: multipart upload: starting chunk 0 size 50Mi offset 0/off
2025/11/17 15:01:13 DEBUG : foo.txt: multipart upload: starting chunk 1 size 50Mi offset 50Mi/off
2025/11/17 15:01:14 DEBUG : foo.txt: multipart upload: starting chunk 2 size 50Mi offset 100Mi/off
2025/11/17 15:01:14 DEBUG : foo.txt: multipart upload: starting chunk 3 size 50Mi offset 150Mi/off
2025/11/17 15:01:14 DEBUG : foo.txt: Cancelling multipart upload
2025/11/17 15:01:14 DEBUG : foo.txt: multipart upload "NzU1M2UyMzctOTM4OC00MTQ3LWI2ZWItZWI1NzdmNmUwYmVj" aborted
2025/11/17 15:01:14 ERROR : foo.txt: Post request rcat error: failed to upload chunk 2 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txb82205f3ca3a41b19c6fc-00691b2aaa, HostID: txb82205f3ca3a41b19c6fc-00691b2aaa, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 15:01:14 DEBUG : 6 go routines active
2025/11/17 15:01:14 NOTICE: Failed to rcat with 2 errors: last error was: failed to upload chunk 2 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txb82205f3ca3a41b19c6fc-00691b2aaa, HostID: txb82205f3ca3a41b19c6fc-00691b2aaa, api error IncompleteBody: The request body terminated unexpectedly

Here are the dump headers

cat '/tmp/tmp-23935-2VhBr8HcyswA/foo.txt' | rclone rcat -vv --s3-chunk-size 50Mi ':s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint="https://s3.sbg.io.cloud.ovh.net/":blg-backup-unittest/foo.txt' --dump=headers
2025/11/17 15:05:35 NOTICE: Automatically setting -vv as --dump is enabled
2025/11/17 15:05:35 DEBUG : rclone: Version "v1.71.2" starting with parameters ["rclone" "rcat" "-vv" "--s3-chunk-size" "50Mi" ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/foo.txt" "--dump=headers"]
2025/11/17 15:05:35 DEBUG : Creating backend with remote ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/"
2025/11/17 15:05:35 DEBUG : Using config file from "/home/francois/.config/rclone/rclone.conf"
2025/11/17 15:05:35 DEBUG : :s3: detected overridden config - adding "{uOc7Z}" suffix to name
2025/11/17 15:05:35 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/11/17 15:05:35 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/11/17 15:05:35 DEBUG : fs cache: renaming cache item ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/" to be canonical ":s3{uOc7Z}:blg-backup-unittest"
2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : HTTP REQUEST (req 0xc0004a0500)
2025/11/17 15:05:35 DEBUG : PUT / HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 0
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 49f912cc-5c8c-4710-b648-1c5cd82d147d
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251117T140535Z

2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : HTTP RESPONSE (req 0xc0004a0500)
2025/11/17 15:05:35 DEBUG : HTTP/1.1 409 Conflict
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Mon, 17 Nov 2025 14:05:35 GMT
X-Amz-Id-2: tx794ab0915b714d3990122-00691b2baf
X-Amz-Request-Id: tx794ab0915b714d3990122-00691b2baf

2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 NOTICE: S3 bucket blg-backup-unittest: Streaming uploads using chunk size 50Mi will have maximum file size of 488.281Gi
2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : HTTP REQUEST (req 0xc001d1d7c0)
2025/11/17 15:05:35 DEBUG : POST /foo.txt?uploads= HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 0
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 9bea1bf1-4528-4d73-9511-0ecf7210fe16
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Type: text/plain; charset=utf-8
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251117T140535Z
X-Amz-Meta-Mtime: 1763388335.155907489

2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : HTTP RESPONSE (req 0xc001d1d7c0)
2025/11/17 15:05:35 DEBUG : HTTP/1.1 200 OK
Content-Length: 273
Content-Type: application/xml
Date: Mon, 17 Nov 2025 14:05:35 GMT
X-Amz-Abort-Date: Fri, 28 Nov 2025 00:00:00 GMT
X-Amz-Abort-Rule-Id: AbortIncompleteMultipart
X-Amz-Id-2: tx4b2d32596d714b5cb3718-00691b2baf
X-Amz-Request-Id: tx4b2d32596d714b5cb3718-00691b2baf

2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : foo.txt: open chunk writer: started multipart upload: NzNjNTJkMDctNGNhYy00YTI5LTlmYjQtOTkzNjA0OWM5Yjk5
2025/11/17 15:05:35 DEBUG : foo.txt: multipart upload: starting chunk 0 size 50Mi offset 0/off
2025/11/17 15:05:35 DEBUG : foo.txt: multipart upload: starting chunk 1 size 50Mi offset 50Mi/off
2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : HTTP REQUEST (req 0xc001d1da40)
2025/11/17 15:05:35 DEBUG : PUT /foo.txt?partNumber=1&uploadId=NzNjNTJkMDctNGNhYy00YTI5LTlmYjQtOTkzNjA0OWM5Yjk5&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 2b0c52df-bf50-4c39-9f4e-c4216b792faa
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: yvQ4FKLBRVLs4c4HohPuHg==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T140535Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : foo.txt: multipart upload: starting chunk 2 size 50Mi offset 100Mi/off
2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : HTTP REQUEST (req 0xc000e51b80)
2025/11/17 15:05:35 DEBUG : PUT /foo.txt?partNumber=2&uploadId=NzNjNTJkMDctNGNhYy00YTI5LTlmYjQtOTkzNjA0OWM5Yjk5&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 70ecf473-9050-4c80-bc61-5e74060624d6
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: 40p8DIlPuOwJX4ZFFW/hGw==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T140535Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : HTTP RESPONSE (req 0xc001d1da40)
2025/11/17 15:05:35 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Mon, 17 Nov 2025 14:05:35 GMT
X-Amz-Id-2: txca59de58a5f140b8ae4ef-00691b2baf
X-Amz-Request-Id: txca59de58a5f140b8ae4ef-00691b2baf

2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : HTTP RESPONSE (req 0xc000e51b80)
2025/11/17 15:05:35 DEBUG : Error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txca59de58a5f140b8ae4ef-00691b2baf, HostID: txca59de58a5f140b8ae4ef-00691b2baf, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : foo.txt: multipart upload: starting chunk 3 size 50Mi offset 150Mi/off
2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : HTTP REQUEST (req 0xc0004e68c0)
2025/11/17 15:05:35 DEBUG : 
2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : HTTP RESPONSE (req 0xc0004e68c0)
2025/11/17 15:05:35 DEBUG : Error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txca59de58a5f140b8ae4ef-00691b2baf, HostID: txca59de58a5f140b8ae4ef-00691b2baf, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : foo.txt: Cancelling multipart upload
2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : HTTP REQUEST (req 0xc0002d9400)
2025/11/17 15:05:35 DEBUG : DELETE /foo.txt?uploadId=NzNjNTJkMDctNGNhYy00YTI5LTlmYjQtOTkzNjA0OWM5Yjk5&x-id=AbortMultipartUpload HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: befee2f7-36dd-4769-9517-bfa42aa2c415
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251117T140535Z

2025/11/17 15:05:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : HTTP RESPONSE (req 0xc0002d9400)
2025/11/17 15:05:35 DEBUG : HTTP/1.1 204 No Content
Content-Type: text/html; charset=UTF-8
Date: Mon, 17 Nov 2025 14:05:35 GMT
X-Amz-Id-2: tx568a7ef3ad9c4971a247a-00691b2baf
X-Amz-Request-Id: tx568a7ef3ad9c4971a247a-00691b2baf

2025/11/17 15:05:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:05:35 DEBUG : foo.txt: multipart upload "NzNjNTJkMDctNGNhYy00YTI5LTlmYjQtOTkzNjA0OWM5Yjk5" aborted
2025/11/17 15:05:35 ERROR : foo.txt: Post request rcat error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txca59de58a5f140b8ae4ef-00691b2baf, HostID: txca59de58a5f140b8ae4ef-00691b2baf, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 15:05:35 DEBUG : 7 go routines active
2025/11/17 15:05:35 NOTICE: Failed to rcat with 2 errors: last error was: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txca59de58a5f140b8ae4ef-00691b2baf, HostID: txca59de58a5f140b8ae4ef-00691b2baf, api error IncompleteBody: The request body terminated unexpectedly

what about that?
might try --s3-no-check-bucket

--s3-no-check-bucket fixes the 409 conflict, but the upload still fails afterwards

cat '/tmp/tmp-23935-2VhBr8HcyswA/foo.txt' | rclone rcat -vv --s3-no-check-bucket --s3-chunk-size 50Mi ':s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint="https://s3.sbg.io.cloud.ovh.net/":blg-backup-unittest/foo2.txt' --dump=headers
2025/11/17 15:35:26 NOTICE: Automatically setting -vv as --dump is enabled
2025/11/17 15:35:26 DEBUG : rclone: Version "v1.71.2" starting with parameters ["rclone" "rcat" "-vv" "--s3-no-check-bucket" "--s3-chunk-size" "50Mi" ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/foo2.txt" "--dump=headers"]
2025/11/17 15:35:26 DEBUG : Creating backend with remote ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/"
2025/11/17 15:35:26 DEBUG : Using config file from "/home/francois/.config/rclone/rclone.conf"
2025/11/17 15:35:26 DEBUG : :s3: detected overridden config - adding "{Q2RTY}" suffix to name
2025/11/17 15:35:26 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/11/17 15:35:26 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/11/17 15:35:26 DEBUG : fs cache: renaming cache item ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/" to be canonical ":s3{Q2RTY}:blg-backup-unittest"
2025/11/17 15:35:26 NOTICE: S3 bucket blg-backup-unittest: Streaming uploads using chunk size 50Mi will have maximum file size of 488.281Gi
2025/11/17 15:35:26 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:26 DEBUG : HTTP REQUEST (req 0xc0005bdcc0)
2025/11/17 15:35:26 DEBUG : POST /foo2.txt?uploads= HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 0
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 67dc343c-24bb-4bdc-a9c4-dcefcb4c321d
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Type: text/plain; charset=utf-8
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251117T143526Z
X-Amz-Meta-Mtime: 1763390126.786583733

2025/11/17 15:35:26 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:26 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:26 DEBUG : HTTP RESPONSE (req 0xc0005bdcc0)
2025/11/17 15:35:26 DEBUG : HTTP/1.1 200 OK
Content-Length: 274
Content-Type: application/xml
Date: Mon, 17 Nov 2025 14:35:26 GMT
X-Amz-Abort-Date: Fri, 28 Nov 2025 00:00:00 GMT
X-Amz-Abort-Rule-Id: AbortIncompleteMultipart
X-Amz-Id-2: tx78c483eca1c04c3281f0a-00691b32ae
X-Amz-Request-Id: tx78c483eca1c04c3281f0a-00691b32ae

2025/11/17 15:35:26 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:26 DEBUG : foo2.txt: open chunk writer: started multipart upload: NTdhN2Q4MzgtZmNiYi00MjRiLWFhN2ItOGM3MzY3MWEwMGVm
2025/11/17 15:35:26 DEBUG : foo2.txt: multipart upload: starting chunk 0 size 50Mi offset 0/off
2025/11/17 15:35:27 DEBUG : foo2.txt: multipart upload: starting chunk 1 size 50Mi offset 50Mi/off
2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : HTTP REQUEST (req 0xc0005bdb80)
2025/11/17 15:35:27 DEBUG : PUT /foo2.txt?partNumber=1&uploadId=NTdhN2Q4MzgtZmNiYi00MjRiLWFhN2ItOGM3MzY3MWEwMGVm&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 3c2dabc3-a006-45cf-9f5c-85d4f07fa588
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: yvQ4FKLBRVLs4c4HohPuHg==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T143527Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : foo2.txt: multipart upload: starting chunk 2 size 50Mi offset 100Mi/off
2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : HTTP REQUEST (req 0xc0002d9400)
2025/11/17 15:35:27 DEBUG : PUT /foo2.txt?partNumber=2&uploadId=NTdhN2Q4MzgtZmNiYi00MjRiLWFhN2ItOGM3MzY3MWEwMGVm&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 89c04f53-67c6-44ba-9fbc-2455dcadcff0
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: 40p8DIlPuOwJX4ZFFW/hGw==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T143527Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : foo2.txt: multipart upload: starting chunk 3 size 50Mi offset 150Mi/off
2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : HTTP RESPONSE (req 0xc0005bdb80)
2025/11/17 15:35:27 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Mon, 17 Nov 2025 14:35:27 GMT
X-Amz-Id-2: txccafbb9d510340a2a2659-00691b32af
X-Amz-Request-Id: txccafbb9d510340a2a2659-00691b32af

2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : HTTP RESPONSE (req 0xc0002d9400)
2025/11/17 15:35:27 DEBUG : Error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txccafbb9d510340a2a2659-00691b32af, HostID: txccafbb9d510340a2a2659-00691b32af, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : HTTP REQUEST (req 0xc0003aea00)
2025/11/17 15:35:27 DEBUG : 
2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : HTTP RESPONSE (req 0xc0003aea00)
2025/11/17 15:35:27 DEBUG : Error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txccafbb9d510340a2a2659-00691b32af, HostID: txccafbb9d510340a2a2659-00691b32af, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : foo2.txt: Cancelling multipart upload
2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : HTTP REQUEST (req 0xc000b50000)
2025/11/17 15:35:27 DEBUG : DELETE /foo2.txt?uploadId=NTdhN2Q4MzgtZmNiYi00MjRiLWFhN2ItOGM3MzY3MWEwMGVm&x-id=AbortMultipartUpload HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: af60f88e-c045-4f39-bf48-f30a2daa8335
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251117T143527Z

2025/11/17 15:35:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : HTTP RESPONSE (req 0xc000b50000)
2025/11/17 15:35:27 DEBUG : HTTP/1.1 204 No Content
Content-Type: text/html; charset=UTF-8
Date: Mon, 17 Nov 2025 14:35:27 GMT
X-Amz-Id-2: txbcd90ead5c414f82a61c5-00691b32af
X-Amz-Request-Id: txbcd90ead5c414f82a61c5-00691b32af

2025/11/17 15:35:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 15:35:27 DEBUG : foo2.txt: multipart upload "NTdhN2Q4MzgtZmNiYi00MjRiLWFhN2ItOGM3MzY3MWEwMGVm" aborted
2025/11/17 15:35:27 ERROR : foo2.txt: Post request rcat error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txccafbb9d510340a2a2659-00691b32af, HostID: txccafbb9d510340a2a2659-00691b32af, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 15:35:27 DEBUG : 6 go routines active
2025/11/17 15:35:27 NOTICE: Failed to rcat with 2 errors: last error was: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txccafbb9d510340a2a2659-00691b32af, HostID: txccafbb9d510340a2a2659-00691b32af, api error IncompleteBody: The request body terminated unexpectedly

ok, good, one less thing to worry about


i suggested --dump=bodies but you keep posting --dump=headers ?


i doubt it matters that the rclone docs example, has the endpoint without the https://
s3.rbx.io.cloud.ovh.net, not https://s3.rbx.io.cloud.ovh.net

Apologies, I had to clean up the request bodies because the original file is 1 GB in size—I couldn’t send a 200 MB log here. Could I ?
The cleaned-up version includes the concatenated bodies. The file itself is just 1 GB of testData repeated side by side, so I grouped all the testData occurrences in each request body and annotated them with the total number of occurrences for readability.

2025/11/17 16:16:57 NOTICE: Automatically setting -vv as --dump is enabled
2025/11/17 16:16:57 DEBUG : rclone: Version "v1.71.2" starting with parameters ["rclone" "rcat" "-vv" "--s3-no-check-bucket" "--s3-chunk-size" "50Mi" ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/foo3.txt" "--dump=bodies"]
2025/11/17 16:16:57 DEBUG : Creating backend with remote ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/"
2025/11/17 16:16:57 DEBUG : Using config file from "/home/francois/.config/rclone/rclone.conf"
2025/11/17 16:16:57 DEBUG : :s3: detected overridden config - adding "{Q2RTY}" suffix to name
2025/11/17 16:16:57 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/11/17 16:16:57 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/11/17 16:16:57 DEBUG : fs cache: renaming cache item ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/" to be canonical ":s3{Q2RTY}:blg-backup-unittest"
2025/11/17 16:16:57 NOTICE: S3 bucket blg-backup-unittest: Streaming uploads using chunk size 50Mi will have maximum file size of 488.281Gi
2025/11/17 16:16:57 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:57 DEBUG : HTTP REQUEST (req 0xc00091b900)
2025/11/17 16:16:57 DEBUG : POST /foo3.txt?uploads= HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 0
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 298cc977-1e59-4c0f-9b9c-dd65b63de33a
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Type: text/plain; charset=utf-8
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251117T151657Z
X-Amz-Meta-Mtime: 1763392617.854892521

2025/11/17 16:16:57 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:57 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:57 DEBUG : HTTP RESPONSE (req 0xc00091b900)
2025/11/17 16:16:57 DEBUG : HTTP/1.1 200 OK
Content-Length: 274
Content-Type: application/xml
Date: Mon, 17 Nov 2025 15:16:57 GMT
X-Amz-Abort-Date: Fri, 28 Nov 2025 00:00:00 GMT
X-Amz-Abort-Rule-Id: AbortIncompleteMultipart
X-Amz-Id-2: tx56151781566044b09cddb-00691b3c69
X-Amz-Request-Id: tx56151781566044b09cddb-00691b3c69

<?xml version='1.0' encoding='UTF-8'?>
<InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Bucket>blg-backup-unittest</Bucket><Key>foo3.txt</Key><UploadId>MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1</UploadId></InitiateMultipartUploadResult>
2025/11/17 16:16:57 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:57 DEBUG : foo3.txt: open chunk writer: started multipart upload: MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1
2025/11/17 16:16:58 DEBUG : foo3.txt: multipart upload: starting chunk 0 size 50Mi offset 0/off
2025/11/17 16:16:58 DEBUG : foo3.txt: multipart upload: starting chunk 1 size 50Mi offset 50Mi/off
2025/11/17 16:16:58 DEBUG : foo3.txt: multipart upload: starting chunk 2 size 50Mi offset 100Mi/off
2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : HTTP REQUEST (req 0xc001c3db80)
2025/11/17 16:16:58 DEBUG : foo3.txt: multipart upload: starting chunk 3 size 50Mi offset 150Mi/off
2025/11/17 16:16:58 DEBUG : PUT /foo3.txt?partNumber=1&uploadId=MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 09c0d404-8967-4691-8c19-f9f62f4030aa
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: vhBQxlS/fRLy/nAarBiwmA==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T151658Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

3200000
testData (x6553600)
0
x-amz-checksum-crc32:ftwBjw==

2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : HTTP REQUEST (req 0xc0002da500)
2025/11/17 16:16:58 DEBUG : PUT /foo3.txt?partNumber=2&uploadId=MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: fcd978c2-cae5-4f5c-83b4-889a3537d79d
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: vhBQxlS/fRLy/nAarBiwmA==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T151658Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

3200000
testData (x6553600)
0
x-amz-checksum-crc32:ftwBjw==

2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : HTTP RESPONSE (req 0xc001c3db80)
2025/11/17 16:16:58 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Mon, 17 Nov 2025 15:16:58 GMT
X-Amz-Id-2: txef3354e4ef8840388c79d-00691b3c6a
X-Amz-Request-Id: txef3354e4ef8840388c79d-00691b3c6a

c5
<?xml version='1.0' encoding='UTF-8'?>
<Error><Code>IncompleteBody</Code><Message>The request body terminated unexpectedly</Message><RequestId>txef3354e4ef8840388c79d-00691b3c6a</RequestId></Error>
0

2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : HTTP REQUEST (req 0xc001c3d680)
2025/11/17 16:16:58 DEBUG : PUT /foo3.txt?partNumber=3&uploadId=MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: d7418f4d-7f4f-441d-a599-db86a40a3fc5
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: vhBQxlS/fRLy/nAarBiwmA==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T151658Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

3200000
testData (x6553600)
0
x-amz-checksum-crc32:ftwBjw==

2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : HTTP RESPONSE (req 0xc001c3d680)
2025/11/17 16:16:58 DEBUG : Error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txef3354e4ef8840388c79d-00691b3c6a, HostID: txef3354e4ef8840388c79d-00691b3c6a, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : HTTP REQUEST (req 0xc0003b0140)
2025/11/17 16:16:58 DEBUG : PUT /foo3.txt?partNumber=4&uploadId=MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1&x-id=UploadPart HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Content-Length: 52428847
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: d8768f2f-b96a-44dc-9da5-c0805e74f789
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
Content-Encoding: aws-chunked
Content-Md5: vhBQxlS/fRLy/nAarBiwmA==
Content-Type: application/octet-stream
Expect: 100-continue
X-Amz-Content-Sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
X-Amz-Date: 20251117T151658Z
X-Amz-Decoded-Content-Length: 52428800
X-Amz-Trailer: x-amz-checksum-crc32

3200000
testData (x6553600)
0
x-amz-checksum-crc32:ftwBjw==

2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : HTTP RESPONSE (req 0xc0003b0140)
2025/11/17 16:16:58 DEBUG : Error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txef3354e4ef8840388c79d-00691b3c6a, HostID: txef3354e4ef8840388c79d-00691b3c6a, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : HTTP RESPONSE (req 0xc0002da500)
2025/11/17 16:16:58 DEBUG : Error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txef3354e4ef8840388c79d-00691b3c6a, HostID: txef3354e4ef8840388c79d-00691b3c6a, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : foo3.txt: Cancelling multipart upload
2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : HTTP REQUEST (req 0xc0003b1cc0)
2025/11/17 16:16:58 DEBUG : DELETE /foo3.txt?uploadId=MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1&x-id=AbortMultipartUpload HTTP/1.1
Host: blg-backup-unittest.s3.sbg.io.cloud.ovh.net
User-Agent: rclone/v1.71.2
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 04cafda7-5404-4856-88a0-71959351b6be
Amz-Sdk-Request: attempt=1; max=10
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251117T151658Z

2025/11/17 16:16:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : HTTP RESPONSE (req 0xc0003b1cc0)
2025/11/17 16:16:58 DEBUG : HTTP/1.1 204 No Content
Content-Type: text/html; charset=UTF-8
Date: Mon, 17 Nov 2025 15:16:58 GMT
X-Amz-Id-2: tx9585cfb3ec8c426da4467-00691b3c6a
X-Amz-Request-Id: tx9585cfb3ec8c426da4467-00691b3c6a

2025/11/17 16:16:58 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/11/17 16:16:58 DEBUG : foo3.txt: multipart upload "MDc3OWE3OWYtZWVlYS00YmE2LWFiNjYtNzdiNDgzNGVhYjQ1" aborted
2025/11/17 16:16:58 ERROR : foo3.txt: Post request rcat error: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txef3354e4ef8840388c79d-00691b3c6a, HostID: txef3354e4ef8840388c79d-00691b3c6a, api error IncompleteBody: The request body terminated unexpectedly
2025/11/17 16:16:58 DEBUG : 7 go routines active
2025/11/17 16:16:58 NOTICE: Failed to rcat with 2 errors: last error was: failed to upload chunk 1 with 52428800 bytes: operation error S3: UploadPart, https response error StatusCode: 400, RequestID: txef3354e4ef8840388c79d-00691b3c6a, HostID: txef3354e4ef8840388c79d-00691b3c6a, api error IncompleteBody: The request body terminated unexpectedly

I effectively get the same result whithout the https:// in the endpoint

Can you try the latest beta? There was a backwards incompatible change in the AWS SDK which we've worked around now and I think that may be the cause.

It worked !

rclone v1.72.0-beta.9305.ecea0cd6f
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-87-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.4
- go/linking: static
- go/tags: none
cat file1.txt | rclone rcat -vv --s3-chunk-size 300M ':s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint="https://s3.sbg.io.cloud.ovh.net/":blg-backup-unittest/foo6.txt'
2025/11/18 10:17:37 DEBUG : rclone: Version "v1.72.0-beta.9305.ecea0cd6f" starting with parameters ["rclone" "rcat" "-vv" "--s3-chunk-size" "300M" ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/foo6.txt"]
2025/11/18 10:17:37 DEBUG : Creating backend with remote ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/"
2025/11/18 10:17:37 DEBUG : Using config file from "/home/francois/.config/rclone/rclone.conf"
2025/11/18 10:17:37 DEBUG : :s3: detected overridden config - adding "{XV8N-}" suffix to name
2025/11/18 10:17:37 DEBUG : fs cache: renaming cache item ":s3,provider=OVHcloud,env_auth=true,region=sbg,endpoint=\"https://s3.sbg.io.cloud.ovh.net/\":blg-backup-unittest/" to be canonical ":s3{XV8N-}:blg-backup-unittest"
2025/11/18 10:17:37 NOTICE: S3 bucket blg-backup-unittest: Streaming uploads using chunk size 300Mi will have maximum file size of 2.861Ti
2025/11/18 10:17:37 DEBUG : foo6.txt: open chunk writer: started multipart upload: MTQ5ODNlMDMtNzM3ZS00N2MwLTk0ZGEtNDMzNjdiYjU5NjNl
2025/11/18 10:17:37 DEBUG : foo6.txt: multipart upload: starting chunk 0 size 300Mi offset 0/off
2025/11/18 10:17:38 DEBUG : foo6.txt: multipart upload: starting chunk 1 size 300Mi offset 300Mi/off
2025/11/18 10:17:38 DEBUG : foo6.txt: multipart upload: starting chunk 2 size 300Mi offset 600Mi/off
2025/11/18 10:17:38 DEBUG : foo6.txt: multipart upload: starting chunk 3 size 53.674Mi offset 900Mi/off
2025/11/18 10:17:43 DEBUG : foo6.txt: multipart upload wrote chunk 4 with 56281601 bytes and etag "c85fc128e4a183e2586d71f97bcacede"
2025/11/18 10:17:52 DEBUG : foo6.txt: multipart upload wrote chunk 3 with 314572800 bytes and etag "0bd4e296f16b25f91843c6baf4c0fffe"
2025/11/18 10:17:53 DEBUG : foo6.txt: multipart upload wrote chunk 1 with 314572800 bytes and etag "96993fd4946d3ae2b1bfc34e2904a6e5"
2025/11/18 10:17:53 DEBUG : foo6.txt: multipart upload wrote chunk 2 with 314572800 bytes and etag "00a729df7962f8c8b947d8ca69059b46"
2025/11/18 10:17:53 DEBUG : foo6.txt: multipart upload "MTQ5ODNlMDMtNzM3ZS00N2MwLTk0ZGEtNDMzNjdiYjU5NjNl" finished
2025/11/18 10:17:53 DEBUG : foo6.txt: Multipart upload Etag: f1cbdb3abffb797231a22dcaeec90e2d-4 OK
2025/11/18 10:17:53 DEBUG : foo6.txt: size = 1000000001 OK
2025/11/18 10:17:53 DEBUG : foo6.txt: Dst hash empty - aborting Src hash check
2025/11/18 10:17:53 DEBUG : foo6.txt: Size of src and dst objects identical
2025/11/18 10:17:53 DEBUG : 13 go routines active

I should have tried this earlier, my bad. Thanks so much !

1 Like

Thanks for testing @danImo-blg - that change will be released in 1.72 which is scheduled for the end of the week.

2 Likes

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