DropBox crypt error: failed to authenticate decrypted block - bad password


#1

Weird error.

2019/01/31 09:28:22 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 1/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:24 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 2/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:27 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 3/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:30 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 4/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:33 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 5/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:35 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 6/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:38 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 7/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:41 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 8/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:44 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 9/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:48 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: low level retry 10/10: failed to authenticate decrypted block - bad password?
2019/01/31 09:28:51 ERROR : movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv: ReadFileHandle.Read error: failed to authenticate decrypted block - bad password?

2019/02/01 02:19:20 ERROR : series/Da Vinci's Demons/: Dir.Stat error


#2

That probably indicates data corruption which is bad…

Can you use rclone copy to download that file or does it give the same error?


#3

It failed to copy file, full log bellow.

2019/02/02 10:54:50 DEBUG : rclone: Version "v1.45-140-gc496efe9-beta" starting with parameters ["rclone" "copy" "dropboxcrypt:/movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv" "/storage/" "--log-level" "DEBUG" "--log-file=/storage/rccp.log"]
2019/02/02 10:54:50 DEBUG : Using config file from "/home/plex/.config/rclone/rclone.conf"
2019/02/02 10:54:51 DEBUG : Dropbox root 'crypt/hm2ka8or5qp1pefhtc1e62jn50/js8r7t50ac46m93f1q84dsvnj8eq1ojm2lg7m2rptka50rimhj3g/dmtsreetb38ogj4qkb52iaii66mgq5pprvmcek9is43jts307mtgt1k1u2jpj739igerv5avqch3u': Using root namespace "1856006048"
2019/02/02 10:54:52 DEBUG : Raising Helen (2004) - WEBDL-1080p.mkv: Couldn't find file - need to transfer
2019/02/02 10:55:52 INFO  :
Transferred:      933.996M / 4.865 GBytes, 19%, 15.227 MBytes/s, ETA 4m25s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 1, 0%
Elapsed time:      1m1.3s
Transferring:
 *        Raising Helen (2004) - WEBDL-1080p.mkv: 18% /4.865G, 15.960M/s, 4m13s

2019/02/02 10:56:44 NOTICE: Raising Helen (2004) - WEBDL-1080p.mkv: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2019/02/02 10:56:45 ERROR : Raising Helen (2004) - WEBDL-1080p.mkv: Failed to copy: failed to authenticate decrypted block - bad password?
2019/02/02 10:56:45 ERROR : Attempt 1/3 failed with 1 errors and: failed to authenticate decrypted block - bad password?
2019/02/02 10:56:45 DEBUG : Raising Helen (2004) - WEBDL-1080p.mkv: Couldn't find file - need to transfer
2019/02/02 10:56:52 INFO  :
Transferred:        2.326G / 6.946 GBytes, 33%, 19.628 MBytes/s, ETA 4m1s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 1, 0%
Elapsed time:      2m1.3s
Transferring:
 *        Raising Helen (2004) - WEBDL-1080p.mkv:  5% /4.865G, 46.997M/s, 1m40s

2019/02/02 10:57:30 NOTICE: Raising Helen (2004) - WEBDL-1080p.mkv: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2019/02/02 10:57:31 ERROR : Raising Helen (2004) - WEBDL-1080p.mkv: Failed to copy: failed to authenticate decrypted block - bad password?
2019/02/02 10:57:31 ERROR : Attempt 2/3 failed with 1 errors and: failed to authenticate decrypted block - bad password?
2019/02/02 10:57:31 DEBUG : Raising Helen (2004) - WEBDL-1080p.mkv: Couldn't find file - need to transfer
2019/02/02 10:57:52 INFO  :
Transferred:        4.779G / 9.027 GBytes, 53%, 26.988 MBytes/s, ETA 2m41s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 1, 0%
Elapsed time:      3m1.3s
Transferring:
 *        Raising Helen (2004) - WEBDL-1080p.mkv: 12% /4.865G, 32.857M/s, 2m12s

