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

unable to start slave after installing version 2.27 on master + new 3.0 slave.jar on slave

    Details

    • Similar Issues:

      Description

      Hi,

      I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

      I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: CPRAN03 is not a JNLP agent" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

      C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
      r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
      cret "secretkey"
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
      INFO: Setting up slave: CPRAN03
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
      INFO: Jenkins agent is running in headless mode.
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Locating server among http://cpjen01:8090/
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Agent discovery successful
      Agent address: cpjen01
      Agent port: 49274
      Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Handshaking
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP4-connect
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

      Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
      lterLayer onRecv
      INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
      ed by remote: CPRAN03 is not a JNLP agent
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP4-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: CPRAN03 is not a JNLP agent
      at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
      3)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
      N03 is not a JNLP agent
      at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
      AbortCause(ConnectionHeadersFilterLayer.java:377)
      at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
      ecvClosed(ConnectionHeadersFilterLayer.java:432)
      at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
      olStack.java:832)
      at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
      java:287)
      at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
      d(SSLEngineFilterLayer.java:172)
      at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
      olStack.java:832)
      at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
      r.java:154)
      at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
      etworkLayer.java:48)
      at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
      tworkLayer.java:247)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)
      Suppressed: java.nio.channels.ClosedChannelException
      ... 7 more

      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Server reports protocol JNLP4-plaintext not supported, skipping
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP3-connect
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP3-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: JNLP3-connect: Master rejected connection:
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
      3-connect: Master rejected connection:
      at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
      Protocol3Handler.java:239)
      at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
      Protocol3Handler.java:123)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:162)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:158)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)

      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP2-connect
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP2-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: Server didn't accept the handshake:
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
      er didn't accept the handshake:
      at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
      Protocol2Handler.java:134)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:162)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:158)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)

      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP-connect
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: Server didn't accept the handshake:
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
      er didn't accept the handshake:
      at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
      Protocol1Handler.java:121)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:162)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:158)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)

      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
      SEVERE: The server rejected the connection: None of the protocols were accepted
      java.lang.Exception: The server rejected the connection: None of the protocols w
      ere accepted
      at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
      at hudson.remoting.Engine.innerRun(Engine.java:440)
      at hudson.remoting.Engine.run(Engine.java:280)

      Also, when I try to run the slave-agent.jnlp (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error as shown on attached image:

        Attachments

        1. Jenkins2.27_SystemLog.txt
          8 kB
        2. jnlp_slave.png
          jnlp_slave.png
          35 kB
        3. screenshot-1.png
          screenshot-1.png
          16 kB
        4. screenshot-2.png
          screenshot-2.png
          41 kB
        5. SlaveConfiguration.png
          SlaveConfiguration.png
          30 kB

          Issue Links

            Activity

            odklizec Pavel Kudrys created issue -
            odklizec Pavel Kudrys made changes -
            Field Original Value New Value
            Description Hi,

            I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

            I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

            {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
            r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
            cret "secretkey"
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
            INFO: Setting up slave: CPRAN03
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
            INFO: Jenkins agent is running in headless mode.
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Locating server among [http://cpjen01:8090/]
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Agent discovery successful
              Agent address: cpjen01
              Agent port: 49274
              Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Handshaking
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP4-connect
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

            Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
            lterLayer onRecv
            INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
            ed by remote: CPRAN03 is not a JNLP agent
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP4-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: CPRAN03 is not a JNLP agent
                    at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
            3)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
            N03 is not a JNLP agent
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
            AbortCause(ConnectionHeadersFilterLayer.java:377)
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
            ecvClosed(ConnectionHeadersFilterLayer.java:432)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
            java:287)
                    at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
            d(SSLEngineFilterLayer.java:172)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
            r.java:154)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
            etworkLayer.java:48)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
            tworkLayer.java:247)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)
                    Suppressed: java.nio.channels.ClosedChannelException
                            ... 7 more

            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Server reports protocol JNLP4-plaintext not supported, skipping
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP3-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP3-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: JNLP3-connect: Master rejected connection:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
            3-connect: Master rejected connection:
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:239)
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:123)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP2-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP2-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
            Protocol2Handler.java:134)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
            Protocol1Handler.java:121)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
            SEVERE: The server rejected the connection: None of the protocols were accepted
            java.lang.Exception: The server rejected the connection: None of the protocols w
            ere accepted
                    at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                    at hudson.remoting.Engine.innerRun(Engine.java:440)
                    at hudson.remoting.Engine.run(Engine.java:280)
            {quote}
            Hi,

            I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

            I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

            {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
            r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
            cret "secretkey"
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
            INFO: Setting up slave: CPRAN03
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
            INFO: Jenkins agent is running in headless mode.
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Locating server among [http://cpjen01:8090/]
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Agent discovery successful
              Agent address: cpjen01
              Agent port: 49274
              Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Handshaking
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP4-connect
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

            Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
            lterLayer onRecv
            INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
            ed by remote: CPRAN03 is not a JNLP agent
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP4-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: CPRAN03 is not a JNLP agent
                    at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
            3)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
            N03 is not a JNLP agent
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
            AbortCause(ConnectionHeadersFilterLayer.java:377)
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
            ecvClosed(ConnectionHeadersFilterLayer.java:432)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
            java:287)
                    at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
            d(SSLEngineFilterLayer.java:172)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
            r.java:154)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
            etworkLayer.java:48)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
            tworkLayer.java:247)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)
                    Suppressed: java.nio.channels.ClosedChannelException
                            ... 7 more

            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Server reports protocol JNLP4-plaintext not supported, skipping
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP3-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP3-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: JNLP3-connect: Master rejected connection:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
            3-connect: Master rejected connection:
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:239)
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:123)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP2-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP2-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
            Protocol2Handler.java:134)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
            Protocol1Handler.java:121)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
            SEVERE: The server rejected the connection: None of the protocols were accepted
            java.lang.Exception: The server rejected the connection: None of the protocols w
            ere accepted
                    at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                    at hudson.remoting.Engine.innerRun(Engine.java:440)
                    at hudson.remoting.Engine.run(Engine.java:280)
            {quote}

            Also, when I try to run slave-agent on given slave machine (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error
            odklizec Pavel Kudrys made changes -
            Attachment jnlp_slave.png [ 34490 ]
            odklizec Pavel Kudrys made changes -
            Description Hi,

            I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

            I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

            {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
            r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
            cret "secretkey"
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
            INFO: Setting up slave: CPRAN03
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
            INFO: Jenkins agent is running in headless mode.
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Locating server among [http://cpjen01:8090/]
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Agent discovery successful
              Agent address: cpjen01
              Agent port: 49274
              Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Handshaking
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP4-connect
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

            Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
            lterLayer onRecv
            INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
            ed by remote: CPRAN03 is not a JNLP agent
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP4-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: CPRAN03 is not a JNLP agent
                    at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
            3)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
            N03 is not a JNLP agent
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
            AbortCause(ConnectionHeadersFilterLayer.java:377)
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
            ecvClosed(ConnectionHeadersFilterLayer.java:432)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
            java:287)
                    at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
            d(SSLEngineFilterLayer.java:172)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
            r.java:154)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
            etworkLayer.java:48)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
            tworkLayer.java:247)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)
                    Suppressed: java.nio.channels.ClosedChannelException
                            ... 7 more

            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Server reports protocol JNLP4-plaintext not supported, skipping
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP3-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP3-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: JNLP3-connect: Master rejected connection:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
            3-connect: Master rejected connection:
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:239)
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:123)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP2-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP2-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
            Protocol2Handler.java:134)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
            Protocol1Handler.java:121)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
            SEVERE: The server rejected the connection: None of the protocols were accepted
            java.lang.Exception: The server rejected the connection: None of the protocols w
            ere accepted
                    at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                    at hudson.remoting.Engine.innerRun(Engine.java:440)
                    at hudson.remoting.Engine.run(Engine.java:280)
            {quote}

            Also, when I try to run slave-agent on given slave machine (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error
            Hi,

            I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

            I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

            {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
            r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
            cret "secretkey"
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
            INFO: Setting up slave: CPRAN03
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
            INFO: Jenkins agent is running in headless mode.
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Locating server among [http://cpjen01:8090/]
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Agent discovery successful
              Agent address: cpjen01
              Agent port: 49274
              Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Handshaking
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP4-connect
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

            Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
            lterLayer onRecv
            INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
            ed by remote: CPRAN03 is not a JNLP agent
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP4-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: CPRAN03 is not a JNLP agent
                    at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
            3)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
            N03 is not a JNLP agent
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
            AbortCause(ConnectionHeadersFilterLayer.java:377)
                    at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
            ecvClosed(ConnectionHeadersFilterLayer.java:432)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
            java:287)
                    at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
            d(SSLEngineFilterLayer.java:172)
                    at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
            olStack.java:832)
                    at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
            r.java:154)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
            etworkLayer.java:48)
                    at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
            tworkLayer.java:247)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)
                    Suppressed: java.nio.channels.ClosedChannelException
                            ... 7 more

            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Server reports protocol JNLP4-plaintext not supported, skipping
            Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP3-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP3-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: JNLP3-connect: Master rejected connection:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
            3-connect: Master rejected connection:
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:239)
                    at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
            Protocol3Handler.java:123)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP2-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP2-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
            Protocol2Handler.java:134)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Connecting to cpjen01:49274
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Trying protocol: JNLP-connect
            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
            INFO: Protocol JNLP-connect encountered an unexpected exception
            java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
            nnectionRefusalException: Server didn't accept the handshake:
                    at java.util.concurrent.FutureTask.report(Unknown Source)
                    at java.util.concurrent.FutureTask.get(Unknown Source)
                    at hudson.remoting.Engine.innerRun(Engine.java:415)
                    at hudson.remoting.Engine.run(Engine.java:280)
            Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
            er didn't accept the handshake:
                    at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
            Protocol1Handler.java:121)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:162)
                    at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
            JnlpProtocolHandler.java:158)
                    at java.util.concurrent.FutureTask.run(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at hudson.remoting.Engine$1$1.run(Engine.java:94)
                    at java.lang.Thread.run(Unknown Source)

            Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
            SEVERE: The server rejected the connection: None of the protocols were accepted
            java.lang.Exception: The server rejected the connection: None of the protocols w
            ere accepted
                    at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                    at hudson.remoting.Engine.innerRun(Engine.java:440)
                    at hudson.remoting.Engine.run(Engine.java:280)
            {quote}

            Also, when I try to run the slave-agent.jnlp (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error as shown on attached image:
             !jnlp_slave.png|thumbnail!
            oleg_nenashev Oleg Nenashev made changes -
            Component/s slave-setup-plugin [ 15929 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Giuseppe Landolfi [ peppe ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s core [ 15593 ]
            odklizec Pavel Kudrys made changes -
            Attachment Jenkins2.27_SystemLog.txt [ 34500 ]
            odklizec Pavel Kudrys made changes -
            Attachment SlaveConfiguration.png [ 34501 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-39252 [ JENKINS-39252 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-39246 [ JENKINS-39246 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-39246 [ JENKINS-39246 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-39252 [ JENKINS-39252 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is blocked by INFRA-962 [ INFRA-962 ]
            funeeldy marlene cote made changes -
            Attachment screenshot-1.png [ 34665 ]
            funeeldy marlene cote made changes -
            Comment [ I would try your suggestion about setting the jenkins.slaves.DefaultJnlpSlaveReceiver.disableStrictVerification System Property to true, but not sure how to do this???
            ]
            aeriq Eric Kim made changes -
            Comment [ Not sure if this is the same issue for you, but for me, I am running Windows 2012 Server Edition for my slaves. When I download the slave-agent.jnlp file, Windows automatically tags something to the file that says its unsafe. If you Right-Click on slave-agent.jnlp and click on "properties", you might see a button that says "Unblock". This means the file was tagged by Windows as unsafe because it came from outside, and so you need to click on the "Unblock" button. Then it will start working. ]
            funeeldy marlene cote made changes -
            Attachment screenshot-2.png [ 34765 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            thornto4 Ryan Thornton made changes -
            Link This issue is duplicated by JENKINS-41384 [ JENKINS-41384 ]

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                odklizec Pavel Kudrys
              • Votes:
                11 Vote for this issue
                Watchers:
                24 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: