webapp-runner icon indicating copy to clipboard operation
webapp-runner copied to clipboard

413 Request Entity too Large for large file uploads

Open saichand1996 opened this issue 1 year ago • 0 comments

hello,

I'm using webapp runner with docker for hosting a web application , for files less than 1mb, the upload of files are successful but when file size exceeds 1MB, server is throwing 413 request entity too large HTTP status, We are using mvn dependency of web app runner in to our applications pom file, here is the docker file of our hosted app :

Docker multi-stage build

1. Building the App with Maven

FROM maven:3-jdk-11

ADD . /reportserver WORKDIR /reportserver

Just echo so we can see, if everything is there :)

RUN ls -l

Run Maven build

RUN mvn clean install

2. Just using the build artifact and then removing the build-container

FROM openjdk:11-jdk

VOLUME /tmp

Add app.war to Container

COPY --from=0 "/reportserver/target/*.war" reportserver.war COPY --from=0 "/reportserver/target/dependency/webapp-runner.jar" webapp-runner.jar

CMD java $JAVA_OPTIONS -jar webapp-runner.jar --port $PORT reportserver.war

can you please help us to configure the web app runner with respect to https://stackoverflow.com/questions/51390755/413-request-entity-too-large-apache-tomcat this tomcat thread for tomcat's 413 error

saichand1996 avatar Mar 29 '23 00:03 saichand1996