Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15034

Elastic agents failing to upgrade

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.7.0
    • 5.6.2
    • None
    • None

    Description

      Elastic agents can fail with the following exception:

      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)
      

      If this happens agent is stuck in "pending" state and needs to be terminated manually.

      Attachments

        Issue Links

          Activity

            People

              pbruski Przemek Bruski
              mgardias Marcin Gardias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: