org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1850391; received: 1116220

Atlassian JIRA | Marcin Gardias [Atlassian] | 2 years ago
  1. 0

    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.

    Atlassian JIRA | 2 years ago | Marcin Gardias [Atlassian]
    org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1850391; received: 1116220
  2. 0

    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.

    Atlassian JIRA | 2 years ago | Marcin Gardias [Atlassian]
    org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1850391; received: 1116220
  3. 0

    Update to C12 fails - Genuitec

    genuitec.com | 1 year ago
    org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 5174558; received: 1422354
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Trying to install getting error

    GitHub | 2 months ago | DivyaGN
    org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 1000888; received: 336271
  6. 0

    org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body

    GitHub | 7 months ago | uncleGen
    org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 24368795; received: 8317227

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.http.ConnectionClosedException

      Premature end of Content-Length delimited message body (expected: 1850391; received: 1116220

      at org.apache.http.impl.io.ContentLengthInputStream.read()
    2. Apache Http
      ContentLengthInputStream.read
      1. org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
      1 frame
    3. Apache HttpClient
      EofSensorInputStream.read
      1. org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
      1 frame
    4. Java RT
      FilterInputStream.read
      1. java.security.DigestInputStream.read(DigestInputStream.java:144)
      2. java.io.FilterInputStream.read(FilterInputStream.java:116)
      2 frames
    5. AWS Java SDK for Amazon S3
      ChecksumValidatingInputStream.read
      1. com.amazonaws.services.s3.internal.ChecksumValidatingInputStream.read(ChecksumValidatingInputStream.java:97)
      1 frame
    6. Java RT
      FilterInputStream.read
      1. java.io.FilterInputStream.read(FilterInputStream.java:116)
      1 frame
    7. com.atlassian.aws
      S3Utils.sync
      1. com.atlassian.aws.s3.S3Utils.fetch(S3Utils.java:304)
      2. com.atlassian.aws.s3.S3Utils.doSync(S3Utils.java:284)
      3. com.atlassian.aws.s3.S3Utils.sync(S3Utils.java:165)
      3 frames
    8. com.atlassian.bamboo
      ElasticAgentInstaller.main
      1. com.atlassian.bamboo.agent.elastic.S3Sync.sync(S3Sync.java:72)
      2. com.atlassian.bamboo.agent.elastic.installer.ElasticAgentInstaller.main(ElasticAgentInstaller.java:66)
      2 frames