Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12134

Exceptions from trying to copy device files should not prevent additional artifacts from being copied

    XMLWordPrintable

Details

    Description

      We have a build that specified a directory as an artifact. In this case, the target directory of the build. The build failed for legitimate reasons, however the directory was not transferred. In the server logs:

      build	05-Sep-2012 03:20:33	[INFO] ------------------------------------------------------------------------
      build	05-Sep-2012 03:20:33	[INFO] Total time: 14 minutes 31 seconds
      build	05-Sep-2012 03:20:33	[INFO] Finished at: Wed Sep 05 03:20:33 CDT 2012
      build	05-Sep-2012 03:20:34	[INFO] Final Memory: 87M/424M
      build	05-Sep-2012 03:20:34	[INFO] ------------------------------------------------------------------------
      simple	05-Sep-2012 03:20:39	Failing task since return code was 1 while expected 0
      simple	05-Sep-2012 03:20:39	Parsing test results...
      simple	05-Sep-2012 03:20:54	Finished task 'Maven 2.x'
      simple	05-Sep-2012 03:20:54	Running post build plugin 'JMeter Aggregator Build Processor'
      simple	05-Sep-2012 03:20:54	Running post build plugin 'Artifact Copier'
      simple	05-Sep-2012 03:20:54	Publishing an artifact: Integration Test Output Dir
      error	05-Sep-2012 03:22:04	Failed to execute plugin 'Artifact Copier' with error: java.io.IOException: Exception occurred when posting message com.atlassian.bamboo.v2.build.agent.messages.ArtifactPublishMessage@10a86e. /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address)
      simple	05-Sep-2012 03:22:04	Running post build plugin 'Post Command Agent Runner'
      simple	05-Sep-2012 03:22:04	running post command on agent
      simple	05-Sep-2012 03:22:04	build failed, running fail command
      simple	05-Sep-2012 03:22:04	command is: 
      simple	05-Sep-2012 03:22:04	Running post build plugin 'Sandbox Environment cleanup'
      simple	05-Sep-2012 03:22:04	Running post build plugin 'NCover Results Collector'
      simple	05-Sep-2012 03:22:04	Running post build plugin 'Clover Results Collector'
      simple	05-Sep-2012 03:22:04	Running post build plugin 'FindBugs Build Processor'
      simple	05-Sep-2012 03:22:04	Running post build plugin 'Cleanup Build Processor'
      

      On the agent side:

      2012-09-05 03:20:57,402 INFO [1-BAM::bamboo-agent-2131.private.atlassian.com::Agent:pool-3-thread-1] [AbstractArtifactManager] Publishing [Integration Test Output Dir] for INTSYS-HAMSINTTEST0-JOB1-19: 909 file(s) matching [**/*.*] in directory /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target
      2012-09-05 03:21:03,297 ERROR [1-BAM::bamboo-agent-2131.private.atlassian.com::Agent:pool-3-thread-1] [HttpMessageSender] Exception occurred when posting message com.atlassian.bamboo.v2.build.agent.messages.ArtifactPublishMessage@10a86e. /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address)
      java.io.FileNotFoundException: /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:120)
              at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.writeObject(ArtifactTransferPayload.java:70)
              at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
              at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender$1.writeRequest(HttpMessageSender.java:59)
              at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
              at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
              at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
              at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
              at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
              at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
              at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
              at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:87)
              at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.publish(BambooRemoteArtifactHandler.java:32)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publishFileSet(AbstractArtifactManager.java:215)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:126)
              at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:79)
              at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:162)
              at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:88)
              at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:204)
              at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
              at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109)
              at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
              at java.lang.Thread.run(Thread.java:662)
      

      Googling found that the file in question was a postgres lock file, that likely disappeared between figuring out files to copy and actually copying.

      This exception should not prevent the rest of the files from being transferred, but it does. No other files in that directory were sent.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mtan MinanA
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: