Getting errors: "Failed to set sparse: DeviceIoControl FSCTL_SET_SPARSE: Incorrect function."

What is the problem you are having with rclone?

When I copy some files from my encrypted dropbox remote to my local device, i get theese errors:
Its typically on "MPG" and "AVI" files.

It happens using the rclone copy command.

2021-07-24 22:01:39 ERROR : FILENAME.MPG: Failed to set sparse: DeviceIoControl FSCTL_SET_SPARSE: Incorrect function.

2021-07-16 20:05:55 ERROR : FILENAME.AVI: Failed to set sparse: DeviceIoControl FSCTL_SET_SPARSE: Incorrect function.

The videos seem to work fine and when I check the files using "WinMerge" the file seem to be identical to the one I have backed up using rclone.

So I'm not sure why this error is showing, and if I should pay attention to it...?

What is your rclone version (output from rclone version)

rclone v1.55.1

  • os/type: windows
  • os/arch: amd64
  • go/version: go1.16.3
  • go/linking: dynamic
  • go/tags: cmount

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Microsoft Windows 10 Pro

Which cloud storage system are you using? (eg Google Drive)

Dropbox (encrypted remote)

A log from the command with the -vv flag

rclone copy dbcrypt:/dir/MVI_0017.MP4 mvi -P -vvv

2021/07/24 22:26:08 DEBUG : Using config file from "C:\\Users\\Superbanana\\.config\\rclone\\rclone.conf"
2021/07/24 22:26:08 DEBUG : rclone: Version "v1.55.1" starting with parameters ["E:\\Software\\rclone\\rclone.exe" "copy" "dbcrypt:/dir/MVI_0017.MP4" "mvi" "-P" "-vvv"]
2021/07/24 22:26:08 DEBUG : Creating backend with remote "dbcrypt:/dir/MVI_0017.MP4"
2021/07/24 22:26:08 DEBUG : Creating backend with remote "dropbox:/Backup/rclone/dir/MVI_0017.MP4.bin"
2021/07/24 22:26:08 DEBUG : Dropbox root '': Using root namespace "{REDACTED}"
2021/07/24 22:26:08 DEBUG : fs cache: adding new entry for parent of "dropbox:/Backup/rclone/dir/MVI_0017.MP4.bin", "dropbox:Backup/rclone/dir"
2021/07/24 22:26:08 DEBUG : Creating backend with remote "mvi"
2021/07/24 22:26:08 DEBUG : fs cache: renaming cache item "mvi" to be canonical "//?/Q:/mvi"
2021-07-24 22:26:08 DEBUG : MVI_0017.MP4: Need to transfer - File not found at Destination
2021-07-24 22:26:08 INFO  : Writing sparse files: use --local-no-sparse or --multi-thread-streams 0 to disable
2021-07-24 22:26:08 ERROR : MVI_0017.MP4: Failed to set sparse: DeviceIoControl FSCTL_SET_SPARSE: Incorrect function.
2021-07-24 22:26:08 DEBUG : MVI_0017.MP4: Starting multi-thread copy with 2 parts of size 231.938M
2021-07-24 22:26:08 DEBUG : MVI_0017.MP4: multi-thread copy: stream 2/2 (243204096-486345255) size 231.877M starting
2021-07-24 22:26:08 DEBUG : MVI_0017.MP4: multi-thread copy: stream 1/2 (0-243204096) size 231.938M starting
2021-07-24 22:26:31 DEBUG : MVI_0017.MP4: multi-thread copy: stream 2/2 (243204096-486345255) size 231.877M finished
2021-07-24 22:26:31 DEBUG : MVI_0017.MP4: multi-thread copy: stream 1/2 (0-243204096) size 231.938M finished
2021-07-24 22:26:31 DEBUG : MVI_0017.MP4: Finished multi-thread copy with 2 parts of size 231.938M
2021-07-24 22:26:31 INFO  : MVI_0017.MP4: Multi-thread Copied (new)
Transferred:      463.815M / 463.815 MBytes, 100%, 20.839 MBytes/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:        23.2s
2021/07/24 22:26:31 INFO  :
Transferred:      463.815M / 463.815 MBytes, 100%, 20.839 MBytes/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:        23.2s

2021/07/24 22:26:31 DEBUG : 7 go routines active

hello and welcome to the forum,

rclone, when possible, uses spare files for local downloads, only for local downloads
i assume, that q: drive is a network drive, not local
if true, then as per the debug log, you have two choices.
use --local-no-sparse or --multi-thread-streams 0 to disable
i suggest to add --local-no-sparse

and as you have shown and as per the debug log,
rclone downloads the file, depsite that error message.

1 Like

Just to clarify: Q: is a local drive not a network drive.

my bad, i should not assume...

so what is q:?

sparse files work only with ntfs and refs, not fat, fat32, exfat

It is actually a veracrypt volume, could that be the issue?

I will try on a normal ssd

EDIT: OK i just tried on a normal SSD and I didn't get the error. So I guess we can close this issue.

When I added the "--local-no-sparse" paramenter on the veracrypt volume I don't get the error, so thanks - but it is confusing it's showing "error" when its actually working :slight_smile:

Thanks!

veracrypt, that is the issue....

yeah, perhaps that error should be a warning but in the end you got it working...

and rclone has a crypt backend
https://rclone.org/crypt/

1 Like

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