Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when uploading files with rclone via webdav #119

Closed
Ram042 opened this issue Nov 23, 2024 · 1 comment
Closed

Error when uploading files with rclone via webdav #119

Ram042 opened this issue Nov 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Ram042
Copy link

Ram042 commented Nov 23, 2024

Describe the bug
Rclone fails to write files via webdav with error
2024/11/23 22:44:31 ERROR : Attempt 1/3 failed with 1 errors and: read metadata failed: <pre>[Errno 20] Not a directory: b'/test.txt'

Server log

19:43:47.436 10.88.0.1 52024       PFIND /test.txt @*
19:43:47.438 10.88.0.1 52024       httpcli.py:657 <run>: return self.handle_propfind() and self.keepalive
httpcli.py:1428 <handle_propfind>: _, vfs_ls, vfs_virt = vn.ls(
authsrv.py:605 <_ls>: real = list(statdir(self.log, scandir, lstat, abspath, throw))
util.py:2759 <statdir>: with os.scandir(btop) as dh:
[NotADirectoryError] [Errno 20] Not a directory: b'/tmp/test.txt', test.txt

To Reproduce

  1. Start server with docker sudo docker run --rm -p 3923:3923 docker.io/copyparty/ac:latest -v /tmp::A
  2. Copy file to server rclone copy test.txt test:/ --log-level INFO

Expected behavior
File is written successfully without retrying

Server details
Latest ac container from docker hub

copyparty v1.16.1 "COPYparty" (2024-11-15)
  CPython v3.12.7 on Linux64 6.6.31 [GCC 13.2.1 20240309]
   sqlite 3.45.3*1 | jinja 3.1.4 | pyftpd 1.5.10 | tftp 0.4.0

Client details

rclone --version
rclone v1.60.1-DEV
- os/version: raspbian trixie/sid (64 bit)
- os/kernel: 6.6.31+rpt-rpi-2712 (aarch64)
- os/type: linux
- os/arch: arm64
- go/version: go1.23.2
- go/linking: dynamic
- go/tags: none

Additional context
rclone.conf

[test]
type = webdav
url = http://localhost:3923/
vendor = owncloud

Requests

2024/11/23 22:49:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/11/23 22:49:51 DEBUG : HTTP REQUEST (req 0x40000d8a00)
2024/11/23 22:49:51 DEBUG : PROPFIND /test.txt HTTP/1.1
Host: localhost:3923
User-Agent: rclone/
Depth: 1
Referer: http://localhost:3923/
Accept-Encoding: gzip

2024/11/23 22:49:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/11/23 22:49:51 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/11/23 22:49:51 DEBUG : HTTP RESPONSE (req 0x40000d8a00)
2024/11/23 22:49:51 DEBUG : HTTP/1.1 500 Internal Server Error
Connection: close
Content-Length: 123
Cache-Control: no-store, max-age=0
Content-Type: text/html; charset=utf-8
Date: Sat, 23 Nov 2024 19:49:51 GMT
Vary: Origin, PW, Cookie

<pre>[Errno 20] Not a directory: b'/test.txt'
URL: test.txt

NOTE: filepaths sanitized; see serverlog for correct values
2024/11/23 22:49:51 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
@Ram042 Ram042 added the bug Something isn't working label Nov 23, 2024
@9001
Copy link
Owner

9001 commented Nov 23, 2024

yikes, that's a regression added in v1.16.0. Thanks for the heads-up, i'll add some tests and get this fixed right away!

@9001 9001 closed this as completed in 7dfbfc7 Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants