Unable to publish artifact - [BambooArtifactHttpTransport] Unexpected HTTP status code: HTTP/1.1 411 Length Required

We are building an Android app with Bamboo. Everything works fine except that the Android .apk file cannot be published.

 

Looking at the agent log we can see the following:

INFO   | jvm 1    | 2015/10/30 10:16:06 | 2015-10-30 10:16:06,957 INFO [2-BAM::myagent.com::Agent:pool-5-thread-1] [ExecuteBuildTask] Running post build plugin 'Artifact Copier'


INFO   | jvm 1    | 2015/10/30 10:16:07 | 2015-10-30 10:16:06,960 INFO [2-BAM::myagent.com::Agent:pool-5-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: PRO-APPANDROID12-JOB1-2

INFO   | jvm 1    | 2015/10/30 10:16:07 | 2015-10-30 10:16:06,979 INFO [2-BAM::myagent.com::Agent:pool-5-thread-1] [AbstractArtifactManager] Publishing [APK] for PRO-APPANDROID12-JOB1-2: 6 file(s) matching [**/*.apk] in directory /home/user/bamboo-agent-home/xml-data/build-dir/PRO-APPANDROID12-JOB1/pro-android-app/build/outputs

INFO   | jvm 1    | 2015/10/30 10:16:07 | 2015-10-30 10:16:07,007 INFO [2-BAM::myagent.com::Agent:pool-5-thread-1] [AbstractArtifactManager] Trying to publish the artifact with handler: com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler

INFO   | jvm 1    | 2015/10/30 10:16:33 | 2015-10-30 10:16:33,575 INFO [2-BAM::myagent.com::Agent:pool-5-thread-1] [BambooArtifactHttpTransport] Finished writing the artifact to the output stream.

INFO   | jvm 1    | 2015/10/30 10:16:33 | 2015-10-30 10:16:33,577 INFO [2-BAM::myagent.com::Agent:pool-5-thread-1] [BambooArtifactHttpTransport] Content-Description: Artifact [APK] for PRO-APPANDROID12-JOB1-2X-Bamboo-AuthenticationToken: 02c5c41easdcf2cbfcea8558a322104e11255f065

INFO   | jvm 1    | 2015/10/30 10:16:33 | 2015-10-30 10:16:33,578 ERROR [2-BAM::myagent.com::Agent:pool-5-thread-1] [BambooArtifactHttpTransport] Unexpected HTTP status code: HTTP/1.1 411 Length Required

INFO   | jvm 1    | 2015/10/30 10:16:33 | 2015-10-30 10:16:33,578 INFO [2-BAM::myagent.com::Agent:pool-5-thread-1] [AbstractArtifactManager] Handler com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler did not publish the artifact

INFO   | jvm 1    | 2015/10/30 10:16:33 | 2015-10-30 10:16:33,581 WARN [2-BAM::myagent.com::Agent:pool-5-thread-1] [AbstractArtifactManager] Unable to publish artifact [APK]:

 

I guess the problem is related to this log entry:

[BambooArtifactHttpTransport] Unexpected HTTP status code: HTTP/1.1 411 Length Required

What could be wrong?

1 answer

This widget could not be displayed.

The reverse proxy you're fronting your Bamboo server with does not support chunked encoding or is not configured to accept chunked encoding. Either fix that, or point the agent directly at the Tomcat port of your Bamboo server (you can edit the URL in bamboo-agent-home/conf/wrapper.conf)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

128 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you