Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,972
Community Members
 
Community Events
168
Community Groups

Bamboo build error. Unable to publish artifact, from bamboo remote agent

We installed bamboo agent on linux server, and seems all working fine.. except sending artifacts.. 

While sending artifacts we are getting this following error.

 

[ArtifactStreams] Error during artifact transfer, total bytes written: 2248704, total requested: 13209258, latest request: 13209258
2018-07-19 17:37:17,734 ERROR [0-BAM:::Agent:pool-3-thread-1] [BambooArtifactHttpTransport] Failed to send artifact.
   java.net.SocketException: Broken pipe (Write failed)
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)

1 answer

0 votes

Hi Mohan,

This seems to be related to your network. Tomcat might be timing out the http connection before the agent finishes the transfer.

You can try to increase the connection timeout in Tomcat connector to see if this fix the artifact transfer issue:

  • Stop Bamboo
  • Open the <installation-directory>/conf/server.xml file
  • Increase the "connectionTimeout=" parameter to at least "600000":

e.g.

 <Service name="Catalina">

<Connector
protocol="HTTP/1.1"
port="8085"

maxThreads="150" minSpareThreads="25"
connectionTimeout="600000"
disableUploadTimeout="true"
acceptCount="100"

enableLookups="false"
maxHttpHeaderSize="8192"

useBodyEncodingForURI="true"
URIEncoding="UTF-8"

redirectPort="8443"
/>
  • Start bamboo
  • Try to run the build again. 

Please let us know the result.

thanks

Hi @Gabriel Ribeiro-  Thanks for your response. I tried with above but doesn't help. I increase  timeout 800,000. still the same.... 

 

 Error during artifact transfer, total bytes written: 3239936, total requested: 13221452, latest request: 13221452

18-07-20 14:00:18,463 WARN [ArtifactStreams] Error during artifact transfer, total bytes written: 3371008, total requested: 13221452, latest request: 13221452
2018-07-20 14:00:18,464 INFO [RetryExec] I/O exception (java.net.SocketException) caught when processing request to {}Connection reset
2018-07-20 14:00:18,464 INFO [RetryExec] Retrying request to {}->
2018-07-20 14:00:25,024 WARN [ArtifactStreams] Error during artifact transfer, total bytes written: 2977792, total requested: 13221452, latest request: 13221452
2018-07-20 14:00:25,024 INFO [RetryExec] I/O exception (java.net.SocketException) caught when processing request to {}Connection reset

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

310 views 0 7
Read article

Atlassian Community Events