Rclone 由于i/o设备错误无法运行此项请求

你好!
我使用软件版本是:rclone-v1.66.0-windows-amd64,
我的系统是:Windows 11 专业工作站版,23H2,22631.3296.
配置如下:
rclone.conf

[webdav]
type = webdav
url = https://xxxxx.com:9900
vendor = other
user = andy
pass = dfagagefefefefefefefefefefefefefefeffghhettt、

连接脚本如下:
mount-Webdav.vbs

dim objShell
set objShell=wscript.createObject("WScript.Shell")
iReturnCode=objShell.Run(".\rclone.exe mount webdav: o: --cache-dir %SystemRoot%\TEMP --allow-other --vfs-cache-mode writes --vfs-cache-max-age 60s --allow-non-empty",0,TRUE)

运行mount-Webdav.vbs后,出现O盘,双击鼠标后提示:Rclone 由于i/o设备错误无法运行此项请求。

请帮帮我!十分感谢!

If you have not noticed most people here communicate in english. It is not so difficult nowadays to use online translators if needed.

As it is you who seeks help you should make some effort and post in english. Also please answer all questions from the original template.

The most likely reason is that you run your vbs script as administrator. In such case it is only accessible by administrator.

--allow-other flag is not supported on Windows.

My suggestion is to run it as your normal user. Also simplify it a bit:

dim objShell
Set objShell=wscript.createObject("WScript.Shell")
iReturnCode=objShell.Run(".\rclone.exe mount webdav: O: --vfs-cache-mode write",0,TRUE)

instead of this .\rclone.exe provide full path to rclone

Have you tried what I told you earlier? Run your mount as non admin.

And why suddenly you post rclone copy? Let's fix one thing at the time.

  • please post the exact error.

  • for testing, do not use vbs, just run the command on the command line, ok?

  • need to post a full debug log,
    run the command with -vv and post the debug full output.

  • have you tested the remote, using a simple command, does this command work?
    rclone lsd webdav: -vv

running rclone mount as administrator or even system user should not cause i/o device error
never seen that happen.

1 Like

thank you for your reply!

I don't run the vbs script as administrator

run
rclone lsd webdav: -vv

D:\1\rclone-v1.66.0-windows-amd64\rclone-v1.66.0-windows-amd64>rclone lsd webdav: -vv
2024/03/21 10:06:18 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "lsd" "webdav:" "-vv"]
2024/03/21 10:06:18 DEBUG : Creating backend with remote "webdav:"
2024/03/21 10:06:18 DEBUG : Using config file from "D:\1\rclone-v1.66.0-windows-amd64\rclone-v1.66.0-windows-amd64\rclone.conf"
2024/03/21 10:06:18 DEBUG : found headers:
2024/03/21 10:06:18 ERROR : : error listing: couldn't list files: Propfind "https://xxxx-com:1555/": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:
2024/03/21 10:06:18 DEBUG : 2 go routines active
2024/03/21 10:06:18 Failed to lsd with 2 errors: last error was: couldn't list files: Propfind "https://xxxx-com:1555/": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:

I use cmd to run
.\rclone.exe mount webdav: o: --cache-dir D:\Temp --allow-other --vfs-cache-mode writes --allow-non-empty

D:\1\rclone-v1.66.0-windows-amd64\rclone-v1.66.0-windows-amd64>.\rclone.exe mount webdav: o: --cache-dir D:\Temp --allow-other --vfs-cache-mode writes --allow-non-empty
2024/03/21 10:09:30 NOTICE: --allow-non-empty flag does nothing on Windows
2024/03/21 10:09:30 NOTICE: --allow-other flag does nothing on Windows
2024/03/21 10:09:30 ERROR : webdav root '': Statfs failed: Propfind "https://xxxx-com:1555/": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:
The service rclone has been started.

Your webdav remote is not working. Error message indicates that it is using invalid certificate.

So make sure that this works:

rclone lsd webdav: -vv

before you start trying to mount anything.

You have to fix it on your NAS.

The problem has been solved. It is indeed that the nas tls certificate has expired. Thank you very much. thank you for your help!

1 Like

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