Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75813

Unable to connect to Windows Agents after upgrade to 1935.v9b_77210472b_1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ec2-plugin
    • Jenkins Core version = 2.504.2
      EC2 plugin version = 1935.v9b_77210472b_1
      OS = Amazon Linux 2023

      Linux Agents are ok.

      Windows Agents fail with the following Agent logs:

      Jun 25, 2025 2:13:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: Launching instance: i-07f7d3c5ce73a862d
      Jun 25, 2025 2:13:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: bootstrap()
      Jun 25, 2025 2:13:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: Getting keypair...
      Jun 25, 2025 2:13:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: Using private key cloudops-labs-us-server (SHA-1 fingerprint 0e:70:46:1a:d4:2a:4a:ca:40:cb:bf:76:fd:4e:1a:92:0c:7e:ab:6e)
      Jun 25, 2025 2:13:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: Authenticating as jenkins
      Jun 25, 2025 2:13:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connecting to 10.194.2.216 on port 22, with timeout 10000.
      Jun 25, 2025 2:14:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: Failed to connect via ssh: DefaultConnectFuture[jenkins@/10.194.2.216:22]: Failed (ConnectException) to execute: Connection timed out.
      Jun 25, 2025 2:14:41 PM hudson.plugins.ec2.EC2Cloud
      INFO: Waiting for SSH to come up. Sleeping 5.
      Jun 25, 2025 2:14:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connecting to 10.194.2.216 on port 22, with timeout 10000.
      Jun 25, 2025 2:15:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Failed to connect via ssh: DefaultConnectFuture[jenkins@/10.194.2.216:22]: Failed (ConnectException) to execute: Connection timed out.
      Jun 25, 2025 2:15:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Waiting for SSH to come up. Sleeping 5.
      Jun 25, 2025 2:15:51 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connecting to 10.194.2.216 on port 22, with timeout 10000.
      Jun 25, 2025 2:15:51 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connected via SSH.
      Jun 25, 2025 2:15:52 PM hudson.plugins.ec2.EC2Cloud
      INFO: The instance EC2 (ec2-Castle US CoreFlow CI 2019) - Castle US CoreFlow CI 2019 (i-07f7d3c5ce73a862d) didn't print the host key. Expected a line starting with: "ecdsa-sha2-nistp256"
      Jun 25, 2025 2:15:52 PM hudson.plugins.ec2.EC2Cloud
      INFO: The SSH key (ecdsa-sha2-nistp256 a9:12:84:d2:56:e1:36:18:55:ed:e1:4f:2c:67:46:39) presented by the instance has not been found on the instance console. Cannot check the key but the connection to EC2 (ec2-Castle US CoreFlow CI 2019) - Castle US CoreFlow CI 2019 (i-07f7d3c5ce73a862d) is allowed
      Jun 25, 2025 2:15:52 PM hudson.plugins.ec2.EC2Cloud
      WARNING: Authentication failed. Trying again...
      Jun 25, 2025 2:16:22 PM hudson.plugins.ec2.EC2Cloud
      INFO: Authenticating as jenkins
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connecting to 10.194.2.216 on port 22, with timeout 10000.
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connected via SSH.
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connection allowed after the host key has been verified
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: connect fresh as root
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connecting to 10.194.2.216 on port 22, with timeout 10000.
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connected via SSH.
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connection allowed after the host key has been verified
      Jun 25, 2025 2:16:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Creating tmp directory (/tmp) if it does not exist
      
      
          Directory: C:\
      
      
      Mode                LastWriteTime         Length Name                                              
      ----                -------------         ------ ----                                              
      d-----        6/25/2025   2:16 PM                tmp                                               
      
      
      test : The term 'test' is not recognized as the name of a cmdlet, function, script file, or 
      operable program. Check the spelling of the name, or if a path was included, verify that the path 
      is correct and try again.
      At line:1 char:1
      + test -e ~/.hudson-run-init
      + ~~~~
          + CategoryInfo          : ObjectNotFound: (test:String) [], CommandNotFoundException
          + FullyQualifiedErrorId : CommandNotFoundException
       
      Jun 25, 2025 2:16:56 PM hudson.plugins.ec2.EC2Cloud
      INFO: Upload init script
      
      Failed to fetch more data. The page might no longer exist or you no longer have permission to see it. 

      Looks similar to https://issues.jenkins.io/browse/JENKINS-75187

            thoulen FABRIZIO MANFREDI
            mitekian M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: