What is the problem you are having with rclone?
I am encountering the error "Failed to copy: failed to authenticate decrypted block - bad password?" when trying to decrypt/download my files from an rclone crypt with my local computer as the backend.
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.5.0-17-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
[Chain of Data Storage]
- Local -> (Crypt) Google Drive -> Local
- Local -> (Crypt) Google Drive -> (Crypt) Local -> Local
Both cases end up with the same errors.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy crypt: /path/to/local/directory
The rclone config contents with secrets removed.
I've modified the backend names to be more general.
[google]
type = drive
client_id = <redacted>
client_secret = <redacted>
scope = drive
token = <redacted>
server_side_across_configs = true
stop_on_upload_limit = true
root_folder_id = <redacted>
[google-crypt]
type = crypt
remote = google:something
filename_encryption = standard
directory_name_encryption = true
password = <redacted>
password2 = <redacted>
server_side_across_configs = true
stop_on_upload_limit = true
[local]
type = local
[local-crypt]
type = crypt
remote = local:/path/to/crypt
filename_encryption = standard
directory_name_encryption = true
password = <redacted>
password2 = <redacted>
A log from the command with the -vv
flag
2024/02/20 18:59:35 NOTICE: 2024/02/20 18:59:35 NOTICE: 2024/02/20 18:59:35 NOTICE: <redacted>.sajaqef3.partial: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2024/02/20 18:59:35 ERROR :<redacted>: Failed to copy: failed to authenticate decrypted block - bad password?
2024/02/20 18:59:35 NOTICE: <redacted>.vucuken4.partial: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2024/02/20 18:59:35 ERROR : <redacted>: Failed to copy: failed to authenticate decrypted block - bad password?
(Repetition of the same notices and errors for the rest of my files)
A log from the command "rclone cryptcheck
" with the -vv
flag on the encrypted files and directories
2024/02/20 18:42:30 DEBUG : rclone: Version "v1.65.2" starting with parameters ["rclone" "cryptcheck" "-vv" "local:/path/to/local-crypt/" "local-crypt:"]
2024/02/20 18:42:30 DEBUG : Creating backend with remote "<redacted>"
2024/02/20 18:42:30 DEBUG : Using config file from "<redacted>"
2024/02/20 18:42:30 DEBUG : fs cache: renaming cache item "<redacted>" to be canonical "<redacted>"
2024/02/20 18:42:30 DEBUG : Creating backend with remote "local-crypt:"
2024/02/20 18:42:30 DEBUG : fs cache: switching user supplied name "local:<redacted>" for canonical name "<redacted>"
2024/02/20 18:42:30 INFO : Using md5 for hash comparisons
2024/02/20 18:42:30 DEBUG : Encrypted drive 'local-crypt:': Waiting for checks to finish
2024/02/20 18:42:30 ERROR : <redacted>: file not in Local file system at <redacted>
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ruf6839ln4i0agopk0n1j5hth2e48vr59irhke1afmgnk1f0obct8inigq5fildifkndrkf8al02e: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/l50jrhsrmnssn92ma13m1njavthh7nhthsub3tfi4h3fgovv86htg3sln8dno4sr01imbord1ednq: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : <redacted>: file not in Local file system at /path/to/local-crypt
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/0q0gmmssml50borc2nmdpqcp5rbv75isaf71av2b55rogg8sksi0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/1013eop21cnia6ph4g5saaqhd539gtdc1kn3bl9e8pqv4b3co5tg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/1u62dsirtjg7qvsa0b2pfbi30611m5d3r6o4jrj3glde2eals750: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/2k6uei6k537ps1kk59jr1ivcrs: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/31jrl4c35qll9ek0behg17v8ndsfq02puaoeiam7kr8l3i479k6g: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/32p4lnpgupghad7h8hen3mn140: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/7c08vkto4lqa60fq7no2s9gq1jaes459p54c90s07fu9v427jkqv6rgrlev4mbjgldvom8pbbd12s: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/87fcbght7ca9ojmciqa0625tks6g6bcubolmueh0cctksb2suqu0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/a118havjb9g7oefvo4nfne0vts: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/bpe7mrlelgh45qoquatnknknu04me8tf4t4893asb3nrc4ffrsbg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/f2c3hej0948dk2tjbn8al6dqo7hmn6d167rsoa571a1kaukcshrg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/g8hnmmnlk0l40qp3uqgn2babd8ut6ek7c95tk4k0qgpmpf71n8e0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/ghoo7d292fqie1otm7e6p3e5k8: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/i48hlal38mpjo1nn051n8d17j71qre9h65pebihicllvi9uduj70: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/jeekevl27hl3r3abkpefhhme9odn4vrpqdv2e59i056avfkov3h0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/lcmbcff3paunlmecsb5lj0u95cpoo7ahdft6uurtcb65pn1at8e0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/n8q13d0t3927lb91gshqr0c1t9g683djimari1mbdil55qdkocag: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/nrq1sjci90r1o9all7i1uev4u847ib2pausaohv6dj0a1d8es4hdjp9v1rj979s3jtdj9qakjpo5k: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/tab8oal2trpuvvmsbvkmmddsq0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/uh0empj7ldil9dgg56avcn7qcg01ct66j0i3ciqd1bnemnbp88hg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/t6qcidd9sm072ssf6fnpt5f368/1td87jf3ccojg9osqthaafgdrvg17qrqogs4qhcdkb8j742qsu1g/ffeesr45dof4j1sfsrh9li65knqhti739qepar8egcd0pled3vi0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/5ool5b302erbn83fk0dams6k1he90qba45r5p2mbqik10hn4p4fg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/91u1m0fc5ob0jq1mocf3naodgsn21i7aumc5dr969d88qcl8f8ug: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/k9oefg3ocvp8vq3che31tb6ldgi414gqdoaggcb8tt2h4je14nfg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/kmbhpg923tpqsaptm6ktftihis: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/obl8f7pbjeaacjnfccr3us0hf44nbna5epchncojcmncssg5sni0: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/pvd3pq6gop94ucg60g00jpgvskvouioot087gprpif782n7j8sfg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/qeq81bek4tl8nrgu8ngpntvvjesgt9bcad986c6ngdv6e1m49gdg: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : ghfr5k0ljim5mhlihqngmi4m8o/m8q035t7n886gkbcmae5vlav0nvns3v8pd4qq1uq0jtrvikhnm8g/26q50o285sdn10i3t9a330bbqc/ee40rg8r6756iopqren443d9qc/ngo6m6n5kl3ie1jm3g8ib280ps/c46uijom6ftmdqv02s0prjgih7daek5km3pp2fdve07i2quma04c6j0jaa3uo2fuvo5ss546rgtoq/s0tju4c5bf0ljivtg3bbh72sh3l2uokqkm45ouse327uj027sp1g: file not in Encrypted drive 'local-crypt:'
2024/02/20 18:42:30 ERROR : <redacted>: file not in Local file system at <redacted>
2024/02/20 18:42:30 ERROR : <redacted>: file not in Local file system at <redacted>
2024/02/20 18:42:30 ERROR : <redacted>: file not in Local file system at <redacted>
2024/02/20 18:42:30 ERROR : <redacted>: file not in Local file system at <redacted>
2024/02/20 18:42:30 ERROR : <redacted>: file not in Local file system at <redacted>
(Omitted)
2024/02/20 18:42:34 NOTICE: Encrypted drive 'local-crypt:': 44069 files missing
2024/02/20 18:42:34 NOTICE: Local file system at <redacted>: 44069 files missing
2024/02/20 18:42:34 NOTICE: Encrypted drive 'local-crypt:': 88138 differences found
2024/02/20 18:42:34 NOTICE: Encrypted drive 'local-crypt:': 88138 errors while checking
2024/02/20 18:42:34 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 88138 (retrying may help)
Elapsed time: 3.2s
2024/02/20 18:42:34 DEBUG : 5 go routines active
2024/02/20 18:42:34 Failed to cryptcheck with 88138 errors: last error was: 88138 differences found
Other things of notice
- Each encrypted file is of non-zero size. It takes up the correct amount of space on the disk and reports the correct size of the original file.
- When Using the open source rclone browser to peruse through my files, the decrypted names show up correctly. But if I try to download any of the files, I get the current errors. Using
rclone mount
yields the same results. File and directory names are correctly decrypted but I/O error on trying to copy files out to local system. - Based on inspection of encrypted files using a hex editor, the headers seem to be correct and the contents of each file are different from each other and non-zero/null; possibly indicating that the files themselves are still there.