rclone: with serve webdav file cannot return attr info immediately after upload.
What is the problem you are having with rclone?
with serve webdav file cannot return attr info immediately after upload. Log show Expecting fs.Object or fs.Directory, got <nil> and webdav does not find file. That cause problems with front end (nextcloud) what try check uploaded file.
What is your rclone version (output from rclone version)
rclone v1.59.1
- os/version: debian 11.4 (64 bit)
- os/kernel: 5.10.0-15-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.5
- go/linking: static
- go/tags: none
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
debian 64bit
Which cloud storage system are you using? (e.g. Google Drive)
Dropbox
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
rclone serve webdav ramabox:ncdav --user XX --pass XX --addr :8080 --vfs-cache-mode full --cache-dir /data/davcache --vfs-fast-fingerprint -vv
A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)
Cutted log
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part(0xc000e8e300): _writeAt: size=2307, off=45940736
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part(0xc000e8e300): >_writeAt: n=2307, err=<nil>
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part(0xc000e8e300): close:
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part: vfs cache: setting modification time to 2022-09-09 21:11:46.823244893 +0300 EEST m=+176.386469337
2022/09/09 21:11:46 INFO : vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part: vfs cache: queuing for upload in 5s
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part(0xc000e8e300): >close: err=<nil>
2022/09/09 21:11:46 INFO : /vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part: PUT from [::1]:57206
2022/09/09 21:11:46 INFO : vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part: vfs cache: renamed in cache to "vectorama/VECTORAMA KUVAKOLLAASI.mp4"
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4: Updating file with <nil> 0xc000c8a000
2022/09/09 21:11:46 DEBUG : vectorama: Added virtual directory entry vDel: "VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part"
2022/09/09 21:11:46 DEBUG : vectorama: Added virtual directory entry vAddFile: "VECTORAMA KUVAKOLLAASI.mp4"
2022/09/09 21:11:46 INFO : /vectorama/VECTORAMA KUVAKOLLAASI.mp4.ocTransferId805413638.part: MOVE from [::1]:57204
2022/09/09 21:11:46 DEBUG : /vectorama/VECTORAMA KUVAKOLLAASI.mp4: OpenFile: flags=O_RDONLY, perm=----------
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4: Open: flags=O_RDONLY
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4: newRWFileHandle:
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4: >newRWFileHandle: err=<nil>
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4: >Open: fd=vectorama/VECTORAMA KUVAKOLLAASI.mp4 (rw), err=<nil>
2022/09/09 21:11:46 DEBUG : /vectorama/VECTORAMA KUVAKOLLAASI.mp4: >OpenFile: fd=vectorama/VECTORAMA KUVAKOLLAASI.mp4 (rw), err=<nil>
2022/09/09 21:11:46 ERROR : {vectorama/VECTORAMA KUVAKOLLAASI.mp4}: Expecting fs.Object or fs.Directory, got <nil>
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4(0xc000c40a00): close:
2022/09/09 21:11:46 DEBUG : vectorama/VECTORAMA KUVAKOLLAASI.mp4(0xc000c40a00): >close: err=<nil>
2022/09/09 21:11:46 INFO : /vectorama/VECTORAMA KUVAKOLLAASI.mp4: PROPFIND from [::1]:57204
2022/09/09 21:11:46 DEBUG : /vectorama/VECTORAMA KUVAKOLLAASI.mp4: OpenFile: flags=O_RDONLY, perm=----------
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (15 by maintainers)
Commits related to this issue
- serve webdav: fix incorrect Content-Type immediately after upload Before this change, if the Content-Type for an object was read immediately after upload (before the object had been uploaded to the b... — committed to rclone/rclone by ncw 2 years ago
- http: CORS should not be send if not set (#6433) — committed to yuudi/rclone by yuudi a year ago
- http: CORS should not be send if not set (#6433) — committed to rclone/rclone by yuudi a year ago
- http: fix webdav OPTIONS response (#6433) — committed to yuudi/rclone by yuudi a year ago
- http: fix webdav OPTIONS response (#6433) — committed to rclone/rclone by yuudi a year ago
- http: CORS should not be send if not set (#6433) — committed to leekiernan/rclone by yuudi a year ago
- http: fix webdav OPTIONS response (#6433) — committed to leekiernan/rclone by yuudi a year ago
Sorry for this, I’ll try to figure it out ASAP