Copy files to owncloud leads in checksum mismatch

Hello guys,

I am trying to copy a file to my owncloud server via the CLI.
I get the error that the checksums mismatch, here the error from my owncloud.log:

Exception: HTTP/1.1 400 The computed checksum does not match the one received from the client.
Exception: HTTP/1.1 400 expected filesize 1133726783 got 0

The output of the copy command suggests that the file would be too big, but that isn't the case. I adjusted the accepted file sizes a long time ago to 50 GB, and the file I am trying to sync is ~1.2GB. All my other clients work without a problem, even android apps with webDAV support like CxExplorer work flawlessly, so I doubt that my owncloud server is the problem here.

What is the problem you are having with rclone?

File doesn't sync

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

rclone v1.50.2

  • os/arch: linux/amd64
  • go version: go1.13.8

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

owncloud

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

rclone copy

The rclone config contents with secrets removed.

[owncloud]
type = webdav
url = --myurl--
vendor = owncloud
user = --my user--
pass = --my pass--

A log from the command with the -vv flag

~/.config/rclone$ rclone copy ~/backup owncloud:Backup -P --ignore-checksum -vv --size-only
2023-04-11 12:33:41 INFO  : webdav root 'Backup': Waiting for checks to finish
2023-04-11 12:33:41 INFO  : webdav root 'Backup': Waiting for transfers to finish
2023-04-11 12:37:23 ERROR : db.sql: Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --address-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-11 12:37:23 ERROR : Attempt 1/3 failed with 3 errors and: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --address-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-11 12:37:23 INFO  : webdav root 'Backup': Waiting for checks to finish
2023-04-11 12:37:23 INFO  : webdav root 'Backup': Waiting for transfers to finish
2023-04-11 12:38:04 ERROR : db.sql: Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --address-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-11 12:38:04 ERROR : Attempt 2/3 failed with 3 errors and: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --address-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-11 12:38:04 INFO  : webdav root 'Backup': Waiting for checks to finish
2023-04-11 12:38:04 INFO  : webdav root 'Backup': Waiting for transfers to finish
2023-04-11 12:38:33 ERROR : db.sql: Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --address-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-11 12:38:33 ERROR : Attempt 3/3 failed with 3 errors and: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --address-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
Transferred:        3.168G / 3.168 GBytes, 100%, 11.126 MBytes/s, ETA 0s
Errors:                 3 (retrying may help)
Checks:                 0 / 0, -
Transferred:            0 / 0, -
Elapsed time:     4m51.5s
2023/04/11 12:38:33 Failed to copy with 3 errors: last error was: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --address-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large

I am grateful for every help you guys can give me :slight_smile:

Please upgrade to latest rclone (v1.62.2) - this contains code which can upload large files chunked to nextcloud which should work a lot better.

I am on debian and I ran

apt-get update
apt-get upgrade

and it did nothing. So there is no version on debian ritght? How do I install the latest version then?

Don't use a package manager for rclone.

Did that, thanks for the answer. I am now on v1.62.2
The result sadly did not change

Can you share a log with -vv of the new version please?

Sure no problem

rclone copy ~/backup owncloud:Backup -vv -P
2023/04/12 12:29:40 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "copy" "~/backup" "owncloud:Backup" "-vv" "-P"]
2023/04/12 12:29:40 DEBUG : Creating backend with remote "~/backup"
2023/04/12 12:29:40 DEBUG : Using config file from "~/.config/rclone/rclone.conf"
2023/04/12 12:29:40 DEBUG : Creating backend with remote "owncloud:Backup"
2023/04/12 12:29:40 DEBUG : found headers:
2023-04-12 12:29:41 DEBUG : env.production: Size and modification time the same (differ by -903.000518ms, within tolerance 1s)
2023-04-12 12:29:41 DEBUG : env.production: Unchanged skipping
2023-04-12 12:29:41 DEBUG : webdav root 'Backup': Waiting for checks to finish
2023-04-12 12:29:41 DEBUG : webdav root 'Backup': Waiting for transfers to finish
2023-04-12 12:29:41 DEBUG : redis.rdb: md5 = f4e33c14cfe113702420b32d299875c3 OK
2023-04-12 12:29:41 INFO  : redis.rdb: Copied (new)
2023-04-12 12:30:10 ERROR : db.sql: Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --url-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-12 12:30:10 ERROR : Attempt 1/3 failed with 1 errors and: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at --url-- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large

they are pretty much the same, with the exception that I now know that smaller files work no problem... THough the other 2 files in this case are <10MB

You are using owncloud and the new chunking code is fit for nextcloud - sorry for the confusion.

I think you'll have to solve this issue. Something is not accepting the size of file you are attempting to upload.

Here is some info I found

I don't know if that is helpful.

Try uploading single files until you can find the largest file it accepts. You'll then know what number you are looking for

Yes this is what the error says, but not actually what causes it. I investigated that first, because that would've been something, that I can take care of myself, but the problem really is the checksum thing. It is actually the same error message with these two different messages inside...

Try uploading single files until you can find the largest file it accepts. You'll then know what number you are looking for

I'll give that a try

