I have a Job that (tries to) publish an artifact that other Stages and Jobs are dependant upon. However, it seems to time out whenever it tries to publish the artifact.
If it matters, the artifact matches **/* so that I can copy the sources / compiled sources along the pipeline without re-checking out or re-compiling. The artifact is only roughly 1mb.
I've attached the log below. Although Bamboo will retry and repeat the process for ~30 minutes or so until it finally gives up.
2014-10-09 15:09:03,803 INFO [0-BAM::Elastic Agent on i-84b5f06a::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Artifact Copier'
2014-10-09 15:09:03,805 INFO [0-BAM::Elastic Agent on i-84b5f06a::Agent:pool-3-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: HS-WS-MCL-111
2014-10-09 15:09:03,823 INFO [0-BAM::Elastic Agent on i-84b5f06a::Agent:pool-3-thread-1] [AbstractArtifactManager] Publishing [HoS Sources + Compiled Sources] for HS-WS-MCL-111: 68 file(s) mat ching [**/*] in directory /mnt/bamboo-ebs/bamboo-agent/build-dir/HS-WS-MCL
2014-10-09 15:10:03,865 INFO [0-BAM::Elastic Agent on i-84b5f06a::Agent:pool-3-thread-1] [DefaultHttpClient] I/O exception (java.net.SocketTimeoutException) caught when processing request: Rea d timed out
2014-10-09 15:10:03,865 INFO [0-BAM::Elastic Agent on i-84b5f06a::Agent:pool-3-thread-1] [DefaultHttpClient] Retrying request
2014-10-09 15:11:03,922 INFO [0-BAM::Elastic Agent on i-84b5f06a::Agent:pool-3-thread-1] [DefaultHttpClient] I/O exception (java.net.SocketTimeoutException) caught when processing request: Rea d timed out
2014-10-09 15:11:03,922 INFO [0-BAM::Elastic Agent on i-84b5f06a::Agent:pool-3-thread-1] [DefaultHttpClient] Retrying request
2014-10-09 15:11:37,472 ERROR [tunnellogger-thread] [TunnelAcceptor] [tunnelserver:26224-1-thread-343] Error while accepting tunnel connections.
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:422)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:460)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.InputStream.read(InputStream.java:82)
at com.atlassian.tunnel.tunnel.server.TunnelAcceptor.run(TunnelAcceptor.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
-----
It may be worth mentioning that the first job does succeed to publish the artifact if it's the first job run on a newly spun up instance. However, subsequent jobs can not process the artifact. Logs below.
2014-10-09 17:55:12,544 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Hours of Service - hos-webservice - Maven Unit Test Lifecycle #113 (HS-WS-MUTL-113) taken from queue.
2014-10-09 17:55:12,545 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Hours of Service - hos-webservice - Maven Unit Test Lifecycle #113 (HS-WS-MUTL-113) assigned to agent 5013525
2014-10-09 17:55:12,618 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [DefaultBuildAgent] Changing context: null -> HS-WS-MUTL-113 on Elastic Agent on i-6be6a785/57319f76
2014-10-09 17:55:12,786 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Build Hours of Service - hos-webservice - Maven Unit Test Lifecycle #113 (HS-WS-MUTL-113) started building on agent Elastic Agent on i-6be6a785
2014-10-09 17:55:12,786 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.v2.build.task.InitializeBuild
2014-10-09 17:55:12,787 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] Hours of Service - hos-webservice - Maven Unit Test Lifecycle #113 (HS-WS-MUTL-113) VCS sync started
2014-10-09 17:55:12,947 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [CheckoutDirectoriesSnapshotHelper] Build working directory is /mnt/bamboo-ebs/bamboo-agent/build-dir/HS-WS-MUTL
2014-10-09 17:55:12,948 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask
2014-10-09 17:55:12,949 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [PrepareBuildTask] Executing build Hours of Service - hos-webservice - Maven Unit Test Lifecycle #113 (HS-WS-MUTL-113)
2014-10-09 17:55:12,949 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [PrepareBuildTask] Preparing artifact for use: HoS Sources + Compiled Sources
2014-10-09 17:55:39,205 ERROR [tunnellogger-thread] [TunnelAcceptor] [tunnelserver:26224-1-thread-8] Error while accepting tunnel connections.
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:422)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:460)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.InputStream.read(InputStream.java:82)
at com.atlassian.tunnel.tunnel.server.TunnelAcceptor.run(TunnelAcceptor.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
2014-10-09 17:55:40,203 ERROR [tunnellogger-thread] [TunnelAcceptor] [tunnelserver:26224-1-thread-8] Error while accepting tunnel connections.
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:422)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:460)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.InputStream.read(InputStream.java:82)
at com.atlassian.tunnel.tunnel.server.TunnelAcceptor.run(TunnelAcceptor.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
2014-10-09 17:56:12,995 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [DefaultHttpClient] I/O exception (java.net.SocketTimeoutException) caught when processing request: Read timed out
2014-10-09 17:56:12,995 INFO [0-BAM::Elastic Agent on i-6be6a785::Agent:pool-3-thread-1] [DefaultHttpClient] Retrying request