com.amazonaws.AmazonClientException: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900)

Jenkins JIRA | Patrick Mihelich | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [JIRA] [ec2-plugin] (JENKINS-33890) Per-AMI launch timeout for SSH connection is not respected

    Google Groups | 1 year ago | mihelich@google.com (JIRA)
    com.amazonaws.AmazonClientException: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900)
  2. 0

    I have an AMI configured with "Launch Timeout in seconds" set to 180, but noticed that it took 900 seconds to timeout attempting to connect over SSH: {noformat} <SNIP> INFO: Failed to connect via ssh: The kexTimeout (10000 ms) expired. Mar 29, 2016 10:04:39 PM null INFO: Waiting for SSH to come up. Sleeping 5. Mar 29, 2016 10:04:44 PM null INFO: Connecting to ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com on port 22, with timeout 10000. Mar 29, 2016 10:04:54 PM null INFO: Failed to connect via ssh: The kexTimeout (10000 ms) expired. Mar 29, 2016 10:04:54 PM null INFO: Waiting for SSH to come up. Sleeping 5. ERROR: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900) com.amazonaws.AmazonClientException: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900) at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:315) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:126) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:100) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {noformat} I did have a different AMI with launch timeout of 900, so the "maximum timeout configured" was indeed 900. But this behavior is undocumented and quite strange. Either each AMI should use its own launch timeout, or the launch timeout should be a global property of the Cloud. I'm fine either way, though others may have use for per-AMI timeouts.

    Jenkins JIRA | 1 year ago | Patrick Mihelich
    com.amazonaws.AmazonClientException: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900)
  3. 0

    I have an AMI configured with "Launch Timeout in seconds" set to 180, but noticed that it took 900 seconds to timeout attempting to connect over SSH: {noformat} <SNIP> INFO: Failed to connect via ssh: The kexTimeout (10000 ms) expired. Mar 29, 2016 10:04:39 PM null INFO: Waiting for SSH to come up. Sleeping 5. Mar 29, 2016 10:04:44 PM null INFO: Connecting to ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com on port 22, with timeout 10000. Mar 29, 2016 10:04:54 PM null INFO: Failed to connect via ssh: The kexTimeout (10000 ms) expired. Mar 29, 2016 10:04:54 PM null INFO: Waiting for SSH to come up. Sleeping 5. ERROR: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900) com.amazonaws.AmazonClientException: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900) at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:315) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:126) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:100) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {noformat} I did have a different AMI with launch timeout of 900, so the "maximum timeout configured" was indeed 900. But this behavior is undocumented and quite strange. Either each AMI should use its own launch timeout, or the launch timeout should be a global property of the Cloud. I'm fine either way, though others may have use for per-AMI timeouts.

    Jenkins JIRA | 1 year ago | Patrick Mihelich
    com.amazonaws.AmazonClientException: Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [ec2-plugin] (JENKINS-34408) EC2 plugin repeatedly tries to provision an unresponsive slave

    Google Groups | 1 year ago | mihe...@google.com (JIRA)
    com.amazonaws.AmazonClientException: Timed out after 183 seconds of waiting for ssh to become available. (maximum timeout configured is 180)

    Root Cause Analysis

    1. com.amazonaws.AmazonClientException

      Timed out after 905 seconds of waiting for ssh to become available. (maximum timeout configured is 900)

      at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh()
    2. hudson.plugins.ec2
      EC2ComputerLauncher.launch
      1. hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:315)
      2. hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:126)
      3. hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:100)
      3 frames
    3. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253)
      1 frame
    4. jenkins.util
      ContextResettingExecutorService$2.call
      1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames