Why my EC2 Cloud is not launching agents

Issue

I have installed the EC2 plugin, and I have all the parameters correctly set, but my cloud is not launching agents. I can not launch the instance through the plugin, but I can do it manually using AWS console.

In the logs, I can see the following message

No existing instance found - but cannot create new instance

Environment

  • EC2 Plugin
  • CloudBees Jenkins Operations Center

Resolution

Due to the way that the plugin performs the calculations to determine if a new instance has to be launched, calculating the minimum between the available total Slaves and the available slaves for that AMI, it is possible that your instance will not be launched.

One of the factors that is taken into consideration for the calculations is the number of running AMIs using a given template. If you are using the same template on different Agent Clouds, it is more likely that you get into this kind of errors.

The best way to workaround this issue is to increase the Agent Cloud Capacity. This will generally solve the problem.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.