Project

General

Profile

Actions

Task #3803

closed

Dev4 portal errors when uploading files larger than 3MB

Added by Costantino Perciante about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
_InfraScience Systems Engineer
Category:
Other
Target version:
Start date:
Apr 27, 2016
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development

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.

Actions #1

Updated by Andrea Dell'Amico about 9 years ago

  • Assignee changed from Andrea Dell'Amico to _InfraScience Systems Engineer
Actions #2

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.

Actions #3

Updated by Andrea Dell'Amico about 9 years ago

What we want as a maximum size for the file uploads?

Actions #4

Updated by Costantino Perciante about 9 years ago

50 MB would be ok, thanks

Actions #5

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.

Actions #6

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

Actions #7

Updated by Andrea Dell'Amico about 9 years ago

  • Status changed from Feedback to In Progress

Looking at it.

Actions #8

Updated by Andrea Dell'Amico about 9 years ago

  • Status changed from In Progress to Feedback

Raised the haproxy timeouts too.

Actions #9

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

Actions #10

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?

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)