No hashes on Onedrive?

Hi,

A few weeks ago I started using rclone and I find it is an exceptional piece of software. There are a few things I can’t seem to be able to do, like checking hashes on Onedrive (they work fine on Google Drive)

C:\RUN\RCLONE>rclone.exe  check d:\test OD:Test -vv --checksum
2018/04/16 22:27:48 DEBUG : Using config file from "C:\\Users\\edk\\.config\\rcl
one\\rclone.conf"
2018/04/16 22:27:48 DEBUG : rclone: Version "v1.39" starting with parameters ["r
clone.exe" "check" "d:\\test" "OD:Test" "-vv" "--checksum"]
2018/04/16 22:27:50 INFO  : One drive root 'Test': Modify window is 1s
2018/04/16 22:27:50 INFO  : One drive root 'Test': Waiting for checks to finish
2018/04/16 22:27:50 DEBUG : cpuz-readme.txt: OK
2018/04/16 22:27:50 DEBUG : cpuz.exe: OK
2018/04/16 22:27:50 DEBUG : cpuz.ini: OK
2018/04/16 22:27:50 DEBUG : GPU-Z.0.6.6.exe: OK
2018/04/16 22:27:50 DEBUG : latency.exe: OK
2018/04/16 22:27:50 NOTICE: One drive root 'Test': 0 differences found
2018/04/16 22:27:50 NOTICE: One drive root 'Test': 5 hashes could not be checked

2018/04/16 22:27:50 DEBUG : Go routines at exit 5
2018/04/16 22:27:50 DEBUG : rclone: Version "v1.39" finishing with parameters ["
rclone.exe" "check" "d:\\test" "OD:Test" "-vv" "--checksum"]

This is on Windows as you can see. I get the same results on Linux. OD: is a Onedrive for Business account.

Strange… Onedrive supports sha1sums - what does this print?

rclone.exe  -vv sha1sum OD:Test

And try the same thing locally

rclone.exe  -vv sha1sum d:\test

What happens if you upload a new file with rclone - do you see sha1sums?

C:\RUN\RCLONE>rclone.exe  -vv sha1sum OD:Test
2018/04/17 18:12:20 DEBUG : Using config file from "C:\\Users\\edk\\.config\\rcl
one\\rclone.conf"
2018/04/17 18:12:20 DEBUG : rclone: Version "v1.39" starting with parameters ["r
clone.exe" "-vv" "sha1sum" "OD:Test"]
2018/04/17 18:12:20 DEBUG : One drive root 'Test': Token expired but no uploads
in progress - doing nothing
2018/04/17 18:12:22 DEBUG : Keeping previous permissions for config file: -rw-rw
-rw-
2018/04/17 18:12:22 DEBUG : OD: Saved new token in config file
2018/04/17 18:12:24 INFO  : One drive root 'Test': Modify window is 1s
                                          GPU-Z.0.6.6.exe
                                          cpuz-readme.txt
                                          cpuz.exe
                                          cpuz.ini
                                          latency.exe
2018/04/17 18:12:25 DEBUG : Go routines at exit 7
2018/04/17 18:12:25 DEBUG : rclone: Version "v1.39" finishing with parameters ["
rclone.exe" "-vv" "sha1sum" "OD:Test"]


C:\RUN\RCLONE>rclone.exe  -vv sha1sum d:\Test
2018/04/17 18:14:13 DEBUG : Using config file from "C:\\Users\\edk\\.config\\rcl
one\\rclone.conf"
2018/04/17 18:14:13 DEBUG : rclone: Version "v1.39" starting with parameters ["r
clone.exe" "-vv" "sha1sum" "d:\\Test"]
2018/04/17 18:14:13 INFO  : Local file system at \\?\d:\Test: Modify window is 1
s
36f95c8068dd2b20de1700973a973c9ccd16f364  GPU-Z.0.6.6.exe
00ba88937f23673e9243287750744aabea78e149  cpuz-readme.txt
664db958463b01b39143bd6535f4047a1d0663d4  cpuz.exe
112d262e5141b2b7d8d72b3252cf6b017caa5202  cpuz.ini
8e06a620f7da88cdfb9c0db6a4e1f8cd5fe8a7ef  latency.exe
2018/04/17 18:14:13 DEBUG : Go routines at exit 2
2018/04/17 18:14:13 DEBUG : rclone: Version "v1.39" finishing with parameters ["
rclone.exe" "-vv" "sha1sum" "d:\\Test"]

The files above have been uploaded using rclone yesterday.

Thanks for doing that. So it looks like those files have no sha1sums which is very strange.

Could you try uploading some files with the latest beta and see if they have sha1sums?

I tried v1.39, v1.40 and the current beta and they all uploaded files with sha1sums

f572d396fae9206628714fb2ce00f72e94f2258f  v1.39.txt
f572d396fae9206628714fb2ce00f72e94f2258f  v1.40.txt
f572d396fae9206628714fb2ce00f72e94f2258f  v1.40-DEV.txt

I’m trying a onedrive personal account - I don’t currently have access to a onedrive business account.

If they don’t have sha1sums with the beta can you please make a new issue on github and we can try and work out why!

Thanks

I just found the onedrive docs for this:

In OneDrive for Business and SharePoint Server 2016, sha1Hash and crc32Hash are not available.

In OneDrive Personal, quickXorHash is not available.

So looks like in OneDrive for Business only quickXorHash is available.

So rclone could implement that.

It is definitely worth making an issue about this. If nothing else it needs to say this in the docs

Thank you for unearthing this. I just submitted an issue on github - I hope I did that correctly, because it’s the first time I used github.

Thanks! For future people looking at this thread: https://github.com/ncw/rclone/issues/2262 is the issue.