What is the problem you are having with rclone?
I'm copyto
ing a file from my local machine to AWS S3. When I do, I get an error:
2024/12/26 09:47:39 NOTICE: Encrypted drive 'cryptbucket:/': --checksum is in use but the source and destination have no hashes in common; falling back to --size-only
The file in question is the output of ls -lRa
and because the output is likely to change with a few characters replaced, size is not the best method to compare the file.
A google search over the forum yielded two results that don't seem to fit my specific use case. Without the "s3" query parameter, it brought up others but seemed to deal with Google Drive.
When I inspect the S3 object in the AWS console, the only metadata it has "x-amz-meta-mtime". When I check other files uploaded to S3 (albeit with the copy
command), I see "x-amz-meta-md5chksum" in addition to "...mtime".
I have never enabled --s3-disable-checksum
so I'm not sure why the file would not have the checksum metadata.
As a troubleshooting step, I deleted the file and then re-uploaded it and then tried to copy it again. Please see full logs at the very bottom.
Run the command 'rclone version' and share the full output of the command.
$ rclone --version
rclone v1.68.2
- os/version: linuxmint 21.3 (64 bit)
- os/kernel: 6.8.0-50-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.3
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
AWS S3
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copyto -vv --checksum --s3-storage-class "STANDARD" --s3-no-check-bucket \
/path/to/ls-lRa.txt cipher:/ls-lRa.txt
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[aws-s3]
type = s3
provider = AWS
env_auth = true
access_key_id = XXX
secret_access_key = XXX
region = us-east-1
server_side_encryption = AES256
[cryptbucket]
type = crypt
remote = aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>
password = XXX
A log from the command that you were trying to run with the -vv
flag
$ rclone delete -vv cryptbucket:/ls-lRa.txt
2024/12/26 10:41:18 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "delete" "-vv" "cryptbucket:/ls-lRa.txt"]
2024/12/26 10:41:18 DEBUG : Creating backend with remote "cryptbucket:/ls-lRa.txt"
2024/12/26 10:41:18 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2024/12/26 10:41:18 DEBUG : Creating backend with remote "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>/81rtsqbp5i1tdhqs8dqdon4a4k7d6508pvdd2k6vdc4o0omsffs0"
2024/12/26 10:41:18 DEBUG : fs cache: adding new entry for parent of "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>/81rtsqbp5i1tdhqs8dqdon4a4k7d6508pvdd2k6vdc4o0omsffs0", "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>"
2024/12/26 10:41:18 DEBUG : fs cache: adding new entry for parent of "cryptbucket:/ls-lRa.txt", "cryptbucket:"
2024/12/26 10:41:18 DEBUG : Waiting for deletions to finish
2024/12/26 10:41:18 DEBUG : media: Excluded
2024/12/26 10:41:18 INFO : ls-lRa.txt: Deleted
2024/12/26 10:41:18 DEBUG : 6 go routines active
$ rclone copyto -vv --checksum --s3-storage-class "STANDARD" --s3-no-check-bucket /path/to/dir/ls-lRa.txt cryptbucket:/ls-lRa.txt
2024/12/26 10:41:23 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "copyto" "-vv" "--checksum" "--s3-storage-class" "STANDARD" "--s3-no-check-bucket" "/path/to/dir/ls-lRa.txt" "cryptbucket:/ls-lRa.txt"]
2024/12/26 10:41:23 DEBUG : Creating backend with remote "/path/to/dir/ls-lRa.txt"
2024/12/26 10:41:23 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2024/12/26 10:41:23 DEBUG : fs cache: adding new entry for parent of "/path/to/dir/ls-lRa.txt", "/path/to/dir"
2024/12/26 10:41:23 DEBUG : Creating backend with remote "cryptbucket:/"
2024/12/26 10:41:23 DEBUG : Creating backend with remote "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>"
2024/12/26 10:41:23 DEBUG : aws-s3: detected overridden config - adding "{mH4YA}" suffix to name
2024/12/26 10:41:23 DEBUG : fs cache: renaming cache item "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>" to be canonical "aws-s3{mH4YA}:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>"
2024/12/26 10:41:23 DEBUG : fs cache: switching user supplied name "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>" for canonical name "aws-s3{mH4YA}:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>"
2024/12/26 10:41:23 DEBUG : ls-lRa.txt: Need to transfer - File not found at Destination
2024/12/26 10:41:23 DEBUG : ls-lRa.txt: Computing md5 hash of encrypted source
2024/12/26 10:41:23 DEBUG : ls-lRa.txt: md5 = 0265f21d47bebd360f44642609ea035e OK
2024/12/26 10:41:23 INFO : ls-lRa.txt: Copied (new)
2024/12/26 10:41:23 INFO :
Transferred: 143.426 KiB / 143.426 KiB, 100%, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 0.3s
2024/12/26 10:41:23 DEBUG : 7 go routines active
$ rclone copyto -vv --checksum --s3-storage-class "STANDARD" --s3-no-check-bucket /path/to/dir/ls-lRa.txt cryptbucket:/ls-lRa.txt
2024/12/26 10:41:30 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "copyto" "-vv" "--checksum" "--s3-storage-class" "STANDARD" "--s3-no-check-bucket" "/path/to/dir/ls-lRa.txt" "cryptbucket:/ls-lRa.txt"]
2024/12/26 10:41:30 DEBUG : Creating backend with remote "/path/to/dir/ls-lRa.txt"
2024/12/26 10:41:30 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2024/12/26 10:41:30 DEBUG : fs cache: adding new entry for parent of "/path/to/dir/ls-lRa.txt", "/path/to/dir"
2024/12/26 10:41:30 DEBUG : Creating backend with remote "cryptbucket:/"
2024/12/26 10:41:30 DEBUG : Creating backend with remote "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>"
2024/12/26 10:41:30 DEBUG : aws-s3: detected overridden config - adding "{mH4YA}" suffix to name
2024/12/26 10:41:30 DEBUG : fs cache: renaming cache item "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>" to be canonical "aws-s3{mH4YA}:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>"
2024/12/26 10:41:30 DEBUG : fs cache: switching user supplied name "aws-s3:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>" for canonical name "aws-s3{mH4YA}:<<REDACTED>>/archives/<<HOSTNAME>>/<<PERSONAL_DIRECTORY>>"
2024/12/26 10:41:30 NOTICE: Encrypted drive 'cryptbucket:/': --checksum is in use but the source and destination have no hashes in common; falling back to --size-only
2024/12/26 10:41:30 DEBUG : ls-lRa.txt: Size of src and dst objects identical
2024/12/26 10:41:30 DEBUG : ls-lRa.txt: Unchanged skipping
2024/12/26 10:41:30 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 0.1s
2024/12/26 10:41:30 DEBUG : 6 go routines active
Please note: I used find and replace to redact sensitive or personal info to ensure consistency but I may have missed something. I'm happy to provide more information if needed, with the exception of the s3 bucket name since publishing this can make my bill explode.
PS: I also know it's the holidays. Please prioritize yourselves and your family. I'll keep plugging away at this and if I have an update, I'll edit accordingly.