Failure in artifact preparation phase during processing of: Subscription for Non required shared art

sadhana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2020

Failure in artifact preparation phase during processing of: Subscription for Non required shared artifact: [src], pattern: [**/*.*] anchored at: [src], destination: [src]

Agent:...

2 answers

0 votes
yogesh_devi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2021

Hello 

I know its late response :-) - posting here so someone with similar error might benefit 

In my Bamboo agent log I see following error 

2021-01-15 13:42:07,532 ERROR [2-BAM::sles12sp3-agent4::Agent:pool-5-thread-1] [BambooArtifactHttpTransport]
org.apache.http.TruncatedChunkException: Truncated chunk (expected size: 8,192; actual size: 4,202)

Do you see similar messages in your Bamboo agent log ? 

If this is the case then it means there is an issue with Bamboo server to agent communication that is affecting transfer of artifacts 

In that case you might want to use the workaround that I employed only if your default local agent can run the task that is dependent on shared artifacts being copied.

I changed requirements of the task dependent on artifacts  to run locally on Bamboo default agent 

Alternatively you might want to fix the cause for that exception by adjusting time outs  - see - https://stackoverflow.com/questions/45950805/org-apache-http-truncatedchunkexception/45952274

 

By the way, did you see Dan turner's question https://community.atlassian.com/t5/Bamboo-questions/Bamboo-build-failing-on-copy-of-shared-artifact/qaq-p/212050#U1581129 - That solution does not work for me though and I had to use above workaround 

Best regards 

Yogesh 

yogesh_devi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2024

Couple things - now that Atlassian has discontinued the Server version and we have to migrate to Datacenter version - in The Bamboo Datacenter  version "local" agents are no longer supported.  - So that option goes out of the door :-(  

I noticed that same error ( HTTP transport failure of artifact from Bamboo to agent ) may manifest as below as well  

 com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler
2024-06-14 07:22:12,933 ERROR [6-BAM::ubu22-build-30-24::Agent:Thread-22] [BambooArtifactHttpTransport] Unexpected HTTP status code: HTTP/1.1 401
2024-06-14 07:22:12,933 ERROR [6-BAM::ubu22-build-30-24::Agent:Thread-22] [DisconnectedBuildLogger] Unable to send to server: Artifact transfer failed with http code 401. Agent will try to recover.

And looking at that I landed up on following post 

https://community.atlassian.com/t5/Bamboo-questions/Bamboo-build-error-Unable-to-publish-artifact-from-bamboo-remote/qaq-p/848407 

and try increasing connection timeout in 

 <installation-directory>/conf/server.xml file

"connectionTimeout=600000"

 

Datacenter   

0 votes
sadhana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2020

Any reply Please

yogesh_devi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2021

please see  response below 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events