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

Handle Elastic Agents that hang in "Pending" state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Low
    • None
    • None
    • None
    • None

    Description

      Bamboo Elastic Agent run in status "Pending" for 20 min, and after terminate without any jobs running.
      Via ssh it's available.
      Error in cinsole:
      014-05-30 13:38:58,517 INFO [main] [S3Sync] Syncing from: bamboo-agent-release-eu-w1/5.5-OD-04-0004/5330004dede7b4c9abdb34e94cf1a4ecb7b8b75d/ to /opt/bamboo-elastic-agent
      2014-05-30 13:38:59,618 INFO [main] [S3Utils] Syncing s3://bamboo-agent-release-eu-w1/5.5-OD-04-0004/5330004dede7b4c9abdb34e94cf1a4ecb7b8b75d/ to /opt/bamboo-elastic-agent
      2014-05-30 13:38:59,630 INFO [main] [S3Utils] Fetching the list of remote objects...
      2014-05-30 13:39:03,421 INFO [main] [S3Utils] Found 554 files in s3://bamboo-agent-release-eu-w1/5.5-OD-04-0004/5330004dede7b4c9abdb34e94cf1a4ecb7b8b75d/
      2014-05-30 13:39:03,555 INFO [main] [S3Utils] Found 379 files in /opt/bamboo-elastic-agent
      2014-05-30 13:39:03,555 INFO [main] [S3Utils] Generating the list of files to fetch from S3...
      2014-05-30 13:39:03,593 INFO [main] [S3Utils] Generating the list of files to remove...
      2014-05-30 13:39:03,595 INFO [main] [S3Utils] Removing 65 files from /opt/bamboo-elastic-agent
      2014-05-30 13:39:03,622 INFO [main] [S3Utils] Fetching 278 files to /opt/bamboo-elastic-agent
      Exception in thread "main" java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:422)
      at com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputRecord.java:534)
      at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:489)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:820)
      at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
      at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:187)
      at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:176)
      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 you manualy run as root elastic agent works.
      What's the reason of such behavior?

      Attachments

        Activity

          People

            Unassigned Unassigned
            a27c12279a7e MarynaIshchenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: