Nextcloud chunked upload deleting wrong path

What is the problem you are having with rclone?

When using Nextcloud chunked upload, if uploading a chunk fails, Rclone issues a DELETE request to the wrong path. I think the error is in line 1499 of https://github.com/rclone/rclone/blob/master/backend/webdav/webdav.go
Example:
Wrong request:
DELETE /remote.php/dav/files/jaime/ISO/rclone-chunked-upload-951b44f46dd1eb6d903539b1aaa27fbb/000000209715200-000000314572799 HTTP/1.1
Correct request:
DELETE /remote.php/dav/uploads/jaime/rclone-chunked-upload-951b44f46dd1eb6d903539b1aaa27fbb/000000209715200-000000314572799 HTTP/1.1

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.0

  • os/version: almalinux 8.8 (64 bit)
  • os/kernel: 4.18.0-477.10.1.el8_8.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

WebDAV

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone -vvv --config quotaless.conf --no-check-certificate=true copy -P --low-level-retries 1 --size-only --dump=headers AlmaLinux-9.2-x86_64-boot.iso nextcloud:/ISO

The rclone config contents with secrets removed.

[nextcloud]
type = webdav
url = https://my.domain.tld/remote.php/dav/files/jaime/
vendor = nextcloud
nextcloud_chunk_size = 100Mi
user = jaime
pass = ********

A log from the command with the -vv flag


2023-09-28 11:09:14 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023-09-28 11:09:14 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023-09-28 11:09:14 DEBUG : HTTP REQUEST (req 0xc000699000)
2023-09-28 11:09:14 DEBUG : PUT /remote.php/dav/uploads/jaime/rclone-chunked-upload-951b44f46dd1eb6d903539b1aaa27fbb/000000209715200-000000314572799 HTTP/1.1
Host: my.domain.tld
User-Agent: rclone/v1.64.0
Content-Length: 104857600
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Referer: https://my.domain.tld/remote.php/dav/files/jaime/
Accept-Encoding: gzip
2023-09-28 11:09:14 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023-09-28 11:09:20 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023-09-28 11:09:20 DEBUG : HTTP RESPONSE (req 0xc000699000)
2023-09-28 11:09:20 DEBUG : HTTP/2.0 422 Unprocessable Entity
Content-Length: 20
Content-Type: text/plain; charset=utf-8
Date: Thu, 28 Sep 2023 14:09:20 GMT
Server: nginx/1.23.3
2023-09-28 11:09:20 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023-09-28 11:09:21 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023-09-28 11:09:21 DEBUG : HTTP REQUEST (req 0xc000699200)
2023-09-28 11:09:21 DEBUG : DELETE /remote.php/dav/files/jaime/ISO/rclone-chunked-upload-951b44f46dd1eb6d903539b1aaa27fbb/000000209715200-000000314572799 HTTP/1.1
Host: my.domain.tld
User-Agent: rclone/v1.64.0
Authorization: XXXX
Referer: https://my.domain.tld/remote.php/dav/files/jaime/
Accept-Encoding: gzip

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.