java.lang.IllegalStateException: Unknown instance terminated: i-cdcef210

Jenkins JIRA | jude vais | 6 months ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Scenario: I've created a fleet under clouds in jenkins config, and selected my spot request. test returns an error, which may or may not be related. the ids i've redacted all match the ids i see in the ec2 management console. The SpotFleetRequestId(s) sfr-<stuff> do not exist. (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSpotFleetRequestId.NotFound; Request ID: <other stuff> ) to test the plugin, i set it up with a max cluster size of 3, scaledown timeout of 15 minutes. the spot request capacity defaults to 1. expected: when the test job runs, two additional slaves are created, backed by new spot instances. everything runs fine until the job is done and the scaledown timeout hits, at which point the slaves are not removed. one or more may show disconnected, and the log begins to show errors: SEVERE: I/O error in channel i-cdcef210 Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ Caused by: at$PeekInputStream.readFully( at$BlockDataInputStream.readShort( at at<init>( at hudson.remoting.ObjectInputStreamEx.<init>( at at hudson.remoting.SynchronousCommandTransport$ SEVERE: Timer task hudson.slaves.ComputerRetentionWork@5654d212 failed java.lang.IllegalStateException: Unknown instance terminated: i-cdcef210 at at at at hudson.slaves.ComputerRetentionWork$ at hudson.model.Queue._withLock( at hudson.model.Queue.withLock( at hudson.slaves.ComputerRetentionWork.doRun( at at java.util.concurrent.Executors$ at java.util.concurrent.FutureTask.runAndReset( at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301( at java.util.concurrent.ScheduledThreadPoolExecutor$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at the second of those errors repeats until the slave is manually removed (which sometimes results in a jenkins stack trace in the UI with the same error), at which point the rest of the process is unblocked. the spot instances are terminated and the slaves are removed. the plugin is essentially nonfunctional in this state

    Jenkins JIRA | 6 months ago | jude vais
    java.lang.IllegalStateException: Unknown instance terminated: i-cdcef210
  2. 0

    [JIRA] (JENKINS-38115) spot instance slaves are not removed, blocks instance termination

    Google Groups | 6 months ago | (JIRA)
    java.lang.IllegalStateException: Unknown instance terminated: i-cdcef210
  3. 0

    [JIRA] (JENKINS-36242) Conflicts with ec2-plugin when there are dead spot fleet instances still registered

    Google Groups | 8 months ago | (JIRA)
    java.lang.IllegalStateException: Unknown instance terminated: i-1fa5d993
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can you update with latest code?

    GitHub | 3 months ago | adamenger
    java.lang.IllegalStateException: Unknown instance terminated: i-184fe180

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Unknown instance terminated: i-cdcef210

      3 frames
    3. Hudson
      1. hudson.slaves.ComputerRetentionWork$
      2. hudson.model.Queue._withLock(
      3. hudson.model.Queue.withLock(
      4. hudson.slaves.ComputerRetentionWork.doRun(
      5 frames
    4. Java RT
      1. java.util.concurrent.Executors$
      2. java.util.concurrent.FutureTask.runAndReset(
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
      4. java.util.concurrent.ScheduledThreadPoolExecutor$
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(
      6. java.util.concurrent.ThreadPoolExecutor$
      7 frames