com.atlassian.aws.AWSException: Error when starting a new instance

Atlassian JIRA | Muhammad Fahd [Atlassian] | 1 year ago
  1. 0

    When starting a new instance Bamboo displays the message: *Failed to start elastic instances: Error when starting a new instance* *Cause:* Bamboo no longer automatically creates key pair. The following error appears in the log: {noformat} 2015-07-02 10:28:49.679017500 2015-07-02 10:28:49,678 INFO [scheduler_Worker-2] [ElasticRunningInstancesOptimizerImpl] AWS account has 0 elastic instances started by Bamboo server(s) and has 0 spot requests pending, 0 in total. Of these, Bamboo controls 0. 2015-07-02 10:28:50.102443500 2015-07-02 10:28:50,102 ERROR [scheduler_Worker-2] [ElasticInstancesMonitorJob] Failed to adjust the number of elastic agents. 2015-07-02 10:28:50.102445500 com.atlassian.aws.AWSException: Error when starting a new instance 2015-07-02 10:28:50.102445500 at com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacadeImpl.startupAgents(ElasticFunctionalityFacadeImpl.java:218) 2015-07-02 10:28:50.102446500 at com.atlassian.bamboo.agent.elastic.schedule.ElasticInstancesMonitorJob.execute(ElasticInstancesMonitorJob.java:50) 2015-07-02 10:28:50.102452500 at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 2015-07-02 10:28:50.102452500 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) 2015-07-02 10:28:50.102453500 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) 2015-07-02 10:28:50.102453500 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) 2015-07-02 10:28:50.102454500 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) 2015-07-02 10:28:50.102455500 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 2015-07-02 10:28:50.102455500 Caused by: com.amazonaws.AmazonServiceException: The key pair 'elasticbamboo' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidKeyPair.NotFound; Request ID: 662XXXX-1a90-XXXX-b2fe-565XXXXXXba) 2015-07-02 10:28:50.102458500 at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1077) 2015-07-02 10:28:50.102459500 at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:725) 2015-07-02 10:28:50.102459500 at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:460) 2015-07-02 10:28:50.102461500 at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:295) {noformat} *Workaround:* Manually create the keypair with name "elasticbamboo" in the AWS console for the region that your elastic instances are configured to start up in. Keep the private key file as Bamboo won't have it on server side. [Obtaining AWS Key Pair to access Amazon Elastic Instances|https://confluence.atlassian.com/display/CLOUDKB/Obtaining+AWS+Key+Pair+to+access+Amazon+Elastic+Instances] More info on [Amazon EC2 Key Pairs|http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair] *Update:* A fix is in testing stage and should be released soon to Bamboo Cloud.

    Atlassian JIRA | 1 year ago | Muhammad Fahd [Atlassian]
    com.atlassian.aws.AWSException: Error when starting a new instance
  2. 0

    How to delete record using primarykey in dynamodb

    Stack Overflow | 2 years ago | pudaykiran
    com.amazonaws.AmazonServiceException: The provided key element does not match the schema (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: NR1SVIM98PVPFNHUOL49EI4JPFVV4KQNSO5AEMVJF66Q9ASUAAJG) 10:02:18,739 ERROR [AccountRepository] deleteAccountByAccountId Error:The provided key element does not match the schema (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: NR1SVIM98PVPFNHUOL49EI4JPFVV4KQNSO5AEMVJF66Q9ASUAAJG) 10:02:18,739 DEBUG [AccountController] --------------deleteAccountByAccountId----------------END------------------
  3. 0

    AWS Developer Forums: How to use a query filter to check for ...

    amazon.com | 1 year ago
    com.amazonaws.AmazonServiceException: One or more parameter values were invalid: ComparisonOperator CONTAINS is not valid M AttributeValue type (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: CHIOME68L1HVGO81URD7CIOS6BVV4KQNSO5AEMVJF66Q9ASUAAJG)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception using OpenJDK 1.8.0_91

    GitHub | 7 months ago | hoegertn
    com.amazonaws.AmazonServiceException: Invalid date Wed, 27 Apr 2016 08:00:18 +00:00. It must be in one of the formats specified by HTTP RFC 2616 section 3.3.1 (Service: AmazonRoute53; Status Code: 400; Error Code: InvalidParameterValue; Request ID: 157db148-0c4e-11e6-8328-1f6b3c404b92)
  6. 0

    Count on secondary index causes missed key schema element

    GitHub | 2 years ago | peoplemerge
    com.amazonaws.AmazonServiceException: Query condition missed key schema element Activity (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: KD4364FBV747MPFBQALD9ONS17VV4KQNSO5AEMVJF66Q9ASUAAJG)

  1. aldrinleal 1 times, last 4 months ago
  2. tyson925 3 times, last 5 months ago
41 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. com.amazonaws.AmazonServiceException

    The key pair 'elasticbamboo' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidKeyPair.NotFound; Request ID: 662XXXX-1a90-XXXX-b2fe-565XXXXXXba)

    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse()
  2. AWS SDK for Java - Core
    AmazonHttpClient.execute
    1. com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1077)
    2. com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:725)
    3. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:460)
    4. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:295)
    4 frames