java.lang.IllegalStateException: One or more instances failed to launch.

Jenkins JIRA | Jonathan Harker | 4 years ago
  1. 0

    A simple job which creates a single jclouds instance then runs `echo` on that instance fails -- creating several nova instances on the account, none of which are listed in jenkins as nodes. The instance template uses a base ubuntu precise image, with Allow Sudo on and the following init script defined: #!/bin/bash apt-add-repository -y ppa:saltstack/salt apt-get -y update apt-get install -y build-essential apt-get install -y git apt-get install -y python-dev apt-get install -y python-novaclient apt-get install -y python-jinja2 apt-get install -y salt-master The console output is: Started by user anonymous [EnvInject] - Loading node environment variables. Building on master in workspace /var/lib/jenkins/jobs/create-salt-slave-az1/workspace Queuing cloud instance: #0 1, HPCS salt-az1 ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-348: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-768: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-98c: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-82: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-e93: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] FATAL: One or more instances failed to launch. java.lang.IllegalStateException: One or more instances failed to launch. at jenkins.plugins.jclouds.compute.internal.ProvisionPlannedInstancesAndDestroyAllOnError.apply(ProvisionPlannedInstancesAndDestroyAllOnError.java:81) at jenkins.plugins.jclouds.compute.JCloudsBuildWrapper.setUp(JCloudsBuildWrapper.java:93) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Jonathan Harker
    java.lang.IllegalStateException: One or more instances failed to launch.
  2. 0

    [JENKINS-16088] JClouds Plugin creates too many instances and fails to launch Jenkins slaves - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.lang.IllegalStateException: One or more instances failed to launch.
  3. 0

    A simple job which creates a single jclouds instance then runs `echo` on that instance fails -- creating several nova instances on the account, none of which are listed in jenkins as nodes. The instance template uses a base ubuntu precise image, with Allow Sudo on and the following init script defined: #!/bin/bash apt-add-repository -y ppa:saltstack/salt apt-get -y update apt-get install -y build-essential apt-get install -y git apt-get install -y python-dev apt-get install -y python-novaclient apt-get install -y python-jinja2 apt-get install -y salt-master The console output is: Started by user anonymous [EnvInject] - Loading node environment variables. Building on master in workspace /var/lib/jenkins/jobs/create-salt-slave-az1/workspace Queuing cloud instance: #0 1, HPCS salt-az1 ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-348: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-768: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-98c: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-82: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-e93: java.util.concurrent.ExecutionException: java.util.NoSuchElementException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] FATAL: One or more instances failed to launch. java.lang.IllegalStateException: One or more instances failed to launch. at jenkins.plugins.jclouds.compute.internal.ProvisionPlannedInstancesAndDestroyAllOnError.apply(ProvisionPlannedInstancesAndDestroyAllOnError.java:81) at jenkins.plugins.jclouds.compute.JCloudsBuildWrapper.setUp(JCloudsBuildWrapper.java:93) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Jonathan Harker
    java.lang.IllegalStateException: One or more instances failed to launch.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [jira] [Commented] (SPARK-2898) Failed to connect to daemon

    apache.org | 11 months ago
    java.lang.IllegalStateException: Python daemon failed to launch worker
  6. 0

    [SPARK-2898] Failed to connect to daemon - ASF JIRA

    apache.org | 11 months ago
    java.lang.IllegalStateException: Python daemon failed to launch worker

    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. java.lang.IllegalStateException

      One or more instances failed to launch.

      at jenkins.plugins.jclouds.compute.internal.ProvisionPlannedInstancesAndDestroyAllOnError.apply()
    2. jenkins.plugins.jclouds
      JCloudsBuildWrapper.setUp
      1. jenkins.plugins.jclouds.compute.internal.ProvisionPlannedInstancesAndDestroyAllOnError.apply(ProvisionPlannedInstancesAndDestroyAllOnError.java:81)
      2. jenkins.plugins.jclouds.compute.JCloudsBuildWrapper.setUp(JCloudsBuildWrapper.java:93)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.model.Build$BuildExecution.doRun(Build.java:154)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      3. hudson.model.Run.execute(Run.java:1502)
      4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      5. hudson.model.ResourceController.execute(ResourceController.java:88)
      6. hudson.model.Executor.run(Executor.java:236)
      6 frames