com.xerox.amazonws.ec2.EC2Exception: Client error : The instance ID 'i-cca241af' does not exist

Jenkins JIRA | David Kavanagh | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When using the ec2-plugin, we configured a connection to EC2 as well as a Eucalyptus cloud. When we tried some operations on the Eucalyptus cloud (specifically looking at logs of an instance or terminating an instance), we get an error; Jan 25, 2012 9:44:17 AM hudson.plugins.ec2.EC2Slave terminate WARNING: Failed to terminate EC2 instance: i-CCA241AF com.xerox.amazonws.ec2.EC2Exception: Client error : The instance ID 'i-cca241af' does not exist at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2359) at com.xerox.amazonws.ec2.Jec2.terminateInstances(Jec2.java:776) at hudson.plugins.ec2.EC2Slave.terminate(EC2Slave.java:95) at hudson.plugins.ec2.EC2Computer.doDoDelete(EC2Computer.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) Eucalyptus never generates this error message. I ran tests with euca2ools and typica to reproduce this error and supplying upper or lower case instance ids never caused this error to come back. Looking at the ec2-plugin code (EC2Cloud.java), there's a method get() which returns an EC2Cloud instance. The code will only retrieve a cloud of the class EC2Cloud which precluded having more than one cloud of that type registered. public static EC2Cloud get() { return Hudson.getInstance().clouds.get(EC2Cloud.class); } If the intention is to allow more than one cloud of a specific type to be used at the same time, this should be addressed.

    Jenkins JIRA | 5 years ago | David Kavanagh
    com.xerox.amazonws.ec2.EC2Exception: Client error : The instance ID 'i-cca241af' does not exist
  2. 0

    When using the ec2-plugin, we configured a connection to EC2 as well as a Eucalyptus cloud. When we tried some operations on the Eucalyptus cloud (specifically looking at logs of an instance or terminating an instance), we get an error; Jan 25, 2012 9:44:17 AM hudson.plugins.ec2.EC2Slave terminate WARNING: Failed to terminate EC2 instance: i-CCA241AF com.xerox.amazonws.ec2.EC2Exception: Client error : The instance ID 'i-cca241af' does not exist at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2359) at com.xerox.amazonws.ec2.Jec2.terminateInstances(Jec2.java:776) at hudson.plugins.ec2.EC2Slave.terminate(EC2Slave.java:95) at hudson.plugins.ec2.EC2Computer.doDoDelete(EC2Computer.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) Eucalyptus never generates this error message. I ran tests with euca2ools and typica to reproduce this error and supplying upper or lower case instance ids never caused this error to come back. Looking at the ec2-plugin code (EC2Cloud.java), there's a method get() which returns an EC2Cloud instance. The code will only retrieve a cloud of the class EC2Cloud which precluded having more than one cloud of that type registered. public static EC2Cloud get() { return Hudson.getInstance().clouds.get(EC2Cloud.class); } If the intention is to allow more than one cloud of a specific type to be used at the same time, this should be addressed.

    Jenkins JIRA | 5 years ago | David Kavanagh
    com.xerox.amazonws.ec2.EC2Exception: Client error : The instance ID 'i-cca241af' does not exist

    Root Cause Analysis

    1. com.xerox.amazonws.ec2.EC2Exception

      Client error : The instance ID 'i-cca241af' does not exist

      at com.xerox.amazonws.ec2.Jec2.makeRequestInt()
    2. com.xerox.amazonws
      Jec2.terminateInstances
      1. com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2359)
      2. com.xerox.amazonws.ec2.Jec2.terminateInstances(Jec2.java:776)
      2 frames
    3. hudson.plugins.ec2
      EC2Computer.doDoDelete
      1. hudson.plugins.ec2.EC2Slave.terminate(EC2Slave.java:95)
      2. hudson.plugins.ec2.EC2Computer.doDoDelete(EC2Computer.java:103)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames