Need Help: Mount WebDAV share as drive on Windows

What is the problem you are having with rclone?

I am a first time user and struggle with the basic setup.
Searching the internet and this forum so far didn't provive me solutions.

I have a Nextcloud on home server with self-signed certificate.
I would like to mount the file share of Nextcloud as a drive in Windows.

rclone configuration file please see below.
Winfsp is installed.

When I call rclone mount nextcloud N:, drive N: will be mounted but empty.

What am I doing wrong?

What do I neet to change to get it working?

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)

MS WIndows 10, latest update level

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

Nextcloud 21

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

rclone mount nextcloud N:

The rclone config contents with secrets removed.

[nexcloud]
type = webdav
url = https://server.at.home/nextcloud/remote.php/webdav
vendor = nextcloud
user = ***
pass = ***

A log from the command with the -vv flag

>rclone -vv ls nextcloud
2021/06/03 11:21:12 DEBUG : Using config file from "C:\\***\\.config\\rclone\\rclone.conf"
2021/06/03 11:21:13 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "-vv" "ls" "nextcloud"]
2021/06/03 11:21:13 DEBUG : Creating backend with remote "nextcloud"
2021/06/03 11:21:13 DEBUG : fs cache: renaming cache item "nextcloud" to be canonical "//?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud"
2021/06/03 11:21:13 ERROR : : error listing: directory not found
2021/06/03 11:21:13 DEBUG : 2 go routines active
2021/06/03 11:21:13 Failed to ls with 2 errors: last error was: directory not found
>rclone -vv mount nextcloud n:
2021/06/03 11:23:15 DEBUG : Using config file from "C:\\***\\.config\\rclone\\rclone.conf"
2021/06/03 11:23:16 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "-vv" "mount" "nextcloud" "n:"]
2021/06/03 11:23:16 DEBUG : Creating backend with remote "nextcloud"
2021/06/03 11:23:16 DEBUG : fs cache: renaming cache item "nextcloud" to be canonical "//?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud"
2021/06/03 11:23:16 INFO  : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: poll-interval is not supported by this remote
2021/06/03 11:23:16 DEBUG : Network mode mounting is disabled
2021/06/03 11:23:16 DEBUG : Mounting on "n:" ("local   ? C  ***")
2021/06/03 11:23:16 DEBUG : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=local   ? C  ***"]
2021/06/03 11:23:16 DEBUG : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: Init:
2021/06/03 11:23:16 DEBUG : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: >Init:
2021/06/03 11:23:16 DEBUG : /: Statfs:
2021/06/03 11:23:16 ERROR : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: Statfs failed: failed to read disk usage: The system cannot find the path specified.
2021/06/03 11:23:16 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:8796093022207 Bfree:8796093022207 Bavail:8796093022207 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/06/03 11:23:16 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/06/03 11:23:16 DEBUG : /: >Getattr: errc=0
[...]
>rclone -vv mount nextcloud n: --vfs-cache-mode writes
2021/06/03 11:27:15 DEBUG : Using config file from "C:\\***\\.config\\rclone\\rclone.conf"
2021/06/03 11:27:15 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "-vv" "mount" "nextcloud" "n:" "--vfs-cache-mode" "writes"]
2021/06/03 11:27:15 DEBUG : Creating backend with remote "nextcloud"
2021/06/03 11:27:15 DEBUG : fs cache: renaming cache item "nextcloud" to be canonical "//?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud"
2021/06/03 11:27:15 INFO  : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: poll-interval is not supported by this remote
2021/06/03 11:27:15 DEBUG : vfs cache: root is "\\\\?\\C:\\***\\rclone\\vfs\\local\\C\\***\\rclone-v1.55.1-windows-amd64\\nextcloud"
2021/06/03 11:27:15 DEBUG : vfs cache: metadata root is "\\\\?\\C:\\***\\rclone\\vfs\\local\\C\\***\\rclone-v1.55.1-windows-amd64\\nextcloud"
2021/06/03 11:27:15 DEBUG : Creating backend with remote "\\\\?\\C:\\***\\rclone\\vfs\\local\\C\\***\\rclone-v1.55.1-windows-amd64\\nextcloud"
2021/06/03 11:27:15 DEBUG : fs cache: renaming cache item "\\\\?\\C:\\***\\rclone\\vfs\\local\\C\\***\\rclone-v1.55.1-windows-amd64\\nextcloud" to be canonical "//?/C:/***/rclone/vfs/local/C/*/rclone-v1.55.1-windows-amd64/nextcloud"
2021/06/03 11:27:15 DEBUG : fs cache: switching user supplied name "\\\\?\\C:\\***\\rclone\\vfs\\local\\C\\***\\rclone-v1.55.1-windows-amd64\\nextcloud" for canonical name "//?/C:/***/rclone/vfs/local/C/***/rclone-v1.55.1-windows-amd64/nextcloud"
2021/06/03 11:27:15 DEBUG : Network mode mounting is disabled
2021/06/03 11:27:15 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2021/06/03 11:27:15 DEBUG : Mounting on "n:" ("local   ? C  ***")
2021/06/03 11:27:15 DEBUG : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=local   ? C  ***"]
2021/06/03 11:27:15 DEBUG : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: Init:
2021/06/03 11:27:15 DEBUG : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: >Init:
2021/06/03 11:27:15 DEBUG : /: Statfs:
2021/06/03 11:27:15 ERROR : Local file system at //?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud: Statfs failed: failed to read disk usage: The system cannot find the path specified.
2021/06/03 11:27:15 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:8796093022207 Bfree:8796093022207 Bavail:8796093022207 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/06/03 11:27:15 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/06/03 11:27:15 DEBUG : /: >Getattr: errc=0
2021/06/03 11:27:15 DEBUG : /: Readlink:
2021/06/03 11:27:15 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2021/06/03 11:27:15 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/06/03 11:27:15 DEBUG : /: >Getattr: errc=0
[...]

hello and welcome to the forum,

a remote needs a colon character in it.
rclone -vv mount nextcloud: n:

without the colon, rclone thinks that is a local folder.
this can be seen in the debug log
renaming cache item "nextcloud" to be canonical "//?/C:/***/rclone-v1.55.1-windows-amd64/nextcloud"

that is documented at https://rclone.org/docs/#syntax-of-remote-paths

Thank you very much for the response.
I tried the remote location with a colon :, too.

This gives the following errors:

>rclone -vv mount nextcloud: n:
2021/06/03 17:19:41 DEBUG : Using config file from "C:\\***\\rclone\\rclone.conf"
2021/06/03 17:19:41 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "-vv" "mount" "nextcloud:" "n:"]
2021/06/03 17:19:41 DEBUG : Creating backend with remote "nextcloud:"
2021/06/03 17:19:41 Failed to create file system for "nextcloud:": didn't find section in config file

Same config as before, of course.

You have a typo in your config.

OH NO!!!!
Thank you very much!!!

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