• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved NextCloud, WebDAV, upload errors for large files

MicheleB

Regular Pleskian
Hello,
I've a problem with NextCloud (installed using Plesk's extension) and WebDAV connection.
If I try to upload a "large" file (e.g. 800MB) I receive the "server error".
2020-08-21_09-41-08.png

I've tried to search a solution on the NextCloud community forum and it seems that the issue is fixed if I change the default value in the “client_max_body_size".
So, how can I change “client_max_body_size" on Plesk?
What is the exact configuration to set in the "Additional nginx directives" (or in the "Panel.ini Editor")?
Last but not least, is there a maximum value not to be exceeded for safety reasons? For example, is dangerous if I set a value of 10G (the same value that I set in the "upload_max_filesize" for the PHP settings)?

Thanks.
 
These are the errors in the logs:
Code:
2020/08/21 10:09:43 [error] 111111#0: *22222 client intended to send too large body: 3333333 bytes, client: [myIP], server: nextcloud.[mydomain].com, request: "PUT /remote.php/dav/files/test/test.zip HTTP/2.0", host: "nextcloud.[mydomain].com"

2020/08/21 10:09:43 [error] 111111#0: * 22222 client intended to send too large body: 3333333 bytes, client: [myIP], server: nextcloud.[mydomain].com, request: "PUT /remote.php/dav/files/test/test.zip HTTP/2.0", host: "nextcloud.[mydomain].com"

2020/08/21 10:09:44 [error] 111111#0: * 22222 client intended to send too large body: 3333333 bytes, client: [myIP], server: nextcloud.[mydomain].com, request: "PUT /remote.php/dav/files/test/test.zip HTTP/2.0", host: "nextcloud.[mydomain].com"
 
If I use this instruction on Panel.ini (using "Panel.ini Editor" extension) is safe or could create issues on the server?
Code:
[webserver]
nginxClientMaxBodySize =

Is there a way to setting the "client_max_body_size" for a single hosting and and not the whole server (using for example "Additional nginx directives")?
 
Back
Top