7

我从 Jenkins 站点获得了 Windows Native .zip,并将 Jenkins 作为 Windows 服务安装在我的机器(Win 7)上。

漂亮的仪表板已经启动,现在我想下载一些插件/甚至升级版本(第一个),因为几周前我得到了 .zip。

当我尝试升级/下载插件(在管理 Jenkins 下)时,我收到以下错误消息,知道我可能会丢失什么。

在插件的高级选项卡下,我提供了代理服务器和端口。另一点我注意到,当我下载一个显示插件 .hpi 文件链接的插件(并且它失败)时,如果我在 Internet Explorer 中使用该“http://../../.hpi”,它弹出很好(告诉我打开/保存等),所以从某种意义上说,我可以直接访问 .hpi 文件。我可以手动下载 .hpi 文件并将其放在 Jenkins 安装/..各自/../../文件夹下,并在每次安装新/替换现有 .hpi 时重新启动 Jenkins 服务,但我不想这样做那。

安装插件/升级

Preparation 

    Checking internet connectivity
    Checking update center connectivity
    java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:860) at hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:709) at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:1030) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 

jenkins.war 
Failure -

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/war/1.508/jenkins.war
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:782)
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1123)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1101)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
    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$6.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.getInputStream(Unknown Source)
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:752)
    ... 8 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
    at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
    at java.net.URLConnection.getContentLength(Unknown Source)
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:751)
    ... 8 more

Preparation 

    Checking internet connectivity
    Checking update center connectivity
    java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/update-center.json?uctest at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:860) at hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:709) at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:1030) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 

Timestamper 
Failure -

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/timestamper/1.5.3/timestamper.hpi
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:782)
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1123)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1285)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1101)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/download/plugins/timestamper/1.5.3/timestamper.hpi
    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$6.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.getInputStream(Unknown Source)
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:752)
    ... 9 more
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/download/plugins/timestamper/1.5.3/timestamper.hpi
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
    at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
    at java.net.URLConnection.getContentLength(Unknown Source)
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:751)
    ... 9 more
4

2 回答 2

12

由于我们的更新中心服务器不进行任何身份验证,因此从不返回 403,因此 403 错误很可能是由您的 HTTP 代理返回的。如果我是你,我会检查代理用户名和密码。

我们可能应该在您输入代理详细信息的配置页面中添加一个连接检查按钮。如果您愿意在https://issues.jenkins-ci.org/中将此作为票证提交,我将很高兴。

于 2013-04-02T07:54:31.747 回答
0

谢谢小介。问题是我使用带有http://proxyservername.com的代理主机名。

当我输入“proxyservername.com”时,它起作用了。我将打开一张票以获取“测试”代理连接按钮。如果(?)显示一个示例会很好,但我的不好。

于 2013-10-22T17:08:18.840 回答