Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Mohan Kaliyannan July 19, 2018

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
Gabriel Ribeiro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 20, 2018

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

Mohan Kaliyannan July 20, 2018

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
AUG Leaders

Atlassian Community Events