jenkins - 无法下载和安装插件(多个 scm) - 连接超时

问题描述 投票:0回答:5

我正在尝试添加多个 SCM 插件,并收到以下连接超时错误。我运行的是2.0版本。没有代理设置。
有没有办法获取插件并手动安装?谢谢。

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/multiple-scms/0.6/multiple-scms.hpi (redirected to: http://mirrors.jenkins-ci.org/plugins/multiple-scms/0.6/multiple-scms.hpi)
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1153)
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1650)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1848)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1624)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: connect timed out
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1105)
    ... 7 more
Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    ... 7 more
jenkins
5个回答
8
投票

您可以在浏览器中下载它或在终端中使用wget:

wget http://updates.jenkins-ci.org/download/plugins/multiple-scms/0.6/multiple-scms.hpi

然后转到: Jenkins 经理 > 插件管理器 > 高级选项卡

向下滚动到上传插件部分,单击选择文件以选择下载的 hpi 文件,然后按上传。之后重新启动詹金斯。

我可以在这里毫无问题地下载 hpi 插件,所以这可能是网络问题。


7
投票

http://mirrors.jenkins-ci.org/plugins/multiple-scms/0.6/multiple-scms.hpi
下载插件并将其放入
$JENKINS_HOME/plugins
目录中并重新启动jenkins。


3
投票

我今天遇到了这个问题。事实证明,问题是镜子没有反应。下面是一个网页,用于检查哪些镜像正在工作,哪些没有:

http://mirrors.jenkins-ci.org/status.html


0
投票

发生这种情况的原因可能是詹金斯服务器关闭。解决方法?没什么...只需稍等一下(1-2小时)即可恢复


0
投票

所以当我尝试安装任何插件时,我遇到了这个错误,我做了一些事情,我什至卸载了jenkins并再次安装了它(因为到目前为止还没有完成安装工作),现在经过6个小时经过努力,它自行修复了。

我所做的网址更改使我的詹金斯非常慢,我认为这与詹金斯服务器有关。所以我的意见就这样吧。

© www.soinside.com 2019 - 2024. All rights reserved.