bioatlas / ala-docker

Dockerized version of Atlas of Living Australia components
GNU Affero General Public License v3.0
12 stars 12 forks source link

Develop branch: upload of layer runs into size limit #50

Open mskyttner opened 5 years ago

mskyttner commented 5 years ago

While uploading one of the layers, a size limit in the spatialservice exceeding 524288000 (bytes?) prevented the upload from succeeding.

Log messages:

webserver | 2019/09/24 11:12:22 [warn] 6#6: *3835 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000084, client: 172.18.0.39, server: beta.bioatlas.se, request: "POST /spatial-service/manageLayers/upload HTTP/1.1", host: "beta.bioatlas.se", referrer: "https://beta.bioatlas.se/spatial-service/manageLayers/uploads?error=MALFORMED+-+see+logs+for+details"

spatialservice        | [SPATIAL-SERVICE] 11:12:25.893 StackTrace : Full Stack Trace:
spatialservice        | 
spatialservice        | org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (579193424) exceeds the configured maximum (524288000)
mskyttner commented 5 years ago

The proxy chain may have limits, setting the nginx-proxy conf may resolve it at one of the entry points into the chain:

~/repos/ala-docker$ more nginx-proxy/nginx-proxy.conf client_max_body_size 0; proxy_request_buffering off; But it seems that the spatial-service also has a limit.

And there may be things in between (such as the webserver).