Upload file bigger than 1GB encounter "413 Request Entity Too Large" error with webdav app.

yaoweiprc

Cadet
Joined
Sep 17, 2023
Messages
4
I've migrated from built-in webdav service to the webdav app as documentation guides.
Then I tested with WinSCP, It shows "413 Request Entity Too Large" when the file being uploaded is bigger than 1GiB.
Other small files uploaded well.
 

yaoweiprc

Cadet
Joined
Sep 17, 2023
Messages
4
1697056811315.png
 

gskular

Cadet
Joined
Feb 16, 2021
Messages
3
I've migrated from built-in webdav service to the webdav app as documentation guides.
Then I tested with WinSCP, It shows "413 Request Entity Too Large" when the file being uploaded is bigger than 1GiB.
Other small files uploaded well.
I have the same problem. No solution yet.
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Yeah, the chart needs modified whoever the maintainer is. I'd suggest submitting a bug report. This should definitely be built into the chart esp if they are eliminating webdav outside of the app.

If you are "brave" and want to play around with Apache directives, you might try a hostpath for /usr/local/apache2/conf/Includes in the container to some directory on Truenas where you can edit the Apache configuration. It won't matter if you do something wrong as you can always delete the app and install again, and clear your conf file.

In Apache, you typically add a directive such as:

LimitXMLRequestBody 67108864

Within a directory or virtualhost block. The number is the max size in bytes. You want to make sure this is well within memory limits.

I don't have the app as I don't use webdav. From a cursory review of the chart.

If you do get to adding the directive in the appropriate spot, you will have to restart the container to take effect. Or, restart apache within the container.

I do not see any bug report submitted for this so, I would suggest doing so and posting the link here so others can follow or like it.
 

yaoweiprc

Cadet
Joined
Sep 17, 2023
Messages
4
Yeah, the chart needs modified whoever the maintainer is. I'd suggest submitting a bug report. This should definitely be built into the chart esp if they are eliminating webdav outside of the app.

If you are "brave" and want to play around with Apache directives, you might try a hostpath for /usr/local/apache2/conf/Includes in the container to some directory on Truenas where you can edit the Apache configuration. It won't matter if you do something wrong as you can always delete the app and install again, and clear your conf file.

In Apache, you typically add a directive such as:

LimitXMLRequestBody 67108864

Within a directory or virtualhost block. The number is the max size in bytes. You want to make sure this is well within memory limits.

I don't have the app as I don't use webdav. From a cursory review of the chart.

If you do get to adding the directive in the appropriate spot, you will have to restart the container to take effect. Or, restart apache within the container.

I do not see any bug report submitted for this so, I would suggest doing so and posting the link here so others can follow or like it.
Thanks, I've reported a bug.
Upload file bigger than 1GB encounter "413 Request Entity Too Large" error with official webdav app.
 
Top