Task #3803
closed
Dev4 portal errors when uploading files larger than 3MB
100%
Description
Using the dev4 portal, when performing two HTTP/POST calls, one of which contains a file larger than 3MB in its body, we get these error messages:
1)413 Request Entity Too Large
2)504 Gateway Time-out
The errors appear when the haproxy is used. There is no error if the server is contacted using the port 9090, that is without using the proxy.
Updated by Andrea Dell'Amico about 9 years ago
- Assignee changed from Andrea Dell'Amico to _InfraScience Systems Engineer
Updated by Andrea Dell'Amico about 9 years ago
- Status changed from New to In Progress
The error comes from the nginx server. The pipeline is haproxy -> nginx -> tomcat
.
I'm working to raise the limits.
Updated by Andrea Dell'Amico about 9 years ago
What we want as a maximum size for the file uploads?
Updated by Andrea Dell'Amico about 9 years ago
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
Done, let me know.
Updated by Costantino Perciante about 9 years ago
I've just tried: I think you have enlarged the maximum size accepted and in fact the 413 Request Entity Too Large no longer appears. However, the second error sometimes arises. Is there any timeout value that can be increased too?
Thanks
Updated by Andrea Dell'Amico about 9 years ago
- Status changed from Feedback to In Progress
Looking at it.
Updated by Andrea Dell'Amico about 9 years ago
- Status changed from In Progress to Feedback
Raised the haproxy timeouts too.
Updated by Costantino Perciante about 9 years ago
- Status changed from Feedback to Closed
Now it seems to work, thanks! Of course, we will need to have the same configuration in production
Updated by Andrea Dell'Amico about 9 years ago
Yes. The new infra is not configured at all right now, I think @massimiliano.assante@isti.cnr.it wants to test the tomcat clustering first?