I conjeture the first error 413 is the cause of the second error (checksum mis-match).

When rclone uploads a file to owncloud it puts a checksum in the header. Here owncloud appears to read a 0 length file and it isn't suprising that the checksum is wrong because of that.

Is there a proxy in front of the owncloud maybe?

Yes there is indeed... I have an image of NginxProxyManager infront of my apache server. I've thought that it can't be the web server that is the problem, because the file completly transfers and only errors after. Nginx propably hands it over after the file has been fully transfered...

I have looked in the NginxProxyManager error logs and found this:

client intended to send too large body: 2864366040 bytes

The odd thing is, that I already considered it and set this variable, but seemingly to the wrong value:

server {
    ...
    client_max_body_size 8G;
    ...
}

I have now set it to

server {
    ...
    client_max_body_size 10000M;
    ...
}

And that seems to get rid of the error in the nginx logs. Instead I now have a lot of this:

[warn] 293#293: *136 a client request body is buffered to a temporary file /tmp/nginx/body/9/02/0000000029

And sometimes I get this:

[crit] 293#293: *136 pread() "/tmp/nginx/body/8/02/0000000028" failed (9: Bad file descriptor) while sending request to upstream

The output of rclone looks like this now:

rclone copy ~/backup owncloud:Backup -P -vv --size-only --ignore-checksum
2023/04/12 22:58:03 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "copy" "~/backup" "owncloud:Backup" "-P" "-vv" "--size-only" "--ignore-checksum"]
2023/04/12 22:58:03 DEBUG : Creating backend with remote "~/backup"
2023/04/12 22:58:03 DEBUG : Using config file from "~/.config/rclone/rclone.conf"
2023/04/12 22:58:03 DEBUG : Creating backend with remote "owncloud:Backup"
2023/04/12 22:58:03 DEBUG : found headers:
2023-04-12 22:58:03 DEBUG : webdav root 'Backup': Waiting for checks to finish
2023-04-12 22:58:03 DEBUG : env.production: Sizes identical
2023-04-12 22:58:03 DEBUG : env.production: Unchanged skipping
2023-04-12 22:58:03 DEBUG : redis.rdb: Sizes identical
2023-04-12 22:58:03 DEBUG : redis.rdb: Unchanged skipping
2023-04-12 22:58:03 DEBUG : webdav root 'Backup': Waiting for transfers to finish
2023-04-12 22:58:28 ERROR : db.sql: Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at ---url--- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-12 22:58:28 ERROR : Attempt 1/3 failed with 1 errors and: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at ---url--- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-12 22:58:29 DEBUG : env.production: Sizes identical
2023-04-12 22:58:29 DEBUG : redis.rdb: Sizes identical
2023-04-12 22:58:29 DEBUG : redis.rdb: Unchanged skipping
2023-04-12 22:58:29 DEBUG : env.production: Unchanged skipping
2023-04-12 22:58:29 DEBUG : webdav root 'Backup': Waiting for checks to finish
2023-04-12 22:58:29 DEBUG : webdav root 'Backup': Waiting for transfers to finish
2023-04-12 22:58:53 DEBUG : pacer: low level retry 1/1 (error error when trying to read error from body: stream error: stream ID 15; INTERNAL_ERROR; received from peer)
2023-04-12 22:58:53 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2023-04-12 22:58:54 DEBUG : pacer: Reducing sleep to 15ms
2023-04-12 22:58:54 DEBUG : db.sql: Received error: error when trying to read error from body: stream error: stream ID 15; INTERNAL_ERROR; received from peer - low level retry 1/10
2023-04-12 22:58:54 DEBUG : pacer: Reducing sleep to 11.25ms
2023-04-12 22:59:09 DEBUG : pacer: Reducing sleep to 10ms
2023-04-12 22:59:10 ERROR : db.sql: Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at ---url--- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-12 22:59:10 ERROR : Attempt 2/3 failed with 1 errors and: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at ---url--- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-12 22:59:10 DEBUG : env.production: Sizes identical
2023-04-12 22:59:10 DEBUG : env.production: Unchanged skipping
2023-04-12 22:59:10 DEBUG : webdav root 'Backup': Waiting for checks to finish
2023-04-12 22:59:10 DEBUG : redis.rdb: Sizes identical
2023-04-12 22:59:10 DEBUG : redis.rdb: Unchanged skipping
2023-04-12 22:59:10 DEBUG : webdav root 'Backup': Waiting for transfers to finish
2023-04-12 22:59:34 DEBUG : pacer: low level retry 1/1 (error error when trying to read error from body: stream error: stream ID 29; INTERNAL_ERROR; received from peer)
2023-04-12 22:59:34 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2023-04-12 22:59:35 DEBUG : pacer: Reducing sleep to 15ms
2023-04-12 22:59:35 DEBUG : db.sql: Received error: error when trying to read error from body: stream error: stream ID 29; INTERNAL_ERROR; received from peer - low level retry 1/10
2023-04-12 22:59:35 DEBUG : pacer: Reducing sleep to 11.25ms
2023-04-12 22:59:48 DEBUG : pacer: Reducing sleep to 10ms
2023-04-12 22:59:49 ERROR : db.sql: Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at ---url--- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
2023-04-12 22:59:49 ERROR : Attempt 3/3 failed with 1 errors and: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at ---url--- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large
Transferred:        5.300 GiB / 5.300 GiB, 100%, 52.491 MiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 6 / 6, 100%
Elapsed time:      1m46.6s
2023/04/12 22:59:49 INFO  :
Transferred:        5.300 GiB / 5.300 GiB, 100%, 52.491 MiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 6 / 6, 100%
Elapsed time:      1m46.6s

