`rclone sha1sum/hashsum` not working with chunker

rclone.config:

[onedrive]
type = onedrive
client_id = XXXX
client_secret = XXXX
drive_id = XXXX
drive_type = personal
token = XXXX

[chunker]
type = chunker
remote = onedrive:test
chunk_size = 5GB
hash_type = sha1all

I copy small test.txt file into chunker and as hash_type = sha1all is used two files are created in onedrive:test:

test.txt
test.txt.rclone_chunk.001

content of this test.txt file confirms that sha1 is stored for every file:

{"ver":1,"size":1455,"nchunks":1,"sha1":"2ae6c78d2d02fc57311f0acd7b6f07089356c253"}

but now when i run:

rclone sha1sum chunker:test.txt or rclone hashsum SHA1 chunker:test.txt

no hash is retrieved but neither error displayed:

rclone sha1sum chunker:test.txt
                                          test.txt

when I try the same directly on onedrive

rclone sha1sum onedrive:test/test.txt
2023/07/19 16:18:05 ERROR : test.txt: hash unsupported: hash type not supported
2023/07/19 16:18:05 Failed to hashsum with 2 errors: last error was: hash unsupported: hash type not supported

which is correct as onedrive does not support SHA1 anymore

rclone sha1sum chunker:test.txt or rclone hashsum SHA1 chunker:test.txt

should list valid hash for chunker content with stored hashes

Interestingly when I run rclone check src chunker: -vv:

...
2023/07/19 16:37:18 INFO  : Using sha1 for hash comparisons
...
2023/07/19 16:37:20 DEBUG : test1.txt: sha1 = 2ae6c78d2d02fc57311f0acd7b6f07089356c253 OK
...

I can see that SHA1 hashes stored in chunker are used.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.