无法在Mac服务器上的Jenkins中下载插件

时间:2018-08-17 22:40:37

标签: java jenkins macos-sierra

我们在办公室中有一台新的Mac服务器,并使用Homebrew安装了最新的Jenkins。

安装过程非常顺利,并且在下载插件的步骤中,它始终在下面显示消息:

java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
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:3393)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3386)
at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:77)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1148)
Caused: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/mock-slave/1.12/mock-slave.hpi to /Users/jenkins/.jenkins/plugins/mock-slave.jpi.tmp
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1153)
Caused: java.io.IOException: Failed to download from http://updates.jenkins-ci.org/download/plugins/mock-slave/1.12/mock-slave.hpi (redirected to: http://ftp-chi.osuosl.org/pub/jenkins/plugins/mock-slave/1.12/mock-slave.hpi)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1187)
at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1724)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1987)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1698)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112)
at java.lang.Thread.run(Thread.java:748)

为了进行故障排除,我还在Mac上安装了Jenkins,并且可以下载该插件而没有任何问题。

要讨论的一件事是,一旦我将链接http://updates.jenkins-ci.org/download/plugins/mock-slave/1.12/mock-slave.hpi粘贴到浏览器(Chrome,Firefox,Safari)上,它将显示一条错误消息,例如Failed to download

有人有同样的问题吗?

  • Jenkins版本:2.138
  • Java版本:1.8
  • Mac OS:High Sierra 10.13.6

0 个答案:

没有答案