Issue
-
ec2-plugin can create instances but doesn’t keep the ssh connection
-
You see a stacktrace like the one below:
Waiting for SSH to come up. Sleeping 5. Connecting to XX.XX.XX.XX on port 22, with timeout 10000. Waiting for SSH to come up. Sleeping 5. Connecting to XX.XX.XX.XX on port 22, with timeout 10000. Waiting for SSH to come up. Sleeping 5. Connecting to XX.XX.XX.XX on port 22, with timeout 10000.
Resolution
This usually happens because you have a HTTP Proxy Configuration under https://<JENKINS_URL>/pluginManager/advanced
that maybe you don’t need or you don’t really want to use for the ec2-plugin.
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.