org.apache.http.ConnectionClosedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Trying to install getting error
    via GitHub by DivyaGN
    ,
  • Update to C12 fails - Genuitec
    via by Unknown author,
  • Elastic agents can fail with the following exception: {code} 2014-09-10 07:30:21,070 INFO [main] [S3Sync] Syncing from: bamboo-agent-release-us-e1/5.6-OD-01-0070/cce16404c14f06456c6adc44181746abf8dd1206/ to /opt/bamboo-elastic-agent 2014-09-10 07:30:22,069 INFO [main] [S3Utils] Syncing s3://bamboo-agent-release-us-e1/5.6-OD-01-0070/cce16404c14f06456c6adc44181746abf8dd1206/ to /opt/bamboo-elastic-agent 2014-09-10 07:30:22,069 INFO [main] [S3Utils] Fetching the list of remote objects... 2014-09-10 07:30:25,898 INFO [main] [S3Utils] Found 579 files in s3://bamboo-agent-release-us-e1/5.6-OD-01-0070/cce16404c14f06456c6adc44181746abf8dd1206/ 2014-09-10 07:30:26,166 INFO [main] [S3Utils] Found 1592 files in /opt/bamboo-elastic-agent 2014-09-10 07:30:26,167 INFO [main] [S3Utils] Generating the list of files to fetch from S3... 2014-09-10 07:30:26,190 INFO [main] [S3Utils] Generating the list of files to remove... 2014-09-10 07:30:26,203 INFO [main] [S3Utils] Removing 1233 files from /opt/bamboo-elastic-agent 2014-09-10 07:30:27,014 INFO [main] [S3Utils] Fetching 255 files to /opt/bamboo-elastic-agent Exception in thread "main" org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1850391; received: 1116220 at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:138) at java.security.DigestInputStream.read(DigestInputStream.java:144) at java.io.FilterInputStream.read(FilterInputStream.java:116) at com.amazonaws.services.s3.internal.ChecksumValidatingInputStream.read(ChecksumValidatingInputStream.java:97) at java.io.FilterInputStream.read(FilterInputStream.java:116) at com.atlassian.aws.s3.S3Utils.fetch(S3Utils.java:304) at com.atlassian.aws.s3.S3Utils.doSync(S3Utils.java:284) at com.atlassian.aws.s3.S3Utils.sync(S3Utils.java:165) at com.atlassian.bamboo.agent.elastic.S3Sync.sync(S3Sync.java:72) at com.atlassian.bamboo.agent.elastic.installer.ElasticAgentInstaller.main(ElasticAgentInstaller.java:66) {code} If this happens agent is stuck in "pending" state and needs to be terminated manually.
    via by Marcin Gardias [Atlassian],
  • Elastic agents can fail with the following exception: {code} 2014-09-10 07:30:21,070 INFO [main] [S3Sync] Syncing from: bamboo-agent-release-us-e1/5.6-OD-01-0070/cce16404c14f06456c6adc44181746abf8dd1206/ to /opt/bamboo-elastic-agent 2014-09-10 07:30:22,069 INFO [main] [S3Utils] Syncing s3://bamboo-agent-release-us-e1/5.6-OD-01-0070/cce16404c14f06456c6adc44181746abf8dd1206/ to /opt/bamboo-elastic-agent 2014-09-10 07:30:22,069 INFO [main] [S3Utils] Fetching the list of remote objects... 2014-09-10 07:30:25,898 INFO [main] [S3Utils] Found 579 files in s3://bamboo-agent-release-us-e1/5.6-OD-01-0070/cce16404c14f06456c6adc44181746abf8dd1206/ 2014-09-10 07:30:26,166 INFO [main] [S3Utils] Found 1592 files in /opt/bamboo-elastic-agent 2014-09-10 07:30:26,167 INFO [main] [S3Utils] Generating the list of files to fetch from S3... 2014-09-10 07:30:26,190 INFO [main] [S3Utils] Generating the list of files to remove... 2014-09-10 07:30:26,203 INFO [main] [S3Utils] Removing 1233 files from /opt/bamboo-elastic-agent 2014-09-10 07:30:27,014 INFO [main] [S3Utils] Fetching 255 files to /opt/bamboo-elastic-agent Exception in thread "main" org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1850391; received: 1116220 at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:138) at java.security.DigestInputStream.read(DigestInputStream.java:144) at java.io.FilterInputStream.read(FilterInputStream.java:116) at com.amazonaws.services.s3.internal.ChecksumValidatingInputStream.read(ChecksumValidatingInputStream.java:97) at java.io.FilterInputStream.read(FilterInputStream.java:116) at com.atlassian.aws.s3.S3Utils.fetch(S3Utils.java:304) at com.atlassian.aws.s3.S3Utils.doSync(S3Utils.java:284) at com.atlassian.aws.s3.S3Utils.sync(S3Utils.java:165) at com.atlassian.bamboo.agent.elastic.S3Sync.sync(S3Sync.java:72) at com.atlassian.bamboo.agent.elastic.installer.ElasticAgentInstaller.main(ElasticAgentInstaller.java:66) {code} If this happens agent is stuck in "pending" state and needs to be terminated manually.
    via by Marcin Gardias [Atlassian],
  • 开源中国(OSChina.NET)
    via by Unknown author,
    • org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1000888; received: 336271 at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:180) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at java.io.FilterInputStream.read(FilterInputStream.java:133) at java.io.FilterInputStream.read(FilterInputStream.java:107) at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:178) at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:73) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,