在尝试安装GIT插件时,它会继续失败。
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
无法找到依赖的结构文件。请建议。
答案 0 :(得分:2)
第一个错误看起来与Jenkins更新服务器的连接有问题,可能是由于防火墙问题:
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
这很烦人,因为如果从更新中心安装,Jenkins会自动为您安装依赖项。您可以尝试下载结构插件的.hpi,但随后可能会发现更多缺少的依赖项。
答案 1 :(得分:0)
在这里下载structs.hpi: http://updates.jenkins-ci.org/download/plugins/structs/1.3/structs.hpi 并使用pluginManager手动上传 - 高级, 重新启动jenkins服务器,再次检查日志或检查已安装的插件pluginManager - 已安装