com.amazonaws.AmazonServiceException: The image id '[ami-8946a989]' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidAMIID.NotFound; Request ID: 5739d640-fce7-4adc-ae08-e2cb40360778)

Atlassian JIRA | Sultan Maiyaki [Atlassian] | 2 years ago
  1. 0

    The instance schedules so far works for most of the stock images like the "Unknown OS stock image" but this fails when the chose image is "Ubuntu Stock Image". The bamboo logs throws: {code} 2015-05-29 18:45:00,033 INFO [scheduler_Worker-1] [ElasticFunctionalityFacadeImpl] Adjusting elastic agents with schedule: com.atlassian.bamboo.agent.elastic.schedule.ElasticInstanceScheduleImpl@3f36a682[25296897,0 0/15 18-20 ? * *,com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl@5b50e640,EQUALS,1,true] 2015-05-29 18:45:00,033 INFO [scheduler_Worker-1] [ElasticFunctionalityFacadeImpl] Starting up 1 of 'Ubuntu stock image' elastic instances 2015-05-29 18:45:04,911 INFO [http-bio-10581-exec-16] [AccessLogFilter] admin GET http://localhost:10581/bamboo581/ajax/viewPlanUpdates.action?sinceSystemTime=1432896283920&lastProject= 65053kb 2015-05-29 18:45:06,370 INFO [scheduler_Worker-1] [ElasticFunctionalityFacadeImpl] Requested that new elastic instance be created for configuration: Ubuntu stock image / ami-8946a989 2015-05-29 18:45:06,376 INFO [elastic-pool-4-thread-1] [RemoteElasticInstanceEbsHelperImpl] Running non-BDM EBS handling code 2015-05-29 18:45:06,704 ERROR [elastic-pool-4-thread-1] [RemoteEC2InstanceImpl] EC2 instance order failed. com.amazonaws.AmazonServiceException: The image id '[ami-8946a989]' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidAMIID.NotFound; Request ID: 5739d640-fce7-4adc-ae08-e2cb40360778) at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1077) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:725) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:460) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:295) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:9823) at com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:4911) at com.atlassian.aws.ec2.caches.ImageCache.describeImages(ImageCache.java:43) at com.atlassian.aws.AWSAccountImpl.describeImages(AWSAccountImpl.java:645) at com.atlassian.aws.AWSAccountImpl.describeImage(AWSAccountImpl.java:639) at com.atlassian.aws.ec2.InstanceLauncherFactory.getBlockDeviceMappings(InstanceLauncherFactory.java:294) at com.atlassian.aws.ec2.InstanceLauncherFactory.access$300(InstanceLauncherFactory.java:41) at com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.getRunInstancesRequest(InstanceLauncherFactory.java:139) at com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.runInstance(InstanceLauncherFactory.java:114) at com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.call(InstanceLauncherFactory.java:101) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl.launchInstance(RemoteEC2InstanceImpl.java:462) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl.backgroundStart(RemoteEC2InstanceImpl.java:445) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl.access$200(RemoteEC2InstanceImpl.java:39) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl$1.run(RemoteEC2InstanceImpl.java:104) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl$CatchingRunnableDecorator.run(RemoteEC2InstanceImpl.java:84) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} *Note:* It appears this issue is happening when the region is *US EAST*. This works with other regions like *Asia Pacific (Tokyo)*

    Atlassian JIRA | 2 years ago | Sultan Maiyaki [Atlassian]
    com.amazonaws.AmazonServiceException: The image id '[ami-8946a989]' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidAMIID.NotFound; Request ID: 5739d640-fce7-4adc-ae08-e2cb40360778)
  2. 0

    The instance schedules so far works for most of the stock images like the "Unknown OS stock image" but this fails when the chose image is "Ubuntu Stock Image". The bamboo logs throws: {code} 2015-05-29 18:45:00,033 INFO [scheduler_Worker-1] [ElasticFunctionalityFacadeImpl] Adjusting elastic agents with schedule: com.atlassian.bamboo.agent.elastic.schedule.ElasticInstanceScheduleImpl@3f36a682[25296897,0 0/15 18-20 ? * *,com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl@5b50e640,EQUALS,1,true] 2015-05-29 18:45:00,033 INFO [scheduler_Worker-1] [ElasticFunctionalityFacadeImpl] Starting up 1 of 'Ubuntu stock image' elastic instances 2015-05-29 18:45:04,911 INFO [http-bio-10581-exec-16] [AccessLogFilter] admin GET http://localhost:10581/bamboo581/ajax/viewPlanUpdates.action?sinceSystemTime=1432896283920&lastProject= 65053kb 2015-05-29 18:45:06,370 INFO [scheduler_Worker-1] [ElasticFunctionalityFacadeImpl] Requested that new elastic instance be created for configuration: Ubuntu stock image / ami-8946a989 2015-05-29 18:45:06,376 INFO [elastic-pool-4-thread-1] [RemoteElasticInstanceEbsHelperImpl] Running non-BDM EBS handling code 2015-05-29 18:45:06,704 ERROR [elastic-pool-4-thread-1] [RemoteEC2InstanceImpl] EC2 instance order failed. com.amazonaws.AmazonServiceException: The image id '[ami-8946a989]' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidAMIID.NotFound; Request ID: 5739d640-fce7-4adc-ae08-e2cb40360778) at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1077) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:725) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:460) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:295) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:9823) at com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:4911) at com.atlassian.aws.ec2.caches.ImageCache.describeImages(ImageCache.java:43) at com.atlassian.aws.AWSAccountImpl.describeImages(AWSAccountImpl.java:645) at com.atlassian.aws.AWSAccountImpl.describeImage(AWSAccountImpl.java:639) at com.atlassian.aws.ec2.InstanceLauncherFactory.getBlockDeviceMappings(InstanceLauncherFactory.java:294) at com.atlassian.aws.ec2.InstanceLauncherFactory.access$300(InstanceLauncherFactory.java:41) at com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.getRunInstancesRequest(InstanceLauncherFactory.java:139) at com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.runInstance(InstanceLauncherFactory.java:114) at com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.call(InstanceLauncherFactory.java:101) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl.launchInstance(RemoteEC2InstanceImpl.java:462) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl.backgroundStart(RemoteEC2InstanceImpl.java:445) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl.access$200(RemoteEC2InstanceImpl.java:39) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl$1.run(RemoteEC2InstanceImpl.java:104) at com.atlassian.aws.ec2.RemoteEC2InstanceImpl$CatchingRunnableDecorator.run(RemoteEC2InstanceImpl.java:84) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} *Note:* It appears this issue is happening when the region is *US EAST*. This works with other regions like *Asia Pacific (Tokyo)*

    Atlassian JIRA | 2 years ago | Sultan Maiyaki [Atlassian]
    com.amazonaws.AmazonServiceException: The image id '[ami-8946a989]' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidAMIID.NotFound; Request ID: 5739d640-fce7-4adc-ae08-e2cb40360778)
  3. 0

    How to filter described images by name in DescribeImagesRequest?

    Stack Overflow | 4 years ago | ripper234
    com.amazonaws.AmazonServiceException: The filter 'Name' is invalid
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 41#135877614

    GitHub | 1 year ago | denis-yuen
    java.lang.RuntimeException: com.amazonaws.AmazonServiceException: The image id '[ami-4d883351]' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidAMIID.NotFound; Request ID: bb0a22a7-469e-43b7-9fb6-a29f96732f0d)
  6. 0

    runAndAwait doesn't handle intermittent aws errors

    GitHub | 2 years ago | joprice
    com.amazonaws.AmazonServiceException: The instance ID 'i-35ebdfce' does not exist (Service: AmazonEC2; Status Code: 400

  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 image id '[ami-8946a989]' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidAMIID.NotFound; Request ID: 5739d640-fce7-4adc-ae08-e2cb40360778)

    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
  3. AWS Java SDK for Amazon EC2
    AmazonEC2Client.describeImages
    1. com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:9823)
    2. com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:4911)
    2 frames
  4. com.atlassian.aws
    RemoteEC2InstanceImpl$CatchingRunnableDecorator.run
    1. com.atlassian.aws.ec2.caches.ImageCache.describeImages(ImageCache.java:43)
    2. com.atlassian.aws.AWSAccountImpl.describeImages(AWSAccountImpl.java:645)
    3. com.atlassian.aws.AWSAccountImpl.describeImage(AWSAccountImpl.java:639)
    4. com.atlassian.aws.ec2.InstanceLauncherFactory.getBlockDeviceMappings(InstanceLauncherFactory.java:294)
    5. com.atlassian.aws.ec2.InstanceLauncherFactory.access$300(InstanceLauncherFactory.java:41)
    6. com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.getRunInstancesRequest(InstanceLauncherFactory.java:139)
    7. com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.runInstance(InstanceLauncherFactory.java:114)
    8. com.atlassian.aws.ec2.InstanceLauncherFactory$AwsInstanceLauncher.call(InstanceLauncherFactory.java:101)
    9. com.atlassian.aws.ec2.RemoteEC2InstanceImpl.launchInstance(RemoteEC2InstanceImpl.java:462)
    10. com.atlassian.aws.ec2.RemoteEC2InstanceImpl.backgroundStart(RemoteEC2InstanceImpl.java:445)
    11. com.atlassian.aws.ec2.RemoteEC2InstanceImpl.access$200(RemoteEC2InstanceImpl.java:39)
    12. com.atlassian.aws.ec2.RemoteEC2InstanceImpl$1.run(RemoteEC2InstanceImpl.java:104)
    13. com.atlassian.aws.ec2.RemoteEC2InstanceImpl$CatchingRunnableDecorator.run(RemoteEC2InstanceImpl.java:84)
    13 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    7. java.lang.Thread.run(Thread.java:745)
    7 frames