What is the problem you are having with rclone?
Looks like there is rare corruption with rclone crypt module. It happens occasionally, but it feels like once per 100 of 1GB files. They are age encrypted zstd compressed tar files split to 1GB chunks. I am mentioning it, because while it's unlikely to matter, it can give us some clues. To make sure it's crypt fault, i made 6 tests (3 per machine) and it happens on 2 different machines both using SFTP. When i copy files without crypt module (to same SFTP servers) and check md5sums as presented below, every time i have correct sums. Problem occurs for different files copied using crypt module - so if i twice upload same files, i get different corruption files.
If will be nice if the files are not really corrupted, because before i realized there is problem, i was using move command. If it turns out to be there easy way to fix damaged files, it will be nice to know. If not, oh well, i will need to redo my work from last couple of days - annoing but not huge issue.
When i do copy comamnd, it looks like it copy files just fine.
[nikow@thinira delivery]$ rclone -v -P --order-by name --checksum copy /storage/offload/delivery/2024-09-20/ aleksandria-001-vault:delivery/2024-09-20/
2024/09/20 12:01:09 INFO : 2024-09-20.data.00001: Copied (new)
2024/09/20 12:01:10 INFO : 2024-09-20.data.00003: Copied (new)
2024/09/20 12:01:12 INFO : 2024-09-20.data.00002: Copied (new)
2024/09/20 12:01:13 INFO : 2024-09-20.data.00000: Copied (new)
2024/09/20 12:04:35 INFO : 2024-09-20.data.00005: Copied (new)
2024/09/20 12:04:35 INFO : 2024-09-20.data.00004: Copied (new)
2024/09/20 12:04:36 INFO : 2024-09-20.data.00007: Copied (new)
2024/09/20 12:04:36 INFO : 2024-09-20.data.00006: Copied (new)
2024/09/20 12:08:16 INFO : 2024-09-20.data.00009: Copied (new)
2024/09/20 12:08:22 INFO : 2024-09-20.data.00011: Copied (new)
2024/09/20 12:08:23 INFO : 2024-09-20.data.00008: Copied (new)
2024/09/20 12:08:28 INFO : 2024-09-20.data.00010: Copied (new)
2024/09/20 12:12:47 INFO : 2024-09-20.data.00012: Copied (new)
2024/09/20 12:12:54 INFO : 2024-09-20.data.00014: Copied (new)
2024/09/20 12:13:04 INFO : 2024-09-20.data.00015: Copied (new)
2024/09/20 12:13:11 INFO : 2024-09-20.data.00013: Copied (new)
2024/09/20 12:16:44 INFO : 2024-09-20.data.00016: Copied (new)
2024/09/20 12:16:46 INFO : 2024-09-20.data.00017: Copied (new)
2024/09/20 12:17:01 INFO : 2024-09-20.data.00019: Copied (new)
2024/09/20 12:17:03 INFO : 2024-09-20.data.00018: Copied (new)
2024/09/20 12:20:23 INFO : 2024-09-20.data.00021: Copied (new)
2024/09/20 12:20:23 INFO : 2024-09-20.data.00020: Copied (new)
2024/09/20 12:20:33 INFO : 2024-09-20.data.00022: Copied (new)
2024/09/20 12:20:33 INFO : 2024-09-20.data.00023: Copied (new)
2024/09/20 12:23:57 INFO : 2024-09-20.data.00024: Copied (new)
2024/09/20 12:23:57 INFO : 2024-09-20.data.00025: Copied (new)
2024/09/20 12:24:00 INFO : 2024-09-20.data.00027: Copied (new)
2024/09/20 12:24:03 INFO : 2024-09-20.data.00026: Copied (new)
2024/09/20 12:27:25 INFO : 2024-09-20.data.00028: Copied (new)
2024/09/20 12:27:27 INFO : 2024-09-20.data.00031: Copied (new)
2024/09/20 12:27:27 INFO : 2024-09-20.data.00029: Copied (new)
2024/09/20 12:27:27 INFO : 2024-09-20.data.00030: Copied (new)
2024/09/20 12:30:48 INFO : 2024-09-20.data.00032: Copied (new)
2024/09/20 12:30:48 INFO : 2024-09-20.data.00033: Copied (new)
2024/09/20 12:30:49 INFO : 2024-09-20.data.00034: Copied (new)
2024/09/20 12:30:50 INFO : 2024-09-20.data.00035: Copied (new)
2024/09/20 12:34:08 INFO : 2024-09-20.data.00036: Copied (new)
2024/09/20 12:34:12 INFO : 2024-09-20.data.00038: Copied (new)
2024/09/20 12:34:13 INFO : 2024-09-20.data.00037: Copied (new)
2024/09/20 12:34:14 INFO : 2024-09-20.data.00039: Copied (new)
2024/09/20 12:37:37 INFO : 2024-09-20.data.00040: Copied (new)
2024/09/20 12:37:37 INFO : 2024-09-20.data.00041: Copied (new)
2024/09/20 12:37:39 INFO : 2024-09-20.data.00043: Copied (new)
2024/09/20 12:37:39 INFO : 2024-09-20.data.00042: Copied (new)
2024/09/20 12:40:59 INFO : 2024-09-20.data.00044: Copied (new)
2024/09/20 12:41:00 INFO : 2024-09-20.data.00045: Copied (new)
2024/09/20 12:41:00 INFO : 2024-09-20.data.00046: Copied (new)
2024/09/20 12:41:00 INFO : 2024-09-20.data.00047: Copied (new)
2024/09/20 12:44:27 INFO : 2024-09-20.data.00048: Copied (new)
2024/09/20 12:44:33 INFO : 2024-09-20.data.00049: Copied (new)
2024/09/20 12:44:34 INFO : 2024-09-20.data.00051: Copied (new)
2024/09/20 12:44:37 INFO : 2024-09-20.data.00050: Copied (new)
2024/09/20 12:47:48 INFO : 2024-09-20.data.00052: Copied (new)
2024/09/20 12:47:54 INFO : 2024-09-20.data.00053: Copied (new)
2024/09/20 12:47:54 INFO : 2024-09-20.data.00055: Copied (new)
2024/09/20 12:47:56 INFO : 2024-09-20.data.00054: Copied (new)
2024/09/20 12:51:15 INFO : 2024-09-20.data.00056: Copied (new)
2024/09/20 12:51:18 INFO : 2024-09-20.data.00057: Copied (new)
2024/09/20 12:51:19 INFO : 2024-09-20.data.00058: Copied (new)
2024/09/20 12:51:22 INFO : 2024-09-20.data.00059: Copied (new)
2024/09/20 12:54:43 INFO : 2024-09-20.data.00060: Copied (new)
2024/09/20 12:54:43 INFO : 2024-09-20.data.00061: Copied (new)
2024/09/20 12:54:44 INFO : 2024-09-20.data.00063: Copied (new)
2024/09/20 12:54:44 INFO : 2024-09-20.data.00062: Copied (new)
2024/09/20 12:58:06 INFO : 2024-09-20.data.00064: Copied (new)
2024/09/20 12:58:06 INFO : 2024-09-20.data.00065: Copied (new)
2024/09/20 12:58:07 INFO : 2024-09-20.data.00067: Copied (new)
2024/09/20 12:58:07 INFO : 2024-09-20.data.00066: Copied (new)
2024/09/20 13:01:26 INFO : 2024-09-20.data.00068: Copied (new)
2024/09/20 13:01:37 INFO : 2024-09-20.data.00070: Copied (new)
2024/09/20 13:01:40 INFO : 2024-09-20.data.00069: Copied (new)
2024/09/20 13:01:40 INFO : 2024-09-20.data.00071: Copied (new)
2024/09/20 13:04:56 INFO : 2024-09-20.data.00072: Copied (new)
2024/09/20 13:05:02 INFO : 2024-09-20.data.00073: Copied (new)
2024/09/20 13:05:04 INFO : 2024-09-20.data.00075: Copied (new)
2024/09/20 13:05:08 INFO : 2024-09-20.data.00074: Copied (new)
2024/09/20 13:08:12 INFO : 2024-09-20.data.00076: Copied (new)
2024/09/20 13:08:28 INFO : 2024-09-20.data.00078: Copied (new)
2024/09/20 13:08:28 INFO : 2024-09-20.data.00079: Copied (new)
2024/09/20 13:08:39 INFO : 2024-09-20.data.00077: Copied (new)
2024/09/20 13:11:36 INFO : 2024-09-20.data.00080: Copied (new)
2024/09/20 13:11:45 INFO : 2024-09-20.data.00081: Copied (new)
2024/09/20 13:11:47 INFO : 2024-09-20.data.00082: Copied (new)
2024/09/20 13:11:58 INFO : 2024-09-20.data.00083: Copied (new)
2024/09/20 13:14:59 INFO : 2024-09-20.data.00084: Copied (new)
2024/09/20 13:15:04 INFO : 2024-09-20.data.00085: Copied (new)
2024/09/20 13:15:07 INFO : 2024-09-20.data.00086: Copied (new)
2024/09/20 13:15:08 INFO : 2024-09-20.index.age: Copied (new)
2024/09/20 13:15:09 INFO : 2024-09-20.md5sum: Copied (new)
2024/09/20 13:15:15 INFO : 2024-09-20.data.00087: Copied (new)
2024/09/20 13:16:22 INFO : 2024-09-20.data.00089: Copied (new)
2024/09/20 13:16:32 INFO : 2024-09-20.data.00088: Copied (new)
Transferred: 87.690 GiB / 87.690 GiB, 100%, 23.382 MiB/s, ETA 0s
Transferred: 92 / 92, 100%
Elapsed time: 1h18m54.3s
2024/09/20 13:16:32 INFO :
Transferred: 87.690 GiB / 87.690 GiB, 100%, 23.382 MiB/s, ETA 0s
Transferred: 92 / 92, 100%
Elapsed time: 1h18m54.3s
When i try to check them, i get the error which i understand, as there is no default md5sums/sha1sums for SFTP and crypt. But to my suprise, even when there is a problem and files are not really checked, commands behaves like it did.
[nikow@thinira delivery]$ rclone -v -P --order-by name check /storage/offload/delivery/2024-09-20/ aleksandria-001-vault:delivery/2024-09-20/ && echo All Ok
2024/09/20 14:03:08 ERROR : No common hash found - not using a hash for checks
2024/09/20 14:03:08 NOTICE: union root 'delivery/2024-09-20': 0 differences found
2024/09/20 14:03:08 NOTICE: union root 'delivery/2024-09-20': 92 hashes could not be checked
2024/09/20 14:03:08 NOTICE: union root 'delivery/2024-09-20': 92 matching files
Transferred:0 B / 0 B, -, 0 B/s, ETA -
Checks:92 / 92, 100%
Elapsed time: 4.6s
2024/09/20 14:03:08 INFO:
Transferred:0 B / 0 B, -, 0 B/s, ETA -
Checks:92 / 92, 100%
Elapsed time: 4.6s
All Ok
Next command in my workflow was to delete just "checked" files. Oopsie!
Then when i mount the share with copied files and run md5sum -c
to check sums. Most files are okey (so i cut out the OKs), but some are corrupted:
[nikow@thinira 2024-09-20]$ md5sum -c 2024-09-20.md5sum
2024-09-20.data.00000: OK
...
2024-09-20.data.00005: OK
md5sum: 2024-09-20.data.00006: Input/output error
2024-09-20.data.00006: FAILED open or read
2024-09-20.data.00007: OK
...
2024-09-20.data.00011: OK
md5sum: 2024-09-20.data.00012: Input/output error
2024-09-20.data.00012: FAILED open or read
2024-09-20.data.00013: OK
...
2024-09-20.data.00070: OK
md5sum: 2024-09-20.data.00071: Input/output error
2024-09-20.data.00071: FAILED open or read
2024-09-20.data.00072: OK
...
2024-09-20.data.00089: OK
md5sum: WARNING: 3 listed files could not be read
And mount spews errors like below:
[nikow@thinira ~]$ mkdir -p -v /tmp/aleksandria-001-vault/ ; rclone -v --vfs-cache-mode writes --vfs-cache-max-size 8G mount aleksandria-001-vault:/ /tmp/aleksandria-001-vaul
t/
mkdir: created directory '/tmp/aleksandria-001-vault/'
2024/09/20 14:00:21 INFO : union root '': poll-interval is not supported by this remote
2024/09/20 14:00:21 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:00:22 NOTICE: #recycle: Skipping undecryptable dir name: illegal base64 data at input byte 0
2024/09/20 14:01:21 INFO : vfs cache: cleaned: objects 2 (was 2) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:02:21 INFO : vfs cache: cleaned: objects 3 (was 3) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:03:21 INFO : vfs cache: cleaned: objects 5 (was 5) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:04:21 INFO : vfs cache: cleaned: objects 6 (was 6) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:05:21 INFO : vfs cache: cleaned: objects 7 (was 7) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:06:21 INFO : vfs cache: cleaned: objects 8 (was 8) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:06:31 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 1/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:31 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 2/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:31 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 3/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:32 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 4/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:32 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 5/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:32 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 6/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:32 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 7/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:32 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 8/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:33 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 9/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:33 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 10/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:33 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:33 ERROR : IO error: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:33 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 1/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:34 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 1/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:34 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 2/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:34 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 3/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:35 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 4/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:35 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 5/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:35 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 6/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:35 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 7/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:36 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 8/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:36 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 9/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:36 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: low level retry 10/10: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:36 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Read error: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:36 ERROR : IO error: failed to authenticate decrypted block - bad password?
2024/09/20 14:06:36 ERROR : delivery/2024-09-20/2024-09-20.data.00006: ReadFileHandle.Release error: file already closed
2024/09/20 14:06:36 ERROR : IO error: file already closed
2024/09/20 14:07:21 INFO : vfs cache: cleaned: objects 9 (was 9) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/09/20 14:08:21 INFO : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 0 (was 0)
After manually deleting those files (ending with 6 and 12) i can copy them again with the same command and They is correct (md5sum match). To make sure that reuploaded files are fine - i power cycled both machines - i checked Their md5sums again and reuploaded files are OK, when damaged file (71) remains damaged.
When i reversed name of one of damaged files with command:
[nikow@thinira ~]$ rclone cryptdecode aleksandria-001-vault-007: delivery/2024-09-20/2024-09-20.data.00071 --reverse
delivery/2024-09-20/2024-09-20.data.00071 LnuNH6iwxB6isHcP-CVmrg/ujV4F-YzGMDcr_AjOyVmAg/VOOvWYy3ejUIu5GVqcXcdrj2eDU7NKzRC14PuMEx5WI
I was able to copy file just without any problems from storage. Its a bit bigger than original file, but it's the same size like other working file, so i quess its perfecly fine.
1048576000 2024-09-20.data.00071
1048832032 VOOvWYy3ejUIu5GVqcXcdrj2eDU7NKzRC14PuMEx5WI
1048576000 2024-09-20.data.00072
1048832032 0IlaUkQl2qKbWP_SQ7DDq_1hadIgN2l6KSbTpmpBkK8
As my data is already encrypted by age, i can share both original and encrypted file:
https://nikow.pl/~nikow/rclone_crypt_bug/2024-09-20.data.00071
https://nikow.pl/~nikow/rclone_crypt_bug/VOOvWYy3ejUIu5GVqcXcdrj2eDU7NKzRC14PuMEx5WI
You may find passwords in the config section.
Run the command 'rclone version' and share the full output of the command.
rclone v1.68.0
- os/version: fedora 39 (64 bit)
- os/kernel: 6.10.9-100.fc39.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: none
-
but i was able to get similar results with
rclone v1.67.0
- os/version: debian 12.7 (64 bit)
- os/kernel: 6.1.0-18-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
SFTP on Synology
Its where i spot the problem. The storage and volumes are not showing any signs of problems. I have integrity on, but to not waste your time on Synology bugs, i spawned Debian Docker Container with openssh installed but without md5sum and sha1sum commands on different machine. Silent corruption happens there too.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone -v -P --order-by name --checksum copy /storage/offload/delivery/2024-09-20/ aleksandria-001-vault:delivery/2024-09-20/
mkdir -p -v /tmp/aleksandria-001-vault/ ; rclone -v --vfs-cache-mode writes --vfs-cache-max-size 8G mount aleksandria-001-vault:/ /tmp/aleksandria-001-vault/
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
Passwords in the last config has been left on purpose, to help findout what's wrong there.
[aleksandria-001]
type = sftp
host = 192.168.3.72
pass = XXX
shell_type = unix
md5sum_command = none
sha1sum_command = none
[aleksandria-001-vault-002]
type = crypt
remote = aleksandria-001:vault-002/
password = XXX
password2 = XXX
filename_encoding = base64
suffix = none
[aleksandria-001-vault-003]
type = crypt
remote = aleksandria-001:vault-003/
password = XXX
password2 = XXX
filename_encoding = base64
suffix = none
[aleksandria-001-vault-004]
type = crypt
remote = aleksandria-001:vault-004/
password = XXX
password2 = XXX
filename_encoding = base64
suffix = none
[aleksandria-001-vault-005]
type = crypt
remote = aleksandria-001:vault-005/
password = XXX
password2 = XXX
filename_encoding = base64
suffix = none
[aleksandria-001-vault-006]
type = crypt
remote = aleksandria-001:vault-006/
password = XXX
password2 = XXX
filename_encoding = base64
suffix = none
[aleksandria-001-vault]
type = union
upstreams = aleksandria-001-vault-002: aleksandria-001-vault-003: aleksandria-001-vault-004: aleksandria-001-vault-005: aleksandria-001-vault-006: aleksandria-001-vault-007:
action_policy = mfs
create_policy = mfs
search_policy = mfs
[aleksandria-001-vault-007]
type = crypt
remote = aleksandria-001:vault-007/
password = wZwdT70N-WjvTPD78qgyCkYkk-cR5n9OGyrBsusc0-qexqzSeVNlYPLZvr0p_Vh7bJNKBQLpSqgWzW7cz_sqeTyjG6z9NaqX2FNeiVxxO9SfdlOsrC6vGGCmAf0djII0vej_2-j4LIX_nUemhRalinKXxRsZw1vKOr-nhcvZ1V466d8a41q3sl910CyQ-hBpGGHhKUulPmDMU1j9FGFPzxNyO1PWodBykicMBbRjZw6bno6HxVak8yVSwQ
password2 = b-KPxgNrDLvveScVkTiz6naCzP4MlhUUJ6pCwCPq0yHo1TmTWDcDiQ7X8XGQ51itm8aSbZWrN0ejZu5xv1ecxKrUSr63JAWSoKOgUqKFCRhmPNA2KcUvQcrpD13n5bA10zCIZTLxMPUTwsF-7inCrjOgKYBuhxPRcJg_57HDgRMPyxtjZmgx5pVodE9lbh6lwIVB5uUeXrSQ9rfGm8mGXPWmW18EhcP6hMyaXrH0ItsG6A-cWpYP-l2Hvw
filename_encoding = base64
suffix = none
A log from the command that you were trying to run with the -vv
flag
(( I cut there, because character lenght limit, i will past it in the comment. ))