3
,從錯誤存在:無法當我嘗試啓動我的詹金斯從開始詹金斯從
[04/14/17 17:22:06] [SSH] Checking java version of java
[04/14/17 17:22:06] [SSH] java -version returned 1.7.0_121.
[04/14/17 17:22:06] [SSH] Starting sftp client.
[04/14/17 17:22:06] [SSH] Copying latest slave.jar...
[04/14/17 17:22:06] [SSH] Copied 719,269 bytes.
Expanded the channel window size to 4MB
[04/14/17 17:22:06] [SSH] Starting slave process: cd "/home/jenkins" && java -jar slave.jar -text
<===[JENKINS REMOTING CAPACITY]===><===[HUDSON TRANSMISSION BEGINS]===channel started
Slave JVM has not reported exit code. Is it still running?
[04/14/17 17:22:11] Launch failed - cleaning up connection
ERROR: Connection terminated
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2625)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3100)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:854)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:350)
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)
Caused: java.io.IOException: Unexpected termination of the channel
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
[04/14/17 17:22:11] [SSH] Connection closed.
反正是有解決這一問題?我使用Google搜索,並使用Google搜索,但無法找到任何解決此問題的方法。
謝謝Olia。這確實是問題所在。 Jenkins應該在使用較舊的Java版本時實現一個很好的錯誤信息:(。 – Youri
不客氣,@Youri :)我同意你的觀點,因爲很多時候Jenkins很難找出問題的根源。我得出的結論是,在這種情況下最好的辦法是檢查https://issues.jenkins-ci.org是否存在任何可疑問題 – Olia
男孩,我們只是自己碰到了這個問題。我會喜歡一個明確的錯誤。該輸出的第一行使您認爲Java版本檢查沒有問題:「檢查Java版本的Java」... – Taytay