What is the problem you are having with rclone?
When serving a local directory through webdav
and creating a directory inside the served one, using a webdav client, rclone server outputs
2021/01/27 15:16:33 ERROR : dirname/: Can only open directories read only
However, the directory gets created nonetheless and is writeable using the webdav client.
What is your rclone version (output from rclone version
)
Happens iwth different versions e.g. cygwin version:
rclone v1.50.2
- os/arch: windows/amd64
- go version: go1.13.4
as well as native windows version (installed through scoop):
rclone v1.53.4
- os/arch: windows/amd64
- go version: go1.15.6
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 7, 64 bit
Which cloud storage system are you using? (eg Google Drive)
local file remote
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
cd /d/temp/tmp
rclone serve webdav .
then in separate command window after attaching the webdav resource as drive u:
md u:\dirname
dir u:\
The rclone config contents with secrets removed.
no config
A log from the command with the -vv
flag
$ rclone serve webdav . -vv
2021/01/27 15:38:12 DEBUG : rclone: Version "v1.50.2" starting with parameters ["D:\\downloads\\cygwin\\usr\\local\\bin\\rclone.exe" "serve" "webdav" "." "-vv"]
2021/01/27 15:38:12 NOTICE: Config file "D:\\downloads\\cygwin\\home\\user.name\\.config\\rclone\\rclone.conf" not found - using defaults
2021/01/27 15:38:12 INFO : Local file system at //?/D:/temp/tmp: poll-interval is not supported by this remote
2021/01/27 15:38:12 DEBUG : Adding path "vfs/forget" to remote control registry
2021/01/27 15:38:12 DEBUG : Adding path "vfs/refresh" to remote control registry
2021/01/27 15:38:12 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2021/01/27 15:38:12 NOTICE: Local file system at //?/D:/temp/tmp: WebDav Server started on http://127.0.0.1:8080/
2021/01/27 15:38:26 INFO : /dirname: PROPFIND from 127.0.0.1:51122
2021/01/27 15:38:26 DEBUG : /: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:26 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/01/27 15:38:26 DEBUG : /: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:26 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/01/27 15:38:26 INFO : /: PROPFIND from 127.0.0.1:51122
2021/01/27 15:38:26 INFO : /dirname: MKCOL from 127.0.0.1:51122
2021/01/27 15:38:26 DEBUG : /dirname: OpenFile: flags=O_RDWR, perm=----------
2021/01/27 15:38:26 ERROR : dirname/: Can only open directories read only
2021/01/27 15:38:26 DEBUG : /dirname: >OpenFile: fd=<nil>, err=permission denied
2021/01/27 15:38:26 INFO : /dirname: PROPPATCH from 127.0.0.1:51122
2021/01/27 15:38:59 DEBUG : /: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:59 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/01/27 15:38:59 DEBUG : /: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:59 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/01/27 15:38:59 INFO : /: PROPFIND from 127.0.0.1:51122
2021/01/27 15:38:59 DEBUG : /: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:59 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/01/27 15:38:59 DEBUG : /: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:59 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/01/27 15:38:59 DEBUG : /: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:59 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/01/27 15:38:59 DEBUG : /dirname: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:59 DEBUG : /dirname: >OpenFile: fd=dirname/ (r), err=<nil>
2021/01/27 15:38:59 DEBUG : /dirname: OpenFile: flags=O_RDONLY, perm=----------
2021/01/27 15:38:59 DEBUG : /dirname: >OpenFile: fd=dirname/ (r), err=<nil>
2021/01/27 15:38:59 INFO : /: PROPFIND from 127.0.0.1:51122