What is the problem you are having with rclone?
When I try to rename or move a directory in a WebDAV remote I get error 409 Conflict.
I'm using the WebDAV server created by MEGAcmd, however if I connect directly to it using Nautilus I can rename and move directories without problem.
I tried both moving and renaming in the mounted remote, and directly with rclone move
.
What is your rclone version (output from rclone version
)
rclone v1.54.0
os/arch: linux/amd64
go version: go1.15.7
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Fedora 33, 64 bit
Which cloud storage system are you using? (eg Google Drive)
WebDAV (MEGAcmd)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone mount mega:/ /mnt/mega --vfs-cache-mode full -vv
rclone move mega:/dir1 mega:/dir1-new -vv
The rclone config contents with secrets removed.
[mega]
type = webdav
url = http://127.0.0.1:4443/XXXXXXXX/Cloud%20Drive
vendor = other
A log from the command with the -vv
flag
# rclone mount, trying to move
2021/02/16 21:11:44 DEBUG : dir1/: Attr:
2021/02/16 21:11:44 DEBUG : dir1/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/02/16 21:11:44 DEBUG : : Statfs:
2021/02/16 21:11:44 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2021/02/16 21:11:44 DEBUG : /: Attr:
2021/02/16 21:11:44 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/02/16 21:11:44 DEBUG : dir2/: Attr:
2021/02/16 21:11:44 DEBUG : dir2/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/02/16 21:11:44 DEBUG : dir1/: Lookup: name="dir2"
2021/02/16 21:11:44 DEBUG : dir1/: >Lookup: node=<nil>, err=no such file or directory
2021/02/16 21:11:44 DEBUG : dir1/: Lookup: name="dir2"
2021/02/16 21:11:44 DEBUG : dir1/: >Lookup: node=<nil>, err=no such file or directory
2021/02/16 21:11:44 DEBUG : /: Rename: oldName="dir2", newName="dir2", newDir=dir1/
2021/02/16 21:11:44 ERROR : dir2: Dir.Rename error: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:11:44 DEBUG : /: >Rename: err=DirMove MOVE call failed: 409 Conflict
# rclone mount, trying to rename
2021/02/16 21:21:47 DEBUG : : Statfs:
2021/02/16 21:21:47 DEBUG : : >Statfs: stat={Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2021/02/16 21:21:47 DEBUG : /: Lookup: name="dir1-new"
2021/02/16 21:21:47 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/02/16 21:21:47 DEBUG : /: Lookup: name="dir1"
2021/02/16 21:21:47 DEBUG : /: >Lookup: node=dir1/, err=<nil>
2021/02/16 21:21:47 DEBUG : dir1/: Attr:
2021/02/16 21:21:47 DEBUG : dir1/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/02/16 21:21:47 DEBUG : /: Lookup: name="dir1-new"
2021/02/16 21:21:47 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/02/16 21:21:47 DEBUG : /: Rename: oldName="dir1", newName="dir1-new", newDir=/
2021/02/16 21:21:47 ERROR : dir1: Dir.Rename error: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:21:47 DEBUG : /: >Rename: err=DirMove MOVE call failed: 409 Conflict
# rclone move mega:/dir1 mega:/dir1-new -vv
2021/02/16 21:24:28 DEBUG : Using config file from "xxx/rclone.conf"
2021/02/16 21:24:28 DEBUG : Creating backend with remote "mega:/dir1"
2021/02/16 21:24:28 DEBUG : fs cache: renaming cache item "mega:/dir1" to be canonical "mega:dir1"
2021/02/16 21:24:28 DEBUG : Creating backend with remote "mega:/dir1-new"
2021/02/16 21:24:29 DEBUG : fs cache: renaming cache item "mega:/dir1-new" to be canonical "mega:dir1-new"
2021/02/16 21:24:29 DEBUG : webdav root 'dir1-new': Using server-side directory move
2021/02/16 21:24:29 ERROR : webdav root 'dir1-new': Server side directory move failed: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:24:29 ERROR : Attempt 1/3 failed with 1 errors and: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:24:29 DEBUG : webdav root 'dir1-new': Using server-side directory move
2021/02/16 21:24:29 ERROR : webdav root 'dir1-new': Server side directory move failed: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:24:29 ERROR : Attempt 2/3 failed with 1 errors and: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:24:29 DEBUG : webdav root 'dir1-new': Using server-side directory move
2021/02/16 21:24:29 ERROR : webdav root 'dir1-new': Server side directory move failed: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:24:29 ERROR : Attempt 3/3 failed with 1 errors and: DirMove MOVE call failed: 409 Conflict
2021/02/16 21:24:29 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 1.3s