I/O Error vfs reader: failed to write to cache file - File download restricted

What is the problem you are having with rclone?

I'm new to rclone and have managed to mount my cloud account to a folder. I can copy & paste between my PC and the cloud via the folder without problems however a few hrs after uploading a mixture of files (.pdf, .jpg, and .exe) I get the following error message when trying to interact (copy, move or just click on to select) any of the .exe files via Windows Explorer.

2023/07/30 15:13:14 ERROR : IO error: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 16:13:14 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[26a1b50d-18cd-4ffd-679b-9d7b8ec46e95] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"26a1b50d-18cd-4ffd-679b-9d7b8ec46e95"}

The error message repeats until I Ctrl C to stop rclone.
By experiment I have discovered that this only occurs when the cache no longer contains a copy of the .exe being accessed so I assume its triggered by the cache being updated.
Though the .exe (s) have been virus checked before being uploaded I have tried accessing the files after uninstalling the AV (and rebooting) in case the AV was the source of the "blocking" but I got the same result as before. I have also tried disabling Windows Defender (AV still not installed), again with the same result.

Any suggestions as to the cause and how to get around this?

Run the command 'rclone version' and share the full output of the command.

rclone v1.63.1

  • os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
  • os/kernel: 10.0.19045.2486 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.6
  • go/linking: static
  • go/tags: cmount

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

koofr

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Folder mounted using bat file containing just 
"D:\Downloads\rclone\rclone.exe"  mount "Koofr:" "D:\Koofr\Unencrypted" --vfs-cache-mode full
Issue occurs when using Windows Explorer

The rclone config contents with secrets removed.

[Koofr]
type = koofr
provider = koofr
user = *** REMOVED ***
password = *** REMOVED ***
endpoint = "https://app.koofr.net"

A log from the command with the -vv flag

