Repository navigation
Description
What is the problem you are having with rclone?
I have this configuration:
Google Drive <- Crypt <- Chunker
When I list files of chunker configuration I get a lot of errors like this:
skip chunk "file1.ext.rcc001" without meta object
My chunker configuration is:
[gdrive3chunk]
type = chunker
remote = gdrive3crypt:/
chunk_size = 1G
hash_type = md5all
name_format = *.rcc###
What is your rclone version (output from rclone version)
rclone v1.51.0-DEV
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 18.04.4 LTS
Which cloud storage system are you using? (eg Google Drive)
Google Drive <- Crypter <- Chunker
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone ls -vv gdrive3chunk:/
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
rclone ls -vv gdrive3chunk:/
2020/02/16 19:58:21 DEBUG : rclone: Version "v1.51.0-DEV" starting with parameters ["./rclone" "ls" "-vv" "gdrive3chunk:/"]
2020/02/16 19:58:21 DEBUG : Using config file from "/home/jorge/.config/rclone/rclone.conf"
2020/02/16 19:58:21 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc001" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc002" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc011" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc016" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc019" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc026" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc030" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc031" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc032" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc036" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc039" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc045" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc046" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc055" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc056" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc057" without meta object
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': skip chunk "file1.ext.rcc058" without meta object
13372848008 file2.ext
2020/02/16 19:58:26 DEBUG : Chunked 'gdrive3chunk:/': invalid chunks in object "file1.ext"
2020/02/16 19:58:26 DEBUG : 13 go routines active
I think the problem is the function "ListR" in chunker.go.
Chunker needs to call to function processEntries with all entries because the "meta" object should be in list before the chunks (it calls to sort.Sort(sortedEntries) in order to sort the entries).
However, Google Drive and Crypter calls the callback of ListR only in pages with 100 entries (There are 348 chunks in directory).
If I drop "ListR" implementation in chunker.go It works perfectly (calling List instead of ListR).
Thanks a lot.
Regards.
Activity
ncw commentedon Feb 24, 2020
Thanks for the bug report.
@ivandeex have you got time to look at this?
ivandeex commentedon Feb 24, 2020
@jfabaf Please send me directory listing of the base remote, ie output of
rclone ls -vv gdrive3crypt:/jfabaf commentedon Feb 25, 2020
Thank you very much in advance!!!
@ivandeex this is the base remote output:
And this is chunker remote output:
Regards!
ivandeex commentedon Mar 6, 2020
@jfabaf
Please excuse my long absense, I'm back for rclone now.
I can't reproduce your issue with 1.51 release on my gdrive with 70-chunk test files (though small).
Theoretically your files look fine too.
If I grep chunks from your log and sort by name, there are no missing chunks.
And all of them seem to be normal files (if there was a directory named as one of chunks, Chunker would legitimately fail, but that's not your case it seems).
Yet I noticed your version in log is "v1.51.0-DEV".
Could you please install "v1.51" release (w/o DEV) and repeat the experiment?
Best, Ivan
jfabaf commentedon Mar 6, 2020
@ivandeex Thank you very much.
I've repeated it with rclone 1.51 (installed from .deb) and I got same issue.
This is my configuration (secret information hidden):
[gdrive3]
type = drive
client_id = *********
client_secret = *******
scope = drive
token = *****
root_folder_id = ******
[gdrive3crypt]
type = crypt
remote = gdrive3:/crypt
filename_encryption = standard
directory_name_encryption = true
password = *****
password2 = *****
[gdrive3chunk]
type = chunker
remote = gdrive3crypt:/
chunk_size = 1G
hash_type = md5all
name_format = *.rcc##
Could you try it with this configuration parameters?
Thanks and Regards.
ivandeex commentedon Mar 6, 2020
I'm on GDrive free (15G total). With chunk size 1G I'm limited by eg three files 5 chunks each. Not strictly 70 but let's hope it can reproduce :)
jfabaf commentedon Mar 6, 2020
I think you should get same issue with 1M chunk size. Thanks.
ivandeex commentedon May 17, 2020
@jfabaf
Please run beta rclone build from https://github.com/ivandeex/rclone/releases/tag/v1.51.driveskip and let me know if it solves your problem.
This build contains a workaround for incorrect directory list in chunker. If it works for you, I will develop a full solution and merge by the next rclone release.
ivandeex commentedon May 18, 2020
@jfabaf Please excuse my long silence.
jfabaf commentedon May 22, 2020
@ivandeex Thank you very very much!!!!
It works now, this is the output:
`$ git clone --branch v1.51.driveskip https://github.com/ivandeex/rclone.git
$ cd rclone
$ go build
...
$ rclone --version
rclone v1.51.0-DEV
$ rclone ls -vv "gdrive3chunk:/"
2020/05/23 00:52:14 DEBUG : rclone: Version "v1.51.0-DEV" starting with parameters ["rclone" "ls" "-vv" "gdrive3chunk:/"]
2020/05/23 00:52:14 DEBUG : Using config file from "/home/jorge/.config/rclone/rclone.conf"
2020/05/23 00:52:15 DEBUG : Reset feature "ListR"
13372848008 file1.ext
64017802325 file2.ext
65951826007 file3.ext
27721566904 file4.ext
75991455594 file5.ext
55139019382 file6.ext
13599205583 file7.ext
8710969680 file8.ext
13474244849 file9.ext
8836068338 file10.ext
`
Of course, don't worry for long silence ;-)
Many thanks!!!
Regards!
23 remaining items
[-]Chunker doesn't list all entries in directory[/-][+]chunker: add support for --fast-list[/+]ivandeex commentedon Feb 18, 2021
The problem here is that internally chunker directory lister uses a simple algorithm which expects to receive all objects from a lower level backend in a single batch, then sorts them by name and groups by name prefix to have metadata together with relevant data chunks. This algorithm does not work with --fast-list when the lower level feeds directory objects in assorted batches. Currently this is mitigated by internally disabling the ListR interface (which implements --fast-list) thus enforcing a transparent fallback. Also, we enforce chunk name formats where chunk number comes last, as otherwise the algorithm would break.
A proper solution will refactor this code and replace sort-based directory lister by a finite state automata. This will re-enable --fast-list internally, enable free-form chunk name formats and allow for more optimal code for the new no-rename transaction flavor.
ivandeex commentedon Feb 18, 2021
Also, I am going to refactor internal representation of chunker composite objects. Currently their state and kind (composite object, external file, simple file wrapper, object in process of parsing or with unconfirmed metadata, etc) is determined using an assorted set of conditions. I expect that introducing a single object state will simplify and clarify the code overall.
jfabaf commentedon Apr 24, 2021
@ivandeex Will it be fixed in v1.56?
I am hoping to use in a production environment.
Thank you!
ivandeex commentedon Apr 24, 2021
The current workaround can be used in prod. It only slightly reduces performance. Therefore I keep this open at low priority. Will fix in 1.58
chunker: disable ListR to fix missing files on GDrive (workaround rcl…
chunker: disable ListR to fix missing files on GDrive (workaround rcl…