Maximum upload size?

I have a zip file artifact that is over 300 MB in size.  When TeamCity tries to upload it, the server reports the following error.  How can I fix this?

[2009-04-22 18:50:10,328]  ERROR -   jetbrains.buildServer.SERVER - Attempt to upload artifact which size exceeds maximum allowed size

org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 300000000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (310671364) exceeds the configured maximum (300000000)
    at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:169)
    at org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:149)
    at jetbrains.spring.web.TeamCityMultipartResolver.resolveMultipart(TeamCityMultipartResolver.java:0)
    at org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:1006)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:851)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at jetbrains.spring.web.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:18)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:8)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (310671364) exceeds the configured maximum (300000000)
    at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:797)
    at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:323)
    at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:341)
    at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
    at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:165)
    ... 25 more

1 comment
Comment actions Permalink

Maximum upload size can be configured at the Administration > Server configuration page.

0

Please sign in to leave a comment.