The service rclone has been started.
2023/07/30 16:43:51 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:50 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[d6a71c4b-0695-4aec-7d0b-8d643d59dd0e] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"d6a71c4b-0695-4aec-7d0b-8d643d59dd0e"}
2023/07/30 16:43:52 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:51 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[39e20b9f-f4a5-4e46-66ad-6ac07dba79cc] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"39e20b9f-f4a5-4e46-66ad-6ac07dba79cc"}
2023/07/30 16:43:53 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:52 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[56531c67-4584-4a07-56aa-94c4eb0fa94a] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"56531c67-4584-4a07-56aa-94c4eb0fa94a"}
2023/07/30 16:43:53 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:53 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[22307ca3-9b39-4744-7ecf-fbe52ce5dd85] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"22307ca3-9b39-4744-7ecf-fbe52ce5dd85"}
2023/07/30 16:43:54 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:54 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[eaa57062-f102-4603-7153-521fd78be460] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"eaa57062-f102-4603-7153-521fd78be460"}
2023/07/30 16:43:55 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:54 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[a07cbb02-697b-4496-438e-b775294fe226] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"a07cbb02-697b-4496-438e-b775294fe226"}
2023/07/30 16:43:56 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:55 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[a86968ae-1a9b-4f50-45f7-22fcc1e6c5e8] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"a86968ae-1a9b-4f50-45f7-22fcc1e6c5e8"}
2023/07/30 16:43:56 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:56 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[e894fb6c-9c00-4452-46a2-b96a0256f7b4] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"e894fb6c-9c00-4452-46a2-b96a0256f7b4"}
2023/07/30 16:43:57 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:56 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[1bfacbd0-b00b-40ff-4b98-881c47655313] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"1bfacbd0-b00b-40ff-4b98-881c47655313"}
2023/07/30 16:43:58 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:57 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[d60db7ab-fca5-499f-6074-368e9d8c5db2] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"d60db7ab-fca5-499f-6074-368e9d8c5db2"}
2023/07/30 16:43:58 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[7b5435c3-f605-4a18-7c82-ecb8c6c86883] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"7b5435c3-f605-4a18-7c82-ecb8c6c86883"}
2023/07/30 16:43:58 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: too many errors 11/10: last error: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[7b5435c3-f605-4a18-7c82-ecb8c6c86883] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"7b5435c3-f605-4a18-7c82-ecb8c6c86883"}
2023/07/30 16:43:58 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to kick waiters: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[7b5435c3-f605-4a18-7c82-ecb8c6c86883] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"7b5435c3-f605-4a18-7c82-ecb8c6c86883"}
2023/07/30 16:43:58 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to _ensure cache vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[7b5435c3-f605-4a18-7c82-ecb8c6c86883] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"7b5435c3-f605-4a18-7c82-ecb8c6c86883"}
2023/07/30 16:43:58 ERROR : IO error: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[7b5435c3-f605-4a18-7c82-ecb8c6c86883] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"7b5435c3-f605-4a18-7c82-ecb8c6c86883"}
2023/07/30 16:43:59 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[4b68e087-3294-4096-51f2-b0db2c8b609b] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"4b68e087-3294-4096-51f2-b0db2c8b609b"}
2023/07/30 16:43:59 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: too many errors 12/10: last error: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[4b68e087-3294-4096-51f2-b0db2c8b609b] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"4b68e087-3294-4096-51f2-b0db2c8b609b"}
2023/07/30 16:43:59 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to kick waiters: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[4b68e087-3294-4096-51f2-b0db2c8b609b] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"4b68e087-3294-4096-51f2-b0db2c8b609b"}
2023/07/30 16:43:59 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to _ensure cache vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[4b68e087-3294-4096-51f2-b0db2c8b609b] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"4b68e087-3294-4096-51f2-b0db2c8b609b"}
2023/07/30 16:43:59 ERROR : IO error: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:58 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[4b68e087-3294-4096-51f2-b0db2c8b609b] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"4b68e087-3294-4096-51f2-b0db2c8b609b"}
2023/07/30 16:43:59 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:59 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[301a4690-0465-4707-71bb-cccd1eec38b4] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"301a4690-0465-4707-71bb-cccd1eec38b4"}
2023/07/30 16:44:00 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:43:59 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[9b587926-9e9a-4b57-7e16-96bcee25b5de] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"9b587926-9e9a-4b57-7e16-96bcee25b5de"}
2023/07/30 16:44:01 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:00 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[eca2003f-4e50-4188-7530-896bc8c67a13] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"eca2003f-4e50-4188-7530-896bc8c67a13"}
2023/07/30 16:44:02 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:01 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[69b8b791-c4a9-4f58-4a8a-1d89e0074761] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"69b8b791-c4a9-4f58-4a8a-1d89e0074761"}
2023/07/30 16:44:03 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:02 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[8efb0a76-eadb-4211-62cb-cc77de445495] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"8efb0a76-eadb-4211-62cb-cc77de445495"}
2023/07/30 16:44:03 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:03 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[9094176b-beea-41de-4818-b2a783d3f045] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"9094176b-beea-41de-4818-b2a783d3f045"}
2023/07/30 16:44:04 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:04 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[cf211a1b-90cf-4b34-537f-f1dcf648a0af] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"cf211a1b-90cf-4b34-537f-f1dcf648a0af"}
2023/07/30 16:44:05 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:04 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[20c23787-1c16-4d6d-752d-99db4a905444] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"20c23787-1c16-4d6d-752d-99db4a905444"}
2023/07/30 16:44:05 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:05 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[06ca40ad-2bdd-4b4e-798e-bf2ae7e52e47] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"06ca40ad-2bdd-4b4e-798e-bf2ae7e52e47"}
2023/07/30 16:44:06 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:05 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[36663332-ebfe-407c-50ca-085f6a13205e] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"36663332-ebfe-407c-50ca-085f6a13205e"}
2023/07/30 16:44:06 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:06 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[6fb297d4-48c4-485d-7032-93b98951b7e9] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"6fb297d4-48c4-485d-7032-93b98951b7e9"}
2023/07/30 16:44:07 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to download: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:06 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[dab7efb8-33e3-46ed-5e45-f6cdba11ba3f] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"dab7efb8-33e3-46ed-5e45-f6cdba11ba3f"}
2023/07/30 16:44:07 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: too many errors 11/10: last error: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:06 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[dab7efb8-33e3-46ed-5e45-f6cdba11ba3f] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"dab7efb8-33e3-46ed-5e45-f6cdba11ba3f"}
2023/07/30 16:44:07 ERROR : test2/Advanced_IP_Scanner_2.5.3850.exe: vfs cache: failed to kick waiters: vfs reader: failed to write to cache file: Invalid response status! Got 403, expected [200 206]; headers: map[Accept-Ranges:[bytes] Content-Length:[154] Content-Range:[bytes 0-20385119/20385120] Content-Type:[application/json; charset=utf-8] Date:[Sun, 30 Jul 2023 15:44:06 GMT] X-Content-Type-Options:[nosniff] X-Request-Id:[dab7efb8-33e3-46ed-5e45-f6cdba11ba3f] X-User-Id:[da5c42e0-d95f-4473-57c8-0e239fd3d9ae]], content: {"error":{"code":"FileBlocked","message":"File download restricted due to possible dangerous content"},"requestId":"dab7efb8-33e3-46ed-5e45-f6cdba11ba3f"}
2023/07/30 16:44:24 ERROR : D:\Koofr\Unencrypted: Unmounted rclone mount

Have a look here:

Onedrive thinks your exe has a virus! However if you pass this flag

  --onedrive-av-override                  Allows download of files the server thinks has a virus

Then you can tell it you don't care. You can put that in the config with av_override = true also.

Hopefully that will fix the problem.

Tx for the pointer, adding file-perms to the mount solved my problem.

1 Like

I would suggest to add --vfs-cache-max-size SIZE (where SIZE is e.g. 100G) to control maximum disk space your cache will use

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