OCIS "Failed to copy: 413 Request Entity Too Large" when trying to upload big file via WebDAV

Hello there,

I’m encountering a problem while migrating data following this guide to a newly installed OwnCloud Infinite Scale (OCIS) instance.

My setup:

  • OCIS version: 5.0.9 (stable)
  • Deployment: Docker container exposed on 127.0.0.1:4099

I’m trying to upload files stored on the same machine (VPS server) to the OCIS instance using WebDAV. The rclone configuration points directly to localhost, so no proxy is involved - the files are sent directly to the OCIS container.

The issue:
Small files upload successfully, but larger files (around 600MB or more) fail with the error:
Failed to copy: 413 Request Entity Too Large

rclone output:

user@myserver:/storage# rclone copy 1gb.bin ocis: -P
2024/12/02 20:53:48 ERROR : 1gb.bin: Failed to copy: 413 Request Entity Too Large
2024/12/02 20:53:48 ERROR : Attempt 1/3 failed with 1 errors and: 413 Request Entity Too Large
2024/12/02 20:54:13 ERROR : 1gb.bin: Failed to copy: 413 Request Entity Too Large
2024/12/02 20:54:13 ERROR : Attempt 2/3 failed with 1 errors and: 413 Request Entity Too Large
2024/12/02 20:54:38 ERROR : 1gb.bin: Failed to copy: 413 Request Entity Too Large
2024/12/02 20:54:38 ERROR : Attempt 3/3 failed with 1 errors and: 413 Request Entity Too Large
Transferred:        2.930 GiB / 2.930 GiB, 100%, 39.460 MiB/s, ETA 0s
Errors:                 1 (retrying may help)
Elapsed time:      1m11.9s
2024/12/02 20:54:38 Failed to copy: 413 Request Entity Too Large

rclone config:

[ocis]
type = webdav
url = http://localhost:4099/dav/spaces/xxx
vendor = other
user = xxx
pass = xxx

Logs:

ERR PUT request to data server failed | service=ocdav name=com.owncloud.web.ocdav traceid=7f3c95a3e55516a73556948faac1d603 request-id=0343fb24bba4/SSg8N1jMtU-043558 spaceid=xxx path=/1gb.bin

I tried both endpoints - /remote.php/dav/spaces/xxx and /dav/spaces/xxx - but they both return the same error. Also tried 127.0.0.1:4099.

To rule out an issue on rclone’s side, I also tested the upload using curl. The result was the same: small files upload successfully, but larger files fail with the same error.

Any insights or suggestions to resolve this issue would be greatly appreciated.

Thanks in advance!

I checked the code and it doesn’t seem this error is coming from OCIS. Maybe it comes from traefik (nginx, whatever is inbetween)? 1GB seems quite a large bodysize for a PUT request. You could try changing that setting in your traefik config.

We do have a feature request for rclone that allows using tus chunked uploads. This would also fix the issue: Add an ownCloud Infinite Scale vendor that enables tus chunked upload support by dragotin · Pull Request #8172 · rclone/rclone · GitHub Unfortunately we didn’t have time to finalize it yet.

1 Like