2023/04/12 22:59:49 DEBUG : 3 go routines active
2023/04/12 22:59:49 Failed to copy: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource does not allow request data with PUT requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr>
<address>Apache/2.4.56 (Debian) Server at ---url--- Port 443</address>
</body></html>
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>The computed checksum does not match the one received from the client.</s:message>
</d:error>: 413 Request Entity Too Large

The owncloud log still only shows this:

Exception: HTTP/1.1 400 The computed checksum does not match the one received from the client.: 
{"Exception":"Sabre\DAV\Exception\BadRequest","Message":"The computed checksum does not match the one received from the client.","Code":0,"Trace":"#0 /var/www/html/apps/dav/lib/Connector/Sabre/Directory.php(173): OCA\DAV\Connector\Sabre\File->put()
#1 /var/www/html/lib/composer/sabre/dav/lib/DAV/Server.php(1098): OCA\DAV\Connector\Sabre\Directory->createFile()
#2 /var/www/html/lib/composer/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\DAV\Server->createFile()
#3 /var/www/html/lib/composer/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpPut()
#4 /var/www/html/lib/composer/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()
#5 /var/www/html/lib/composer/sabre/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->invokeMethod()
#6 /var/www/html/apps/dav/lib/Server.php(349): Sabre\DAV\Server->start()
#7 /var/www/html/apps/dav/appinfo/v2/remote.php(31): OCA\DAV\Server->exec()
#8 /var/www/html/remote.php(165): require_once('/var/www/html/a...')
#9 {main}","File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":219}

But the error message with

Exception: HTTP/1.1 400 expected filesize 1133726783 got 0

is gone.


Now the question is what is left that can cause this error...
My net chain looks like this:

client -> nginx -> apache2 -> owncloud

So I feel like I searched everywhere for the cause of this problem...

Whats interesting though: the upload of files that are too large fails instantly now. I bet the reason is because I put this setting in my nginx proxy: proxy_request_buffering off;

So yeah, it is still not working, but for different reasons. I call that progress :smiley:

That's good

I would say this is normal for a big file - it gets buffered to disk if necessary.

That looks bad! That could be a timeout I guess from nginx to apache2.

That looks remarkably similar! So I guess some of the file is being sent now.

Have you checked apache2's config for the upload body size too?

I still feel reasonably sure that if you are getting 413 errors somewhere along the chain it is configured wrong.

Yeah I think so too, but I do have overrides in my owncloud directory in the .htaccess file... So I don't think that this is the problem, but I could be wrong.

Here are the important parts of my .htaccess file

    php_value upload_max_filesize 50G
    php_value post_max_size 50G
    php_value memory_limit 1024M
    php_value mbstring.func_overload 0
    php_value default_charset 'UTF-8'
    php_value output_buffering 0
    php_value max_input_time=3600
    php_value max_execution_time=3600

When I google for the error in combination with apache, there is a lot of stuff suggested that has to do with mod_sec and mod_req_timeout which are both disabled on my machine. I did set this setting, though it didn't change anything:

<IfModule mod_ssl.c>
    SSLRenegBufferSize 400000
</IfModule>

I don't think that I've seen more suggestions to what it could be...
Yesterday I also tried to upload directly to owncloud and bypass my remote proxy and It lead to the exact same behaviour. I didn't test it with rclone though, but with Cx File Explorer on my phone. It uses WebDAV as well and I still got the 413, so I think it is not nginx' fault anymore

FYI I've opened a github issue in the owncloud core repo: Large File Upload not working via WebDAV · Issue #40733 · owncloud/core · GitHub

And the LimitRequestBody in apache is set to 0 by default and is not override anywhere. I did set it to 0 now, but I have the exact same output as before, so that wasn't it eigher

https://httpd.apache.org/docs/current/mod/core.html#limitrequestbody

Those look like the right values, but I don't know whether setting them in the .htaccess file works or not - I've never done that. You can ask PHP to dump its config values can't you? (been a very long time since I used PHP!)

I set the values in the php.ini as well, no change. I do think that one can put them in the .htaccess file, because I did that when I had other problems with owncloud I think...

Yeah you can with phpInfo()

The variables that are important look like this:

variable local value master value
max_execution_time 3600 3600
max_input_time 3600 3600
memory_limit 1024M 1024M
post_max_size 0 0
upload_max_filesize 0 0

I set the max sizes to 0 so the limit is disabled

That all looks good...

Did you restart apache / mod_php when you changed the values? I don't know if that is needed but worth a try!

I did restart apache. I don't think that I have to restart php as well, do I?
I mean, the value in the info changed, so I guess that was alright