What is the problem you are having with rclone?
Hi.
I'm having issues uploading files to Scality S3 storage using RClone. The source and destination sizes always differ. Destination size is always 0 as per RClone debug log, but when I browse the bucket, the files are available AND usable.
When it's a small file, despite the different sizes, RClone doesn't throw an error, but when it comes to large files, then I get an error from RClone.
Run the command 'rclone version' and share the full output of the command.
rclone v1.64.0
- os/version: Microsoft Windows Server 2022 Standard 21H2 (64 bit)
- os/kernel: 10.0.20348.2113 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.21.1
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Scality (on prem storage)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy README.txt <remote_name>:<bucket_name> -vv --s3-no-check-bucket --s3-no-head --s3-no-head-object --retries=1
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[<remote_name>]
type = s3
provider = Other
access_key_id = XXX
secret_access_key = XXX
endpoint = https://<endpoint-url>
Here is the IAM Policy applied to the user :
"Version":"2012-10-17"
"Statement":[
0:{
"Sid":"<StatementID>"
"Action":[
0:"s3:Put*"
1:"s3:List*"
2:"s3:AbortMultipartUpload"
3:"s3:Get*"
]
"Effect":"Allow"
"Resource":[
0:"*"
]
}
]
A log from the command that you were trying to run with the -vv flag
This is the log for a small file :
C:\Temp\rclone-v1.64.0-windows-amd64>rclone copy README.txt <remote_name>:<bucket_name> -vv --s3-no-check-bucket --s3-no-head --s3-no-head-object --retries=1
2023/12/05 10:22:26 DEBUG : rclone: Version "v1.64.0" starting with parameters ["rclone" "copy" "README.txt" "<remote_name>:<bucket_name>" "-vv" "--s3-no-check-bucket" "--s3-no-head" "--s3-no-head-object" "--retries=1"]
2023/12/05 10:22:26 DEBUG : Creating backend with remote "README.txt"
2023/12/05 10:22:26 DEBUG : Using config file from "C:\\Users\\<user_profile>\\AppData\\Roaming\\rclone\\rclone.conf"
2023/12/05 10:22:26 DEBUG : fs cache: adding new entry for parent of "README.txt", "//?/C:/Temp/rclone-v1.64.0-windows-amd64"
2023/12/05 10:22:26 DEBUG : Creating backend with remote "<remote_name>:<bucket_name>"
2023/12/05 10:22:26 DEBUG : <remote_name>: detected overridden config - adding "{ECHgI}" suffix to name
2023/12/05 10:22:26 DEBUG : Resolving service "s3" region "us-east-1"
2023/12/05 10:22:26 DEBUG : fs cache: renaming cache item "<remote_name>:<bucket_name>" to be canonical "<remote_name>{ECHgI}:<bucket_name>"
2023/12/05 10:22:26 DEBUG : README.txt: Sizes differ (src 2086374 vs dst 0)
2023/12/05 10:22:26 DEBUG : README.txt: md5 = 124c4692e127d1c2b12ea35b8dc49c96 OK
2023/12/05 10:22:26 INFO : README.txt: Copied (replaced existing)
2023/12/05 10:22:26 INFO :
Transferred: 1.990 MiB / 1.990 MiB, 100%, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 0.2s
2023/12/05 10:22:26 DEBUG : 5 go routines active
This is the log for a large file :
C:\Temp\rclone-v1.64.0-windows-amd64>rclone copy SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO <remote_name>:<bucket_name>/ -vv --s3-no-check-bucket --s3-no-head --s3-no-head-object --retries=1
2023/12/05 10:16:06 DEBUG : rclone: Version "v1.64.0" starting with parameters ["rclone" "copy" "SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO" "<remote_name>:<bucket_name>/" "-vv" "--s3-no-check-bucket" "--s3-no-head" "--s3-no-head-object" "--retries=1"]
2023/12/05 10:16:06 DEBUG : Creating backend with remote "SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO"
2023/12/05 10:16:06 DEBUG : Using config file from "C:\\Users\\<user_profile>\\AppData\\Roaming\\rclone\\rclone.conf"
2023/12/05 10:16:06 DEBUG : fs cache: adding new entry for parent of "SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO", "//?/C:/Temp/rclone-v1.64.0-windows-amd64"
2023/12/05 10:16:06 DEBUG : Creating backend with remote "<remote_name>:<bucket_name>/"
2023/12/05 10:16:06 DEBUG : <remote_name>: detected overridden config - adding "{ECHgI}" suffix to name
2023/12/05 10:16:06 DEBUG : Resolving service "s3" region "us-east-1"
2023/12/05 10:16:06 DEBUG : fs cache: renaming cache item "<remote_name>:<bucket_name>/" to be canonical "<remote_name>{ECHgI}:<bucket_name>"
2023/12/05 10:16:06 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: Sizes differ (src 5440065536 vs dst 0)
2023/12/05 10:17:06 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Transferred: 0 / 1, 0%
Elapsed time: 1m0.5s
Transferring:
* SW_DVD9_Win_Pro_11_22H…DU_N_MLF_X23-50057.ISO: transferring
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: open chunk writer: started multipart upload: 127bd4ebf31149908615ac9fcbb624dc
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multi-thread copy: using backend concurrency of 4 instead of --multi-thread-streams 4
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: Starting multi-thread copy with 1038 chunks of size 5Mi with 4 parallel streams
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multi-thread copy: chunk 3/1038 (10485760-15728640) size 5Mi starting
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multi-thread copy: chunk 4/1038 (15728640-20971520) size 5Mi starting
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multi-thread copy: chunk 1/1038 (0-5242880) size 5Mi starting
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multi-thread copy: chunk 2/1038 (5242880-10485760) size 5Mi starting
2023/12/05 10:17:47 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multipart upload wrote chunk 1 with 5242880 bytes and etag "ccc427170474919f4db77522e61b27f0"
...
2023/12/05 10:18:14 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multi-thread copy: chunk 1036/1038 (5426380800-5431623680) size 5Mi finished
2023/12/05 10:18:14 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multipart upload wrote chunk 1038 with 3198976 bytes and etag "e549f6d1a41ae8d371cc1ff6d63e4cca"
2023/12/05 10:18:14 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multi-thread copy: chunk 1038/1038 (5436866560-5440065536) size 3.051Mi finished
2023/12/05 10:18:15 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: multipart upload "127bd4ebf31149908615ac9fcbb624dc" finished
2023/12/05 10:18:15 DEBUG : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: Finished multi-thread copy with 1038 parts of size 5Mi
2023/12/05 10:18:15 ERROR : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: corrupted on transfer: sizes differ 5440065536 vs 0
2023/12/05 10:18:15 INFO : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: Removing failed copy
2023/12/05 10:18:15 INFO : SW_DVD9_Win_Pro_11_22H2.10_64BIT_English_Pro_Ent_EDU_N_MLF_X23-50057.ISO: Failed to remove failed copy: AccessDenied: Access Denied
status code: 403, request id: 2442ac15d741aeb377f7, host id: 2442ac15d741aeb377f7
2023/12/05 10:18:15 ERROR : Attempt 1/1 failed with 1 errors and: corrupted on transfer: sizes differ 5440065536 vs 0
2023/12/05 10:18:15 INFO :
Transferred: 5.066 GiB / 5.066 GiB, 100%, 148.471 MiB/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 2m9.5s
2023/12/05 10:18:15 DEBUG : 13 go routines active
2023/12/05 10:18:15 Failed to copy: corrupted on transfer: sizes differ 5440065536 vs 0