2019/02/02 10:58:22 NOTICE: Raising Helen (2004) - WEBDL-1080p.mkv: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2019/02/02 10:58:22 ERROR : Raising Helen (2004) - WEBDL-1080p.mkv: Failed to copy: failed to authenticate decrypted block - bad password?
2019/02/02 10:58:22 ERROR : Attempt 3/3 failed with 1 errors and: failed to authenticate decrypted block - bad password?
2019/02/02 10:58:22 Failed to copy: failed to authenticate decrypted block - bad password?
plex@plx /storage $ cat rccp.log
2019/02/02 10:54:50 DEBUG : rclone: Version "v1.45-140-gc496efe9-beta" starting with parameters ["rclone" "copy" "dropboxcrypt:/movies/Raising Helen (2004)/Raising Helen (2004) - WEBDL-1080p.mkv" "/storage/" "--log-level" "DEBUG" "--log-file=/storage/rccp.log"]
2019/02/02 10:54:50 DEBUG : Using config file from "/home/plex/.config/rclone/rclone.conf"
2019/02/02 10:54:51 DEBUG : Dropbox root 'crypt/hm2ka8or5qp1pefhtc1e62jn50/js8r7t50ac46m93f1q84dsvnj8eq1ojm2lg7m2rptka50rimhj3g/dmtsreetb38ogj4qkb52iaii66mgq5pprvmcek9is43jts307mtgt1k1u2jpj739igerv5avqch3u': Using root namespace "1856006048"
2019/02/02 10:54:52 DEBUG : Raising Helen (2004) - WEBDL-1080p.mkv: Couldn't find file - need to transfer
2019/02/02 10:55:52 INFO  :
Transferred:      933.996M / 4.865 GBytes, 19%, 15.227 MBytes/s, ETA 4m25s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 1, 0%
Elapsed time:      1m1.3s
Transferring:
 *        Raising Helen (2004) - WEBDL-1080p.mkv: 18% /4.865G, 15.960M/s, 4m13s

2019/02/02 10:56:44 NOTICE: Raising Helen (2004) - WEBDL-1080p.mkv: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2019/02/02 10:56:45 ERROR : Raising Helen (2004) - WEBDL-1080p.mkv: Failed to copy: failed to authenticate decrypted block - bad password?
2019/02/02 10:56:45 ERROR : Attempt 1/3 failed with 1 errors and: failed to authenticate decrypted block - bad password?
2019/02/02 10:56:45 DEBUG : Raising Helen (2004) - WEBDL-1080p.mkv: Couldn't find file - need to transfer
2019/02/02 10:56:52 INFO  :
Transferred:        2.326G / 6.946 GBytes, 33%, 19.628 MBytes/s, ETA 4m1s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 1, 0%
Elapsed time:      2m1.3s
Transferring:
 *        Raising Helen (2004) - WEBDL-1080p.mkv:  5% /4.865G, 46.997M/s, 1m40s

2019/02/02 10:57:30 NOTICE: Raising Helen (2004) - WEBDL-1080p.mkv: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2019/02/02 10:57:31 ERROR : Raising Helen (2004) - WEBDL-1080p.mkv: Failed to copy: failed to authenticate decrypted block - bad password?
2019/02/02 10:57:31 ERROR : Attempt 2/3 failed with 1 errors and: failed to authenticate decrypted block - bad password?
2019/02/02 10:57:31 DEBUG : Raising Helen (2004) - WEBDL-1080p.mkv: Couldn't find file - need to transfer
2019/02/02 10:57:52 INFO  :
Transferred:        4.779G / 9.027 GBytes, 53%, 26.988 MBytes/s, ETA 2m41s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 1, 0%
Elapsed time:      3m1.3s
Transferring:
 *        Raising Helen (2004) - WEBDL-1080p.mkv: 12% /4.865G, 32.857M/s, 2m12s

2019/02/02 10:58:22 NOTICE: Raising Helen (2004) - WEBDL-1080p.mkv: Removing partially written file on error: failed to authenticate decrypted block - bad password?
2019/02/02 10:58:22 ERROR : Raising Helen (2004) - WEBDL-1080p.mkv: Failed to copy: failed to authenticate decrypted block - bad password?
2019/02/02 10:58:22 ERROR : Attempt 3/3 failed with 1 errors and: failed to authenticate decrypted block - bad password?
2019/02/02 10:58:22 Failed to copy: failed to authenticate decrypted block - bad password?

