Docker: install-plugins.sh: Some plugins failed to download! Not downloaded: credentials

Created on 22 Feb 2017  路  10Comments  路  Source: jenkinsci/docker

I'm getting always the same error when I try to build a Dockerfile with some predefined plugins.

For example, you can try the Dockerfile example from the documentation:

FROM jenkins
RUN /usr/local/bin/install-plugins.sh docker-slaves github-branch-source:1.8

If I check the log, I see the following error:
Failed to download plugin: credentials or credentials-plugin

I get the same error if I try do install cloudbees-folder plugin.

It seems some kind of problem to download crendentials plugin (and cloudbees-folder). But if I go to the plugin url https://updates.jenkins.io/download/plugins/credentials/ I don't see any issue...

Most helpful comment

@jllado - you're not crazy, this happens to me every few times I build a container. I just think Jenkins has some really poor mirrors that are often not in sync. I'll get 404s and other errors when doing the build on various plugins frequently :(

All 10 comments

if all fail to download you probably have a dns issue

It not seems a dns issue. Only credentials download fails (well, and also cloudbees-folder plugin). I've tried from a different network and I got the same problem :-S.

The Dockerfile (from the documentation with predefined plugins) is working for you?

Here you are a full log:

Step 2/2 : RUN /usr/local/bin/install-plugins.sh docker-slaves github-branch-source:1.8
 ---> Running in dd7bc8970498
Creating initial locks...
Analyzing war...
Downloading plugins...
Downloading plugin: docker-slaves from https://updates.jenkins.io/download/plugins/docker-slaves/latest/docker-slaves.hpi
Downloading plugin: github-branch-source from https://updates.jenkins.io/download/plugins/github-branch-source/1.8/github-branch-source.hpi
 > github-branch-source depends on github-api:1.75,github:1.14.0,credentials:1.22,scm-api:1.2,git:2.3
Downloading plugin: github-api from https://updates.jenkins.io/download/plugins/github-api/latest/github-api.hpi
Downloading plugin: github from https://updates.jenkins.io/download/plugins/github/latest/github.hpi
Downloading plugin: credentials from https://updates.jenkins.io/download/plugins/credentials/latest/credentials.hpi
Downloading plugin: scm-api from https://updates.jenkins.io/download/plugins/scm-api/latest/scm-api.hpi
Downloading plugin: git from https://updates.jenkins.io/download/plugins/git/latest/git.hpi
 > docker-slaves depends on workflow-support:2.2;resolution:=optional,docker-commons:1.3.1,durable-task:1.12;resolution:=optional,workflow-step-ap
i:2.3;resolution:=optional
Skipping optional dependency workflow-support
Skipping optional dependency durable-task
Downloading plugin: docker-commons from https://updates.jenkins.io/download/plugins/docker-commons/latest/docker-commons.hpi
Skipping optional dependency workflow-step-api
Downloading plugin: credentials-plugin from https://updates.jenkins.io/download/plugins/credentials-plugin/latest/credentials-plugin.hpi
 > docker-commons depends on credentials:1.22,icon-shim:1.0.3,authentication-tokens:1.1
Downloading plugin: icon-shim from https://updates.jenkins.io/download/plugins/icon-shim/latest/icon-shim.hpi
Downloading plugin: authentication-tokens from https://updates.jenkins.io/download/plugins/authentication-tokens/latest/authentication-tokens.hpi
 > github depends on credentials:2.1.8,git:2.4.0,github-api:1.80,plain-credentials:1.1,scm-api:2.0.3,token-macro:1.11
Downloading plugin: plain-credentials from https://updates.jenkins.io/download/plugins/plain-credentials/latest/plain-credentials.hpi
Downloading plugin: token-macro from https://updates.jenkins.io/download/plugins/token-macro/latest/token-macro.hpi
Failed to download plugin: credentials or credentials-plugin
 > git depends on workflow-scm-step:1.14.2,credentials:2.1.8,git-client:2.1.0,mailer:1.18,matrix-project:1.7.1,promoted-builds:2.27;res[1506/1990]
tional,scm-api:2.0.3,ssh-credentials:1.12,token-macro:1.12.1;resolution:=optional,parameterized-trigger:2.4;resolution:=optional
Downloading plugin: workflow-scm-step from https://updates.jenkins.io/download/plugins/workflow-scm-step/latest/workflow-scm-step.hpi
Downloading plugin: git-client from https://updates.jenkins.io/download/plugins/git-client/latest/git-client.hpi
Downloading plugin: mailer from https://updates.jenkins.io/download/plugins/mailer/latest/mailer.hpi
Skipping optional dependency promoted-builds
Downloading plugin: matrix-project from https://updates.jenkins.io/download/plugins/matrix-project/latest/matrix-project.hpi
Skipping optional dependency token-macro
Downloading plugin: ssh-credentials from https://updates.jenkins.io/download/plugins/ssh-credentials/latest/ssh-credentials.hpi
Skipping optional dependency parameterized-trigger
 > authentication-tokens depends on credentials:1.22
 > plain-credentials depends on credentials:2.1.5
 > workflow-scm-step depends on workflow-step-api:1.15
Downloading plugin: workflow-step-api from https://updates.jenkins.io/download/plugins/workflow-step-api/latest/workflow-step-api.hpi
 > ssh-credentials depends on credentials:2.1.0
 > mailer depends on display-url-api:1.0
Downloading plugin: display-url-api from https://updates.jenkins.io/download/plugins/display-url-api/latest/display-url-api.hpi
 > matrix-project depends on junit:1.2,script-security:1.13
Downloading plugin: junit from https://updates.jenkins.io/download/plugins/junit/latest/junit.hpi
Downloading plugin: script-security from https://updates.jenkins.io/download/plugins/script-security/latest/script-security.hpi
 > git-client depends on ssh-credentials:1.12,structs:1.5
Downloading plugin: structs from https://updates.jenkins.io/download/plugins/structs/latest/structs.hpi
 > workflow-step-api depends on structs:1.5
 > display-url-api depends on junit:1.19
 > junit depends on structs:1.2

WAR bundled plugins:


Installed plugins:
authentication-tokens:1.3
display-url-api:1.1.1                                                                                                                  [1475/1990]
docker-commons:1.6
docker-slaves:1.0.6
git-client:2.2.1
git:3.0.5
github-api:1.84
github-branch-source:1.8
github:1.26.0
icon-shim:2.0.3
junit:1.20
mailer:1.19
matrix-project:1.8
plain-credentials:1.4
scm-api:2.0.7
script-security:1.26
ssh-credentials:1.13
structs:1.6
token-macro:2.0
workflow-scm-step:2.3
workflow-step-api:2.9
Some plugins failed to download! Not downloaded: credentials
The command '/bin/sh -c /usr/local/bin/install-plugins.sh docker-slaves github-branch-source:1.8' returned a non-zero code: 1

Sorry, now it works. I suppose it was some network issue... (although I tried it from different network and dns server 0_o)

@jllado - you're not crazy, this happens to me every few times I build a container. I just think Jenkins has some really poor mirrors that are often not in sync. I'll get 404s and other errors when doing the build on various plugins frequently :(

@jllado - you're not crazy, this happens to me every few times I build a container. I just think Jenkins has some really poor mirrors that are often not in sync. I'll get 404s and other errors when doing the build on various plugins frequently :(

This still seems the case in 2019.

I was getting this error and found I'd accidentally capitalized the plugin name in the dockerfile. Couldn't download "Cppcheck.hpi" because it was "cppcheck.hpi".

Same thing happening here in 2020! I am running this Docker build from a docker-compose command from Ansible inside a docker container (for testing). I've never had this problem when just building the Docker image without the in-between pieces, though.

Same thing happend to me right now. If it was run-condition.hpi or something like that, it is working now.

Same thing happening here in 2020! I am running this Docker build from a docker-compose command from Ansible inside a docker container (for testing). I've never had this problem when just building the Docker image without the in-between pieces, though.

Update: I determined that one of the plugins had a typo in the version. After fixing that - no issues.

I had problem that requested version file did not exist in that path. But then, I literally seen it become online between refreshes. Probably mirroring takes more time than expected.

Was this page helpful?
0 / 5 - 0 ratings