Closed ajinkyakulkarni closed 11 months ago
To temporarily get unblocked, I could verify this approach
Login to the docker container
client_max_body_size
to 200mHere is the complete verification of this approach
Some more investigation
/etc/nginx/sites-available/default
/usr/sbin/nginx -s reload
Then I uploaded a file of 100mb and I got the following Java OutOfMemory error
Then temporarily increased the Java Heap Size and restarted the supervisor
cd /opt/appsmith
export APPSMITH_JAVA_HEAP_ARG="-Xmx512m"
./update-and-restart-supervisor.sh
Now, when I try to upload files, the backend server shows the the actions are getting executing without the Java OutOfMemory error
I am able to reproduce an error where backend restarts mentioned by the user https://discord.com/channels/725602949748752515/981196657653866516
Add APPSMITH_JAVA_HEAP_ARG="-Xmx4G" in
/appsmith-stacks/configuration/docker.env
Change client_max_body_size to 200mb in
/opt/appsmith/templates/nginx-app-http.conf.template.sh /opt/appsmith/templates/nginx-app-https.conf.template.sh
Restart supervisor
./update-and-restart-supervisor.sh
Upload a large file and notice the restarts in /appsmith-stacks/logs/backend/backend.log
On client I see 502 Bad Gateway
error
I confirmed that Java Backend Server crashes even when launched outside of supervisord
https://user-images.githubusercontent.com/800578/173202763-74a99ed1-cdf7-4c89-b11a-99deb2169209.mp4
Is there an existing issue for this?
Description
A user on discord mentioned that he/she is not able to upload a file great than 65MB
https://discord.com/channels/725602949748752515/760761686549463060/981196657653866516
I was able to reproduce this, when a file of 95MB was uploaded
Upon more investigation, it was found that
client_max_body_size
is correctly set in nginxBut, it was observed that the incorrect content-length is being sent in the header. For example, for a file of size 78mb, the sent content-length header was 104mb. For a file of size 68mb, the sent content-length header was 90mb.
So, because of this, users are not able to upload files of 100mb even if that is what we say is allowed.
Steps To Reproduce
Public Sample App
No response
Version
Cloud