502 Bad Gateway after 50 seconds during multipart POST

Hello,

Has anyone using AWS Elastic Beanstalk (specifically Lucee) had any issues
with long file upload requests (60+ seconds) timing out resulting in an
empty form scope (and a Lucee exception).

I have for these requests.

I’ve been back & forth with Amazon for a couple of days now, extended the
ELB timeout to 300 sec… but to no avail… They seem adamant it’s something
in the application… I have other long runners that will happily run for
several minutes…

It seems something specific to file uploads. Any help appreciated.

Regards,

Adam

Adam,
What environment/OS are you deploying into on EBS?

Hi Bilal,

It’s the AWS Tomcat8 EBS container, so it’s Tomcat 8 on Amazon Linux with
Lucee 4.5.2.018

Regards,
AdamOn Wednesday, May 25, 2016 at 8:39:33 PM UTC+10, Bilal wrote:

Adam,
What environment/OS are you deploying into on EBS?

Adam,
could this be a size upload limit rather than a time one?

If this is not the issue can you share what is being recorded in the
tomcat/catalina logs?

Best,
BilalOn Wednesday, May 25, 2016 at 7:26:35 AM UTC-4, Adam Chapman wrote:

Hi Bilal,

It’s the AWS Tomcat8 EBS container, so it’s Tomcat 8 on Amazon Linux with
Lucee 4.5.2.018

Regards,
Adam

On Wednesday, May 25, 2016 at 8:39:33 PM UTC+10, Bilal wrote:

Adam,
What environment/OS are you deploying into on EBS?

Hi Bilal,

Thanks for the upload limit suggestion, I wasn’t aware of this, but alas
there is no upload limit in my web.xml (I see the default is 50mb, the
files in question are below 20mb).

The only relevant info that I can find in the log files are the 500
exceptions… as below (unless you can point me elsewhere in the catalina
logs?).

./log/tomcat8/localhost_access_log.txt:127.0.0.1 - - [18/May/2016:02:55:41
+0000] “POST /admin/imports/create HTTP/1.1” 500 145

The exception message itself is due to an empty form scope… eg
“form.filefield does not exist”

Regards,
AdamOn Thursday, May 26, 2016 at 9:26:24 PM UTC+10, Bilal wrote:

Adam,
could this be a size upload limit rather than a time one?
http://tecadmin.net/increase-tomcat-upload-file-size-limit/#

If this is not the issue can you share what is being recorded in the
tomcat/catalina logs?

Best,
Bilal

On Wednesday, May 25, 2016 at 7:26:35 AM UTC-4, Adam Chapman wrote:

Hi Bilal,

It’s the AWS Tomcat8 EBS container, so it’s Tomcat 8 on Amazon Linux with
Lucee 4.5.2.018

Regards,
Adam

On Wednesday, May 25, 2016 at 8:39:33 PM UTC+10, Bilal wrote:

Adam,
What environment/OS are you deploying into on EBS?