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

EC2 Plugin: EC2 instances are getting terminated right away on initializing in 1.44 version

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Fixed
    • ec2-plugin
    • None

    Description

      EC2 instances are getting terminated right away on initializing in 1.44 version

      Below is the error message
      Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
      INFO: Launching instance: i-0dedca71f82852276
      Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
      INFO: bootstrap()
      Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
      INFO: Getting keypair...
      Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
      INFO: Using private key jenkins-slave (SHA-1 fingerprint e7:f4)
      Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
      INFO: Authenticating as ec2-user
      Jun 25, 2019 3:49:23 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connecting to 10.188.11.241 on port 22, with timeout 10000.
      Jun 25, 2019 3:49:33 PM hudson.plugins.ec2.EC2Cloud
      INFO: Failed to connect via ssh: The kexTimeout (10000 ms) expired.
      Jun 25, 2019 3:49:33 PM hudson.plugins.ec2.EC2Cloud
      INFO: Waiting for SSH to come up. Sleeping 5.
      Jun 25, 2019 3:49:38 PM hudson.plugins.ec2.EC2Cloud
      INFO: Connected via SSH.
      Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Creating tmp directory (/tmp) if it does not exist
      Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Verifying: java -fullversion
      openjdk full version "1.8.0_201-b09"
      Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Verifying: which scp
      /usr/bin/scp
      Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Copying remoting.jar to: /tmp
      Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
      INFO: Launching remoting agent (via Trilead SSH2 Connection): java -jar /tmp/remoting.jar -workDir
      ERROR: unexpected stream termination
      java.io.EOFException: unexpected stream termination
      at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:415)
      at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:360)
      at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:431)
      at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:262)
      at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

       

      It's working fine in 1.43 version

      Attachments

        Issue Links

          Activity

            tapvir tapvir virk created issue -
            tapvir tapvir virk made changes -
            Field Original Value New Value
            Description EC2 instances are getting terminated right away on initializing in 1.44 version EC2 instances are getting terminated right away on initializing in 1.44 version

            Below is the error message
            java.io.EOFException: unexpected stream termination
            tapvir tapvir virk made changes -
            Description EC2 instances are getting terminated right away on initializing in 1.44 version

            Below is the error message
            java.io.EOFException: unexpected stream termination
            EC2 instances are getting terminated right away on initializing in 1.44 version

            Below is the error message
             java.io.EOFException: unexpected stream termination

             

            It's working fine in 1.43 version
            tapvir tapvir virk made changes -
            Description EC2 instances are getting terminated right away on initializing in 1.44 version

            Below is the error message
             java.io.EOFException: unexpected stream termination

             

            It's working fine in 1.43 version
            EC2 instances are getting terminated right away on initializing in 1.44 version

            Below is the error message
            Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
            INFO: Launching instance: i-0dedca71f82852276
            Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
            INFO: bootstrap()
            Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
            INFO: Getting keypair...
            Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
            INFO: Using private key jenkins-slave (SHA-1 fingerprint e7:f4)
            Jun 25, 2019 3:49:22 PM hudson.plugins.ec2.EC2Cloud
            INFO: Authenticating as ec2-user
            Jun 25, 2019 3:49:23 PM hudson.plugins.ec2.EC2Cloud
            INFO: Connecting to 10.188.11.241 on port 22, with timeout 10000.
            Jun 25, 2019 3:49:33 PM hudson.plugins.ec2.EC2Cloud
            INFO: Failed to connect via ssh: The kexTimeout (10000 ms) expired.
            Jun 25, 2019 3:49:33 PM hudson.plugins.ec2.EC2Cloud
            INFO: Waiting for SSH to come up. Sleeping 5.
            Jun 25, 2019 3:49:38 PM hudson.plugins.ec2.EC2Cloud
            INFO: Connected via SSH.
            Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
            INFO: Creating tmp directory (/tmp) if it does not exist
            Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
            INFO: Verifying: java -fullversion
            openjdk full version "1.8.0_201-b09"
            Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
            INFO: Verifying: which scp
            /usr/bin/scp
            Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
            INFO: Copying remoting.jar to: /tmp
            Jun 25, 2019 3:50:46 PM hudson.plugins.ec2.EC2Cloud
            INFO: Launching remoting agent (via Trilead SSH2 Connection): java -jar /tmp/remoting.jar -workDir
            ERROR: unexpected stream termination
            java.io.EOFException: unexpected stream termination
             at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:415)
             at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:360)
             at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:431)
             at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:262)
             at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
             at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
             at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
             at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
             at java.util.concurrent.FutureTask.run(FutureTask.java:266)
             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
             at java.lang.Thread.run(Thread.java:748)

             

            It's working fine in 1.43 version
            jvz Matt Sicker made changes -
            Comment [ Do you have more of a stack trace? ]
            raihaan Raihaan Shouhell made changes -
            Assignee Matt Sicker [ jvz ] Raihaan Shouhell [ raihaan ]
            raihaan Raihaan Shouhell made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            raihaan Raihaan Shouhell made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            thoulen FABRIZIO MANFREDI made changes -
            Link This issue blocks JENKINS-58163 [ JENKINS-58163 ]
            thoulen FABRIZIO MANFREDI made changes -
            Resolution Duplicate [ 3 ]
            Status In Review [ 10005 ] Closed [ 6 ]
            tapvir tapvir virk made changes -
            Resolution Duplicate [ 3 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            raihaan Raihaan Shouhell made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Fixed but Unreleased [ 10203 ]
            raihaan Raihaan Shouhell made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            raihaan Raihaan Shouhell made changes -
            Summary EC2 Plguin: EC2 instances are getting terminated right away on initializing in 1.44 version EC2 Plugin: EC2 instances are getting terminated right away on initializing in 1.44 version

            People

              raihaan Raihaan Shouhell
              tapvir tapvir virk
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: