EC2 slaves are created and connected through ssh when a build is started but it goes offline after every 9-10 minutes with this error log.
      Jenkins - 2.7.4
      EC2 plugin 1.35
      E2 slave machine system:
      Groovy: 2.4.4
      Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
      JVM: 1.8.0_60 (Oracle Corporation 25.60-b23)
      OS: Linux 4.4.11-23.53.amzn1.x86_64 amd64

      SEVERE: I/O error in channel jenkins-roadrunner-linux-builder-slave (i-9fc2c187)
      java.io.IOException: Unexpected termination of the channel
              at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
      Caused by: java.io.EOFException
              at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2335)
              at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2804)
              at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:802)
              at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
              at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
              at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
              at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
      
      
      

          [JENKINS-38717] EC2 slave goes offline

          Francis Upton added a comment -

          Please try plugin version 1.36

          Francis Upton added a comment - Please try plugin version 1.36

          francisu it still happens with v 1.36
          The gradle build stops in between with "Agent went offline during the build" and with the error above. That error is too generic, I am not able to figure what's the root cause of it.

          deepanshu madan added a comment - francisu it still happens with v 1.36 The gradle build stops in between with "Agent went offline during the build" and with the error above. That error is too generic, I am not able to figure what's the root cause of it.

          and I verified its nothing with that particular build job, the ec2 slave just looses the ssh connection after around 10 minutes.

          deepanshu madan added a comment - and I verified its nothing with that particular build job, the ec2 slave just looses the ssh connection after around 10 minutes.

          Sajj Farahani added a comment -

          Was this ever solved deepanshu11madan? I'm having the same issue. I think it is something to do with the OS

          Sajj Farahani added a comment - Was this ever solved deepanshu11madan ? I'm having the same issue. I think it is something to do with the OS

            francisu Francis Upton
            deepanshu11madan deepanshu madan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: