Jenkins ——The server rejected the connection

啓動agent時,報如下錯誤:

 

信息: Protocol JNLP4-connect encountered an unexpected exception
java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
nnectionRefusalException: Connection closed before acknowledgement sent
        at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:223)
        at hudson.remoting.Engine.innerRun(Engine.java:614)
        at hudson.remoting.Engine.run(Engine.java:474)
Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Conn
ection closed before acknowledgement sent
        at org.jenkinsci.remoting.protocol.impl.AckFilterLayer.onRecvClosed(AckF
ilterLayer.java:280)
        at org.jenkinsci.remoting.protocol.FilterLayer.abort(FilterLayer.java:164)
        at org.jenkinsci.remoting.protocol.impl.AckFilterLayer.access$000(AckFilterLayer.java:43)
        at org.jenkinsci.remoting.protocol.impl.AckFilterLayer$1.run(AckFilterLa
yer.java:176)
        at org.jenkinsci.remoting.protocol.IOHub$DelayedRunnable.run(IOHub.java:964)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
        at hudson.remoting.Engine$1$$Lambda$3/167135.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:745)
六月 17, 2019 8:21:50 下午 hudson.remoting.jnlp.Main$CuiListener status
信息: Connecting to 10.8.204.184:32828
六月 17, 2019 8:21:50 下午 hudson.remoting.jnlp.Main$CuiListener status
信息: Server reports protocol JNLP4-plaintext not supported, skipping
六月 17, 2019 8:21:50 下午 hudson.remoting.jnlp.Main$CuiListener status
信息: Server reports protocol JNLP3-connect not supported, skipping
六月 17, 2019 8:21:50 下午 hudson.remoting.jnlp.Main$CuiListener status
信息: Server reports protocol JNLP2-connect not supported, skipping
六月 17, 2019 8:21:50 下午 hudson.remoting.jnlp.Main$CuiListener status
信息: Server reports protocol JNLP-connect not supported, skipping
六月 17, 2019 8:21:50 下午 hudson.remoting.jnlp.Main$CuiListener error
嚴重: 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:675)
        at hudson.remoting.Engine.innerRun(Engine.java:639)
        at hudson.remoting.Engine.run(Engine.java:474)

解決辦法:
jenkins->系統管理->全局安全配置,勾選“Java Web Start Agent Protocol/3 ”

 

image.png

修改後查看了下運行記錄:
JNLP4連接失敗後,嘗試JNLP3,連接成功,而JNLP4爲什麼連接失敗還不曉得原因



作者:冰雪樹掛
鏈接:https://www.jianshu.com/p/6d1dc4a5c482
來源:簡書
著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章