rclone 复制文件出现 404,davfs2 无法删除文件夹
qianbinbin opened this issue · 4 comments
qianbinbin commented
rclone 下载、删除都没问题,复制一个 10M 的文件 cp test /mnt/aliyun/
,出现 cp: failed to close '/mnt/aliyun/test': Input/output error
,rclone log 如下:
2022/02/10 11:54:19 DEBUG : /: Attr:
2022/02/10 11:54:19 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/02/10 11:54:19 DEBUG : /: Lookup: name="test"
2022/02/10 11:54:19 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2022/02/10 11:54:19 DEBUG : /: Lookup: name="test"
2022/02/10 11:54:19 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2022/02/10 11:54:19 DEBUG : /: Create: name="test"
2022/02/10 11:54:19 DEBUG : test: Open: flags=O_WRONLY|O_CREATE|O_EXCL|0x20000
2022/02/10 11:54:19 DEBUG : : Added virtual directory entry vAddFile: "test"
2022/02/10 11:54:19 DEBUG : test: >Open: fd=test (w), err=<nil>
2022/02/10 11:54:19 DEBUG : /: >Create: node=test, handle=&{test (w)}, err=<nil>
2022/02/10 11:54:19 DEBUG : test: Attr:
2022/02/10 11:54:19 DEBUG : test: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=0
2022/02/10 11:54:19 DEBUG : : Added virtual directory entry vAddFile: "test"
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : webdav root '': Target remote doesn't support streaming uploads, creating temporary local FS to spool file
2022/02/10 11:54:19 DEBUG : Creating backend with remote "/tmp/rclone-spool3825387201"
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=131072
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : Reset feature "copy"
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=262144
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=393216
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=524288
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=655360
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=786432
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=917504
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:19 DEBUG : &{test (w)}: Write: len=131072, offset=1048576
2022/02/10 11:54:19 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=1179648
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=1310720
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=1441792
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=1572864
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=1703936
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=1835008
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=1966080
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=2097152
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=2228224
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=2359296
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=2490368
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=2621440
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=2752512
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=2883584
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3014656
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3145728
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3276800
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3407872
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3538944
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3670016
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3801088
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=3932160
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4063232
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4194304
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4325376
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4456448
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4587520
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4718592
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4849664
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=4980736
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=5111808
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=5242880
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=5373952
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=5505024
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=5636096
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=5767168
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=5898240
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6029312
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6160384
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6291456
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6422528
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6553600
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6684672
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6815744
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=6946816
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7077888
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7208960
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7340032
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7471104
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7602176
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7733248
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7864320
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=7995392
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=8126464
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=8257536
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=8388608
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=8519680
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=8650752
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=8781824
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=8912896
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9043968
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9175040
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9306112
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9437184
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9568256
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9699328
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9830400
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=9961472
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=10092544
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=10223616
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Write: len=131072, offset=10354688
2022/02/10 11:54:20 DEBUG : &{test (w)}: >Write: written=131072, err=<nil>
2022/02/10 11:54:20 DEBUG : &{test (w)}: Flush:
2022/02/10 11:54:20 DEBUG : test: Sizes identical
2022/02/10 11:54:23 ERROR : test: Failed to copy: Not Found: 404 Not Found
2022/02/10 11:54:23 ERROR : test: WriteFileHandle.New Rcat failed: Not Found: 404 Not Found
2022/02/10 11:54:23 ERROR : test: WriteFileHandle.Flush error: Not Found: 404 Not Found
2022/02/10 11:54:23 DEBUG : &{test (w)}: >Flush: err=Not Found: 404 Not Found
2022/02/10 11:54:23 DEBUG : &{test (w)}: Release:
2022/02/10 11:54:23 DEBUG : test: WriteFileHandle.Release nothing to do
2022/02/10 11:54:23 DEBUG : &{test (w)}: >Release: err=<nil>
另外使用 macOS Finder 也有其他问题,这个有人提过了
qianbinbin commented
用 davfs2 试了一下,没有这个问题,所以这个可能是 rclone 的问题
但是 davfs2 不能用 rm -rf
删除文件夹,创建文件夹、上传下载文件都可以
LinkLeong commented
你是在linux通过命令操作的吗
qianbinbin commented
是的,ubuntu 20.04 arm64
qianbinbin commented
davfs2 挂载也无法用 df
识别大小:
$ df -h /mnt/aliyun/
Filesystem Size Used Avail Use% Mounted on
http://localhost:8085 2.3M 2.3M 0 100% /mnt/aliyun