• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ec2-plugin
    • None
    • Server Ubuntu 18.04.3 LTS
      Jenkins ver. 2.176.3
      Plugins
      Amazon EC2 plugin 1.45
      SSH Slaves 1.30.1
      Slaves:

      Hello,

         After upgrading jenkins from 2.164.3, to 2.176.3 and EC2 plugin to 1.45 EC2 slaves are disconnecting (intermittent disconnects) in the middle of builds with an EOFException.

       

      java.io.EOFException
       at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2681)
       at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3156)
       at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:862)
       at java.io.ObjectInputStream.<init>(ObjectInputStream.java:358)
       at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:49)
       at hudson.remoting.Command.readFrom(Command.java:140)
       at hudson.remoting.Command.readFrom(Command.java:126)
       at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:36)
       at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)
      Caused: java.io.IOException: Unexpected termination of the channel
       at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.

       

      I tried to make the rollback through the interface, but the problem continued.

          [JENKINS-59390] EC2 slave disconnects with EOFException

          I have the same issue, might want to check the logs of your master Jenkins, in mine I have:

          Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2RetentionStrategy internalCheck
          Idle timeout of [instance name] after 31 idle minutes, instance statusRUNNING
          Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2AbstractSlave idleTimeout
          EC2 instance idle time expired: i-07625ee50b5a21bde
          Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2OndemandSlave terminate
          Terminated EC2 instance (terminated): i-07625ee50b5a21bde
          Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2OndemandSlave terminate
          Removed EC2 instance from jenkins master: i-07625ee50b5a21bde

          So nodes are automatically disconnected after an idle timeout, I've raised a similar issue here: https://issues.jenkins-ci.org/browse/JENKINS-59579

          George Cimpoies added a comment - I have the same issue, might want to check the logs of your master Jenkins, in mine I have: Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2RetentionStrategy internalCheck Idle timeout of [instance name] after 31 idle minutes, instance statusRUNNING Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2AbstractSlave idleTimeout EC2 instance idle time expired: i-07625ee50b5a21bde Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2OndemandSlave terminate Terminated EC2 instance (terminated): i-07625ee50b5a21bde Oct 01, 2019 10:53:45 AM INFO hudson.plugins.ec2.EC2OndemandSlave terminate Removed EC2 instance from jenkins master: i-07625ee50b5a21bde So nodes are automatically disconnected after an idle timeout, I've raised a similar issue here:  https://issues.jenkins-ci.org/browse/JENKINS-59579

            thoulen FABRIZIO MANFREDI
            rogeriocolferai Rogério Colferai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: