2016-08-25 139 views
2

嘗試安裝GIT插件時,它仍然失敗。Git安裝在Jenkins上失敗

java.io.IOException: Failed to download from http://updates.jenkins-ci.org/download/plugins/git-client/1.21.0/git-client.hpi 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:781) 
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1125) 
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1285) 
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1103) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104) 
    at java.lang.Thread.run(Thread.java:744) 
Caused by: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/git-client/1.21.0/git-client.hpi to /home/jenkins/jenkins/plugins/git-client.jpi.tmp 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:766) 
    ... 7 more 
Caused by: java.net.SocketException: Connection reset 
    at java.net.SocketInputStream.read(SocketInputStream.java:196) 
    at java.net.SocketInputStream.read(SocketInputStream.java:122) 
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) 
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) 
    at java.io.BufferedInputStream.read(BufferedInputStream.java:334) 
    at sun.net.www.MeteredStream.read(MeteredStream.java:134) 
    at java.io.FilterInputStream.read(FilterInputStream.java:133) 
    at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3053) 
    at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3047) 
    at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:77) 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:761) 

我甚至試圖下載Git插件和Git客戶端插件的.hpi文件並上傳它。它拋出了下面的錯誤。

java.io.IOException: Failed to dynamically deploy this plugin 
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1304) 
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1103) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104) 
    at java.lang.Thread.run(Thread.java:744) 
Caused by: java.io.IOException: Failed to install git-client plugin 
    at hudson.PluginManager.dynamicLoad(PluginManager.java:436) 
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1300) 
    ... 5 more 
Caused by: java.io.IOException: Dependency structs (1.3) doesn't exist 
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:488) 
    at hudson.PluginManager.dynamicLoad(PluginManager.java:426) 
    ... 6 more 

無法找到相關的結構文件。請建議。

回答

2

的第一個錯誤看起來像你有一個連接到詹金斯更新服務器的問題,可能是由於防火牆問題:

Caused by: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/git-client/1.21.0/git-client.hpi to /home/jenkins/jenkins/plugins/git-client.jpi.tmp 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:766) 
    ... 7 more 
Caused by: java.net.SocketException: Connection reset 
    at java.net.SocketInputStream.read(SocketInputStream.java:196) 

當你試圖直接安裝.hpi文件,你遇到了缺少插件依賴性:

Caused by: java.io.IOException: Dependency structs (1.3) doesn't exist 

這是煩人,因爲如果從更新中心安裝,詹金斯將自動爲您安裝依賴。您可以嘗試下載結構插件的.hpi,但您可能會發現更多缺失的依賴關係。

+0

我通過下載做了變通方法所有的依賴插件像結構體,junit,git客戶端,腳本安全,矩陣項目等等。但是我擔心如何克服這個問題。 – dildeepak

+0

如果您可以提供解決Jenkins更新服務器連接問題的步驟或一些建議,那將會很好。 – dildeepak

+0

最初,您可以嘗試訪問瀏覽器中的更新中心URL。我已經看到了一些關於SO的其他問題,表明該網站可能已經停機了一段時間。 –