p.s. Is there a way to test all files on cloud without fully copy them. ( maybe partial read like 200M from each file )


#4

It looks like this file is corrupted about 1GB from the start.

Do you still have the original file on your disk? What happens if you run rclone cryptcheck?

Doing an rclone cryptcheck would be a good start if you have the original files locally.

Can you try this beta

https://beta.rclone.org/branch/v1.45-141-g27693215-crypt-pass-corrupted-beta/ (uploaded in 15-30 mins)

It has a new flag --crypt-pass-corrupted-blocks so it will pass the corrupted blocks through rather than killing the process.

Can you do an rclone copy with this binary and see

  • how many times does it print “ERROR passing corrupted block”

What we are trying to find out is where the corruption occurred. It could be

  • introduced by dropbox in the storage
  • introduced by rclone in the upload

You could do something like this to check the first 200 MB of each file

find /mnt/dropbox -type f -print0 | xargs -0i sh -c 'echo {} ; dd status=none if={} of=/dev/null bs=1M count=200'

This will only output errors


#5

Unfortunately I dont have a local files nor the original corrupted file, since I replace it with new copy :confused:

The corruption could happen on upload eg rclone move or more likely during rclone sync from gdrive: to dropbox:
Around a year ago I was syncing gdrive with dropbox before I switched and back then I used tons of free google compute VM’s to transfer around 120 - 130TB of data.

I will run the test on files one of this days to see if I will encounter the same error.


#6

Getting an error sh: 1: Syntax error: “(” unexpected
cmd
find /mnt/dropboxcrypt/movies/ -type f -print0 | xargs -0i sh -c 'echo {} ; dd status=none if={} of=/dev/null bs=1M count=200'


#7

Ah you’ve got ( in your file names…

Try

find /mnt/dropboxcrypt/movies/ -type f | perl -lne 'print; system("dd", "status=none", "if=$_", "of=/dev/null", "bs=1M", "count=200") == 0 || print "$_ FAILED $!"'

I don’t know whether you saw this - Can you try this beta

https://beta.rclone.org/branch/v1.45-141-g27693215-crypt-pass-corrupted-beta/ (uploaded in 15-30 mins)

It has a new flag --crypt-pass-corrupted-blocks so it will pass the corrupted blocks through rather than killing the process.

Can you do an rclone copy with this binary and see

How many times does it print “ERROR passing corrupted block”


#8

I saw beta, just need to find another corrupted file to test since the first one i already replaced.

When I run:
find /mnt/dropboxcrypt/movies/ -type f | perl -lne 'print; system("dd", "status=none", "if=$_", "of=/dev/null", "bs=1M", "count=200") == 0 || print "$_ FAILED $!"'

it just listing files and no errors in mount log.

/mnt/dropboxcrypt/movies/#realityhigh (2017)/#realityhigh (2017) - WEBDL-1080p.mkv
/mnt/dropboxcrypt/movies/'71 (2014)/'71 (2014) - Bluray-1080p.mkv
/mnt/dropboxcrypt/movies/'71 (2014)/'71 (2014) - Bluray-1080p.sl.srt
/mnt/dropboxcrypt/movies/'Til Death Do Us Part (2017)/'Til Death Do Us Part (2017) - WEBDL-720p.mkv
/mnt/dropboxcrypt/movies/(500) Days of Summer (2009)/(500) Days of Summer (2009) - Bluray-1080p.mkv
/mnt/dropboxcrypt/movies/(500) Days of Summer (2009)/(500) Days of Summer (2009) - Bluray-1080p.sl.srt
/mnt/dropboxcrypt/movies/1 Mile To You (2017)/1 Mile To You (2017) - WEBDL-1080p.mkv


#9

It will print FAILED if it finds a bad one, otherwise it just lists each file as it processes it.