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

slave unstable become online and offline

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Incomplete
    • Component/s: core, slave-status-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      after upgrading from 1.500 to 1.521

      slave unstable become online and offline with the rule "Take this slave on-line when in demand and off-line when idle".

      Sorry, i cant found any log, except

      JNLP agent connected from /<ip_address>
      <===[JENKINS REMOTING CAPACITY]===>
      This is a Unix slave
      Slave successfully connected and online
      ERROR: Connection terminated
      ha:AAAAWB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.net.SocketException: Socket closed
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
      at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
      at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at hudson.remoting.Command.readFrom(Command.java:92)
      at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:72)
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

      slave run on AIX, 6.1
      with the java 1.5 default, but 1.6 also installed.

      <slave>
      <name>4appt</name>
      <description></description>
      <remoteFS>/home/co/jenkins</remoteFS>
      <numExecutors>2</numExecutors>
      <mode>NORMAL</mode>
      <retentionStrategy class="hudson.slaves.RetentionStrategy$Demand">
      <inDemandDelay>1</inDemandDelay>
      <idleDelay>1</idleDelay>
      </retentionStrategy>
      <launcher class="hudson.slaves.CommandLauncher">
      <agentCommand>ssh co@<ip_address> "cd /home/co/jenkins && /usr/java6_64/jre/bin/java -Dfile.encoding=UTF-8 -jar slave.jar -jnlpUrl http://cpapp:10599/computer/4appt/slave-agent.jnlp -secret <hexamail_string>"</agentCommand>
      </launcher>
      <label></label>
      <nodeProperties>
      <hudson.slaves.EnvironmentVariablesNodeProperty>
      <envVars serialization="custom">
      <unserializable-parents/>
      <tree-map>
      <default>
      <comparator class="hudson.util.CaseInsensitiveComparator"/>
      </default>
      <int>2</int>
      <string>LANG</string>
      <string>RU_RU.UTF-8</string>
      <string>PATH</string>
      <string>/usr/java6_64/jre/bin/:/usr/java6_64/bin/:$PATH</string>
      </tree-map>
      </envVars>
      </hudson.slaves.EnvironmentVariablesNodeProperty>
      </nodeProperties>
      </slave>

      from http://SERVER/systemInfo:

      java.class.path jenkins.zip
      java.class.version 50.0
      java.endorsed.dirs /usr/java/jdk1.6.0_18/jre/lib/endorsed

      Please, request, if needed any additional information - I'll add it.

        Attachments

          Activity

          Hide
          alxgpb Alex Gnooshin added a comment -

          Jul 11, 2013 7:16:31 PM jenkins.slaves.JnlpSlaveAgentProtocol$Handler$1 onClosed
          WARNING: Channel reader thread: 4appt for + 4appt terminated
          java.net.SocketException: Socket closed
          at java.net.SocketInputStream.socketRead0(Native Method)
          at java.net.SocketInputStream.read(SocketInputStream.java:129)
          ...
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at hudson.remoting.Command.readFrom(Command.java:92)
          at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:72)
          at hudson.remoting.SynchronousCommandTransport$ReaderThread.run SynchronousCommandTransport.java:48)

          Show
          alxgpb Alex Gnooshin added a comment - Jul 11, 2013 7:16:31 PM jenkins.slaves.JnlpSlaveAgentProtocol$Handler$1 onClosed WARNING: Channel reader thread: 4appt for + 4appt terminated java.net.SocketException: Socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) ... at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:72) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run SynchronousCommandTransport.java:48)
          Hide
          danggrianto daniel anggrianto added a comment -

          our slaves were disconnected as well and this is the error log that we are getting

          Jul 15, 2013 5:51:29 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Terminated
          Jul 15, 2013 5:52:42 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Locating server among [http://mario.icims.net:8181/jenkins/]
          Jul 15, 2013 5:52:42 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to mario.icims.net:56232
          Jul 15, 2013 5:52:42 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Handshaking
          Jul 15, 2013 5:52:47 PM hudson.remoting.jnlp.Main$CuiListener error
          SEVERE: unexpected stream termination
          java.io.EOFException: unexpected stream termination
                          at hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:100)
                          at hudson.remoting.Channel.<init>(Channel.java:392)
                          at hudson.remoting.Channel.<init>(Channel.java:388)
                          at hudson.remoting.Channel.<init>(Channel.java:349)
                          at hudson.remoting.Channel.<init>(Channel.java:345)
                          at hudson.remoting.Channel.<init>(Channel.java:333)
                          at hudson.remoting.Engine.run(Engine.java:237)
          
          Jul 16, 2013 8:52:02 AM hudson.remoting.jnlp.Main$CuiListener <init>
          INFO: Jenkins agent is running in headless mode.
          
          Show
          danggrianto daniel anggrianto added a comment - our slaves were disconnected as well and this is the error log that we are getting Jul 15, 2013 5:51:29 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Jul 15, 2013 5:52:42 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http: //mario.icims.net:8181/jenkins/] Jul 15, 2013 5:52:42 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to mario.icims.net:56232 Jul 15, 2013 5:52:42 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Jul 15, 2013 5:52:47 PM hudson.remoting.jnlp.Main$CuiListener error SEVERE: unexpected stream termination java.io.EOFException: unexpected stream termination at hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:100) at hudson.remoting.Channel.<init>(Channel.java:392) at hudson.remoting.Channel.<init>(Channel.java:388) at hudson.remoting.Channel.<init>(Channel.java:349) at hudson.remoting.Channel.<init>(Channel.java:345) at hudson.remoting.Channel.<init>(Channel.java:333) at hudson.remoting.Engine.run(Engine.java:237) Jul 16, 2013 8:52:02 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode.
          Hide
          danielbeck Daniel Beck added a comment -

          Needs to be reproduced with recent Jenkins versions, with log excerpts from both Jenkins master and from the slave file system attached.

          If it happens again, please file a new issue so anyone investigating this doesn't confuse old and new information

          Show
          danielbeck Daniel Beck added a comment - Needs to be reproduced with recent Jenkins versions, with log excerpts from both Jenkins master and from the slave file system attached. If it happens again, please file a new issue so anyone investigating this doesn't confuse old and new information

            People

            • Assignee:
              Unassigned
              Reporter:
              alxgpb Alex Gnooshin
            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: