| I'm receiving the following error when I dynamically deploy Jenkins slave pods to my Kubernetes cluster. I've tried jenkins.slaves.DefaultJnlpSlaveReceiver.disableStrictVerification=true to no effect I see the pods being created in Kubernetes, they just seem to fail to register to the master for some reason. Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to alter the behaviorjava -Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=true -cp /usr/share/jenkins/slave.jar hudson.remoting.jnlp.Main -headless -tunnel linux-jenkins-discovery.linux-jenkins.svc.cluster.local:50000 -url https://linuxjnks.rancher.sherwin.com/ -workDir /home/jenkins/ e7a8c4b7cb92f3058003fa78d23f5ce12f8f975849f20cccaf0075499d927148 jenkinsslav-rpcncAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main createEngineINFO: Setting up agent: jenkinsslav-rpcncAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener <init>INFO: Jenkins agent is running in headless mode.Aug 12, 2019 1:54:31 PM hudson.remoting.Engine startEngineINFO: Using Remoting version: 3.29Aug 12, 2019 1:54:31 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDirINFO: Using /home/jenkins/remoting as a remoting work directoryBoth error and output logs will be printed to /home/jenkins/remotingAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Locating server among https://linuxjnks.rancher.sherwin.com/Aug 12, 2019 1:54:31 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolveINFO: Remoting server accepts the following protocols: [JNLP-connect, Ping]Aug 12, 2019 1:54:31 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolveINFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability checkAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Agent discovery successfulAgent address: linux-jenkins-discovery.linux-jenkins.svc.cluster.localAgent port: 50000Identity: a8:7f:31:f3:34:10:14:cd:42:f2:21:24:82:47:d7:9cAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: HandshakingAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Connecting to linux-jenkins-discovery.linux-jenkins.svc.cluster.local:50000Aug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Server reports protocol JNLP4-connect not supported, skippingAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Server reports protocol JNLP4-plaintext not supported, skippingAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Protocol JNLP3-connect is not enabled, skippingAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Server reports protocol JNLP2-connect not supported, skippingAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Trying protocol: JNLP-connectAug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener statusINFO: Protocol JNLP-connect encountered an unexpected exceptionjava.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Server didn't accept the handshake:at java.util.concurrent.FutureTask.report(FutureTask.java:122)at java.util.concurrent.FutureTask.get(FutureTask.java:192)at hudson.remoting.Engine.innerRun(Engine.java:614)at hudson.remoting.Engine.run(Engine.java:474)Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Server didn't accept the handshake:at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(JnlpProtocol1Handler.java:123)at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(LegacyJnlpProtocolHandler.java:162)at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(LegacyJnlpProtocolHandler.java:158)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 hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)at java.lang.Thread.run(Thread.java:748)Aug 12, 2019 1:54:31 PM hudson.remoting.jnlp.Main$CuiListener errorSEVERE: The server rejected the connection: None of the protocols were acceptedjava.lang.Exception: The server rejected the connection: None of the protocols were acceptedat hudson.remoting.Engine.onConnectionRejected(Engine.java:682)at hudson.remoting.Engine.innerRun(Engine.java:639)at hudson.remoting.Engine.run(Engine.java:474) |