I have added an EC2 cloud with the intention of using Windows instances. The Windows AMI is configured to use SSH connection, not WinRM. When I provision a Windows instance, I see it starting in the AWS console, and I see this in the Jenkins console:
May 07, 2021 5:45:42 PM INFO hudson.plugins.ec2.EC2Cloud log Connecting to ec2-18-197-156-192.eu-central-1.compute.amazonaws.com on port 22, with timeout 10000. May 07, 2021 5:45:52 PM INFO hudson.plugins.ec2.EC2Cloud log Failed to connect via ssh: The kexTimeout (10000 ms) expired. May 07, 2021 5:45:52 PM INFO hudson.plugins.ec2.EC2Cloud log Waiting for SSH to come up. Sleeping 5. May 07, 2021 5:45:57 PM INFO hudson.plugins.ec2.EC2Cloud log Connecting to ec2-18-197-156-192.eu-central-1.compute.amazonaws.com on port 22, with timeout 10000. May 07, 2021 5:45:57 PM INFO hudson.plugins.ec2.EC2Cloud log Failed to connect via ssh: There was a problem while connecting to ec2-18-197-156-192.eu-central-1.compute.amazonaws.com:22 May 07, 2021 5:45:57 PM INFO hudson.plugins.ec2.EC2Cloud log Waiting for SSH to come up. Sleeping 5. (repeat many times) This is normal of course, as long as the instance is still starting. After a while, I see in the AWS console that the instance is Running. And immediately, it gets terminated. I also see this in the Jenkins log, which may or may not be relevant: May 07, 2021 5:50:52 PM INFO hudson.plugins.ec2.EC2OndemandSlave lambda$terminate$0 Terminated EC2 instance (terminated): i-0c82439628de13743 May 07, 2021 5:50:52 PM INFO hudson.plugins.ec2.EC2OndemandSlave lambda$terminate$0 Removed EC2 instance from jenkins master: i-0c82439628de13743 I may add more log snippets as I try to figure this out. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7a223f14-cd33-4722-9424-997158bb4fb8n%40googlegroups.com.
