Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36082

Automatic installer fails for Docker 1.11 and latest

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Issue

      The automatic installer 'Install latest from docker.io' does not work for latest version of Docker. That is version >= 1.11

      Cause

      Binaries URLs have changed:

      https://docs.docker.com/v1.10/engine/installation/binaries/
      https://docs.docker.com/engine/installation/binaries/

      Failure

      The installation fails with a 403:

      Downloading Docker client latest
      FATAL: Server returned HTTP response code: 403 for URL: https://get.docker.com/builds/Linux/x86_64/docker-latest
      java.io.IOException: Server returned HTTP response code: 403 for URL: https://get.docker.com/builds/Linux/x86_64/docker-latest
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890)
      	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
      	at org.jvnet.robust_http_client.RetryableHttpStream.getStream(RetryableHttpStream.java:98)
      	at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:91)
      	at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:74)
      	at hudson.ProxyConfiguration.getInputStream(ProxyConfiguration.java:247)
      	at org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller.performInstallation(DockerToolInstaller.java:148)
      	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
      	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
      	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
      	at org.jenkinsci.plugins.docker.commons.tools.DockerTool.forNode(DockerTool.java:107)
      	at org.jenkinsci.plugins.docker.commons.tools.DockerTool.getExecutable(DockerTool.java:80)
      	at com.cloudbees.jenkins.plugins.docker_build_env.Docker.<init>(Docker.java:53)
      	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.decorateLauncher(DockerBuildWrapper.java:134)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:566)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://get.docker.com/builds/Linux/x86_64/docker-latest
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
      	at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2943)
      	at java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629)
      	at java.net.URLConnection.getContentLengthLong(URLConnection.java:501)
      	at java.net.URLConnection.getContentLength(URLConnection.java:485)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:398)
      	at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:90)
      	... 16 more
      Finished: FAILURE
      

      Source

      https://github.com/jenkinsci/docker-commons-plugin/blob/2d47584cd154eb06c7816c9d45b3293793230ff8/src/main/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstaller.java#L86

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            AFAICT the original URLs do not work since they now offer a *.tgz package that includes various binaries as well as the client docker/docker.

            Show
            jglick Jesse Glick added a comment - AFAICT the original URLs do not work since they now offer a *.tgz package that includes various binaries as well as the client docker/docker .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstaller.java
            src/main/resources/org/jenkinsci/plugins/docker/commons/tools/Messages.properties
            src/test/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstallerTest.java
            http://jenkins-ci.org/commit/docker-commons-plugin/dc2fd7547223d006f88c4998a518fcb3f6fd5c42
            Log:
            [FIXED JENKINS-36082] [FIXED JENKINS-32790] DockerToolInstaller was broken.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstaller.java src/main/resources/org/jenkinsci/plugins/docker/commons/tools/Messages.properties src/test/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstallerTest.java http://jenkins-ci.org/commit/docker-commons-plugin/dc2fd7547223d006f88c4998a518fcb3f6fd5c42 Log: [FIXED JENKINS-36082] [FIXED JENKINS-32790] DockerToolInstaller was broken.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstaller.java
            src/main/resources/org/jenkinsci/plugins/docker/commons/tools/Messages.properties
            src/test/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstallerTest.java
            http://jenkins-ci.org/commit/docker-commons-plugin/92dbbf9ceb2abff86ff9fe4653132d467400d407
            Log:
            Merge pull request #53 from jglick/DockerToolInstaller

            JENKINS-36082 JENKINS-32790 DockerToolInstaller was broken

            Compare: https://github.com/jenkinsci/docker-commons-plugin/compare/004cc344caaf...92dbbf9ceb2a

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstaller.java src/main/resources/org/jenkinsci/plugins/docker/commons/tools/Messages.properties src/test/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstallerTest.java http://jenkins-ci.org/commit/docker-commons-plugin/92dbbf9ceb2abff86ff9fe4653132d467400d407 Log: Merge pull request #53 from jglick/DockerToolInstaller JENKINS-36082 JENKINS-32790 DockerToolInstaller was broken Compare: https://github.com/jenkinsci/docker-commons-plugin/compare/004cc344caaf...92dbbf9ceb2a

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                allan_burdajewicz Allan BURDAJEWICZ
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: