【问题标题】:Jenkins Plugin failure errorJenkins插件失败错误
【发布时间】:2016-10-30 14:30:09
【问题描述】:

我在添加插件时收到失败消息,有人能告诉我为什么会出现此错误:

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/credentials/2.1.4/credentials.hpi (redirected to: http://ftp.tsukuba.wide.ad.jp/software/jenkins/plugins/credentials/2.1.4/credentials.hpi)
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:822)
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1184)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1365)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1162)
    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:110)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Inconsistent file length: expected 928684 but only got 884511
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:805)
    ... 7 more

【问题讨论】:

  • 请将错误信息缩进四个空格,以便在错误信息中保留换行符

标签: git jenkins jenkins-plugins jenkins-pipeline


【解决方案1】:

我也遇到过类似的问题。

我在 AWS EC2 上运行 Jenkins。我只是重新启动了实例,它就可以工作了!

【讨论】:

    【解决方案2】:

    这是由Jenkins redirects bug 引起的。我通过从重定向 url 手动下载 hpi 来安装此插件,然后将此 hpi 上传到管理插件 -> 高级 -> 上传插件。

    【讨论】:

      【解决方案3】:

      我也遇到了这个错误,很少有插件升级。

      解决方法是手动下载(该错误消息中应列出要下载的插件 jpi/hpi 文件链接)。即使手动下载它有时也会失败(对我来说,在 Firefox 中,所以我使用下载管理器或 IE 浏览器代替)。

      1. 下载后 - 将 *.hpi / *.jpi 文件保存到 $JENKINS_HOME/plugins 目录中。
      2. 重命名之前的插件,即使它有不同的扩展名(例如,下载 github.hpi,有了 github.jpi,我仍然将它重命名为 github.jpi.old)
      3. 重启 Jenkins(虽然有些插件不需要重启)

      【讨论】:

      • 我遇到了完全相同的问题,当我使用 wget 时,我注意到跟随重定向需要很长时间,有谁知道插件安装是否有超时设置可以调整。
      猜你喜欢
      • 2013-09-28
      • 2014-10-29
      • 1970-01-01
      • 2018-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多