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

The remote agent dies if a (remote) build is stopped while artifacts are being transferred.

      If a remote build is stopped while a Bamboo agent is sending the artifact back to the server, the agent throws an exception and tries to restart -

      2008-08-12 11:00:38,290 INFO [BAM::fodevsx4.london.kbcfp.com::Agent] [BuildArtifactPostProcessor] Copying the build artifacts for build:CTU-HEAD-1026
      2008-08-12 11:03:29,225 INFO [agentMessageListenerConnector-1] [DefaultBuildAgent] Cancel build build request for 'CTU-HEAD-1026' received on agent 'fodevsx4.london.kbcfp.com'.
      2008-08-12 11:03:29,226 INFO [agentMessageListenerConnector-1] [DefaultBuildAgent] Interrupting task com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask@63f0f47c.
      2008-08-12 11:03:29,252 INFO [BAM::fodevsx4.london.kbcfp.com::Agent] [AgentContext] Exiting Bamboo agent...
      java.io.InterruptedIOException: Operation interrupted
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      at org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java:505)
      at org.apache.commons.httpclient.HttpConnection.closeIfStale(HttpConnection.java:430)
      at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.closeIfStale(MultiThreadedHttpConnectionManager.java:1273)
      at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:381)
      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.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:106)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:232)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:225)
      at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:172)
      at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:433)
      at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477)
      at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:557)
      at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:548)
      at com.atlassian.bamboo.v2.build.agent.remote.JmsTemplateStrategy.send(JmsTemplateStrategy.java:19)
      at com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy$1.write(SegmentedMessageStrategy.java:48)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
      at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)
      at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      at com.atlassian.bamboo.v2.build.agent.messages.PublishArtifacts.writeObject(PublishArtifacts.java:65)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      at com.atlassian.bamboo.v2.build.agent.remote.SegmentedMessageStrategy.send(SegmentedMessageStrategy.java:67)
      at com.atlassian.bamboo.v2.build.agent.remote.BambooAgentMessageSenderImpl.send(BambooAgentMessageSenderImpl.java:27)
      at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publish(RemoteArtifactManager.java:18)
      at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:49)
      at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:109)
      at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:69)
      at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:192)
      at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:89)
      at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:105)
      at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      at java.lang.Thread.run(Thread.java:619)

            [BAM-2983] The remote agent dies if a (remote) build is stopped while artifacts are being transferred.

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1435140 ] New: JAC Bug Workflow v3 [ 3378759 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1409539 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1435140 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 618313 ] New: Bamboo Workflow 2016 v1 [ 1409539 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2014 [ 604390 ] New: Bamboo Workflow 2014 v2 [ 618313 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2010 [ 205280 ] New: Bamboo Workflow 2014 [ 604390 ]
            MarkC made changes -
            Fix Version/s Original: 20120525 [ 26390 ]
            MarkC made changes -
            Fix Version/s New: 20120525 [ 26390 ]
            MarkC made changes -
            Workflow Original: reviewflow [ 167018 ] New: Bamboo Workflow 2010 [ 205280 ]
            MarkC made changes -
            Component/s New: Agents (Remote) [ 12491 ]
            Component/s Original: Distributed Builds [ 12547 ]
            MarkC made changes -
            Fix Version/s New: 2.2 [ 14112 ]
            Fix Version/s Original: 2.2 M6 [ 14470 ]

              ukuhnhardt Ulrich Kuhnhardt [Atlassian]
              asridhar AjayA
              Affected customers:
              1 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m