Problem uploading builds

Every now and thenI get an internal server error 500 on the agents when it wants to publish artifacts. There is no shortage of disk space anywhere (neither server, nor agent). It has happened from several different agents, but on the same configuration.

I checked the server logs, and found the log file below. The build # just built had nothing in particular to do with 71700. Usually, manually triggering a build resolves the problem. I am running TeamCity 6.5.1 (build 17834) on a linux box.

Anything I can do to prevent this from happening?

Best regards,

--Jesper Hogstrom


[2011-09-14 10:27:02,698]   WARN - facts.ArtifactUploadController - Failed to upload build artifact due to error: java.io.IOException: Destination file [/opt/TeamCity/data/system/artifacts/MYPROJECT/BuildInternalRelease/71700] already exists and could not be deleted
[2011-09-14 10:27:02,718]  ERROR -   jetbrains.buildServer.SERVER - Error during request processing, request dump:
Path: /runtimeError.jsp
Method: POST
Remote address: 10.46.10.169

java.io.IOException: Destination file [/opt/TeamCity/data/system/artifacts/MYPROJECT/BuildInternalRelease/71700] already exists and could not be deleted
        at org.springframework.web.multipart.commons.CommonsMultipartFile.transferTo(CommonsMultipartFile.java:132)
        at jetbrains.buildServer.controllers.artifacts.ArtifactUploadController.publishFile(ArtifactUploadController.java:44)
        at jetbrains.buildServer.controllers.artifacts.ArtifactUploadController.doHandle(ArtifactUploadController.java:46)
        at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:73)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:95)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at jetbrains.buildServer.web.DiagnosticFilter.runChainWithModifiedThreadName(DiagnosticFilter.java:4)
        at jetbrains.buildServer.web.DiagnosticFilter.doFilter(DiagnosticFilter.java:15)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:1)
        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:127)
        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:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:636)
[2011-09-14 10:27:10,398]   INFO - de.impl.history.DBBuildHistory - Start creating history entry for MYPROJECT :: BuildInternalRelease 71700, date: 1315988829000
[2011-09-14 10:27:10,407]   INFO - de.impl.history.DBBuildHistory - End creating history entry for MYPROJECT :: BuildInternalRelease 71700
[2011-09-14 10:27:10,468]   INFO - tbrains.buildServer.ACTIVITIES - Finished 71700

2 comments
Comment actions Permalink

Hello Jesper,

This is a known issue reported here. Ufortunately, it is not fixed yet. Workaround for this issue is available in TeamCity 6.5.2

Could you please help us to further investifate this issue and follow the instructions in this comment ?

0
Comment actions Permalink

I have added the additional log definition. As my problem is intermittent I don't know when I will hit something. It also seems these log fill up pretty fast, and rotate away the interesting bits. Does it log everything that moves across the wire? Any chance of catching fish using a less verbose level?

--Jesper

0

Please sign in to leave a comment.