What is the problem you are having with rclone?
Attempting to get SHA-1 and SHA-256 hashes for files on OneDrive results in a "hash unsupported" error. I verified that OneDrive does have these hashes for files using the OneDrive API (https://graph.microsoft.com/v1.0/me/drive/items/{item-id}
endpoint). rclone only gives a hash for QuickXorHash, so some hashes are working. Using both sha1sum/sha256sum
and hashsum sha1
give the same unsupported hash error.
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: arch (64 bit)
- os/kernel: 6.9.1-arch1-2 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive (personal)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone -vv sha1sum personal-onedrive:file.txt
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[personal-onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
2024/05/25 13:35:08 DEBUG : Using config file from "/home/ian/.config/rclone/rclone.conf"
2024/05/25 13:35:09 DEBUG : fs cache: adding new entry for parent of "personal-onedrive:file.txt", "personal-onedrive:"
2024/05/25 13:35:09 DEBUG : Backups: Excluded
2024/05/25 13:35:09 DEBUG : Documents: Excluded
2024/05/25 13:35:09 DEBUG : Email attachments: Excluded
2024/05/25 13:35:09 DEBUG : Media: Excluded
2024/05/25 13:35:09 DEBUG : Microsoft Teams Chat Files: Excluded
2024/05/25 13:35:09 DEBUG : music: Excluded
2024/05/25 13:35:09 DEBUG : rclone: Excluded
2024/05/25 13:35:09 DEBUG : School: Excluded
2024/05/25 13:35:09 DEBUG : Document 1.docx: Excluded (FilesFrom Filter)
2024/05/25 13:35:09 DEBUG : Document 1.docx: Excluded
2024/05/25 13:35:09 DEBUG : Document.docx: Excluded (FilesFrom Filter)
2024/05/25 13:35:09 DEBUG : Document.docx: Excluded
2024/05/25 13:35:09 DEBUG : Google Data takeout-20190810T202349Z-001.tgz: Excluded (FilesFrom Filter)
2024/05/25 13:35:09 DEBUG : Google Data takeout-20190810T202349Z-001.tgz: Excluded
2024/05/25 13:35:09 DEBUG : IMG_1772.JPG: Excluded (FilesFrom Filter)
2024/05/25 13:35:09 DEBUG : IMG_1772.JPG: Excluded
2024/05/25 13:35:09 DEBUG : Profile.png: Excluded (FilesFrom Filter)
2024/05/25 13:35:09 DEBUG : Profile.png: Excluded
2024/05/25 13:35:09 ERROR : file.txt: hash unsupported: hash type not supported
2024/05/25 13:35:09 DEBUG : 6 go routines active
2024/05/25 13:35:09 Failed to sha1sum with 2 errors: last error was: hash unsupported: hash type not supported