java.io.IOException: Server returned HTTP response code: 403 for URL: https://get.docker.com/builds/Linux/x86_64/docker-latest

Jenkins JIRA | Allan BURDAJEWICZ | 5 months ago
  1. 0

    h3. Issue The automatic installer 'Install latest from docker.io' does not work for latest version of Docker. That is version >= 1.11 h3. Cause Binaries URLs have changed: https://docs.docker.com/v1.10/engine/installation/binaries/ https://docs.docker.com/engine/installation/binaries/ h3. Failure The installation fails with a 403: {code} 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 {code} h3. Source https://github.com/jenkinsci/docker-commons-plugin/blob/2d47584cd154eb06c7816c9d45b3293793230ff8/src/main/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstaller.java#L86

    Jenkins JIRA | 5 months ago | Allan BURDAJEWICZ
    java.io.IOException: Server returned HTTP response code: 403 for URL: https://get.docker.com/builds/Linux/x86_64/docker-latest
  2. 0

    h3. Issue The automatic installer 'Install latest from docker.io' does not work for latest version of Docker. That is version >= 1.11 h3. Cause Binaries URLs have changed: https://docs.docker.com/v1.10/engine/installation/binaries/ https://docs.docker.com/engine/installation/binaries/ h3. Failure The installation fails with a 403: {code} 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 {code} h3. Source https://github.com/jenkinsci/docker-commons-plugin/blob/2d47584cd154eb06c7816c9d45b3293793230ff8/src/main/java/org/jenkinsci/plugins/docker/commons/tools/DockerToolInstaller.java#L86

    Jenkins JIRA | 5 months ago | Allan BURDAJEWICZ
    java.io.IOException: Server returned HTTP response code: 403 for URL: https://get.docker.com/builds/Linux/x86_64/docker-latest
  3. 0

    How can I get Hudson to update through Proxy

    Stack Overflow | 7 years ago | Allen Rice
    java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-3350] Connect to update center via HTTP proxy that requires NTLM authentication - Jenkins JIRA

    jenkins-ci.org | 12 months ago
    java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden"
  6. 0

    Our company uses a proxy server that requires NTLM authentication for accessing the internet. We are running hudson on Windows XP. Even when I provide login and password in the "advanced" section of "manage plugins" I get: Preparation Checking internet connectivity Checking java.net connectivity java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1472) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:164) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1026) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:637) at hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:514) at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:677) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Cobertura Plugin Failure java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden" at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1345) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1339) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:993) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:563) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:754) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1472) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:164) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1026) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2107) at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579) at java.net.URLConnection.getContentLength(URLConnection.java:474) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:378) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:562) ... 7 more I have tried to prefix the login with the NT domain or not. It makes no difference. Googling around didn't provide any information about this issue. Someway hudson (java?) doesn't provide the right authentication information. Anyway we tried to deploy the same Hudson on Windows host where the logged user is allowed to access the internet through the proxy and it worked. Another interesting insight: we are running artifactory on the same host as the "failing" hudson. There you can provide login, password, and domain. In this case it works. So it seems that the issue is related in someway to the domain that seems not provided properly to the proxy server (BlueCoat). Any clues to push debugging further?

    Jenkins JIRA | 8 years ago | jmborer
    java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden"

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Java RT
      HttpsURLConnectionImpl.getContentLength
      1. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
      2. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
      3. sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2943)
      4. java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629)
      5. java.net.URLConnection.getContentLengthLong(URLConnection.java:501)
      6. java.net.URLConnection.getContentLength(URLConnection.java:485)
      7. sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:398)
      7 frames
    3. org.jvnet.robust_http_client
      RetryableHttpStream.<init>
      1. org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:90)
      2. org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:74)
      2 frames
    4. Hudson
      ProxyConfiguration.getInputStream
      1. hudson.ProxyConfiguration.getInputStream(ProxyConfiguration.java:247)
      1 frame
    5. org.jenkinsci.plugins
      DockerToolInstaller.performInstallation
      1. org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller.performInstallation(DockerToolInstaller.java:148)
      1 frame
    6. Hudson
      ToolInstallation.translateFor
      1. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
      2. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
      3. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
      3 frames
    7. org.jenkinsci.plugins
      DockerTool.getExecutable
      1. org.jenkinsci.plugins.docker.commons.tools.DockerTool.forNode(DockerTool.java:107)
      2. org.jenkinsci.plugins.docker.commons.tools.DockerTool.getExecutable(DockerTool.java:80)
      2 frames
    8. com.cloudbees.jenkins
      DockerBuildWrapper.decorateLauncher
      1. com.cloudbees.jenkins.plugins.docker_build_env.Docker.<init>(Docker.java:53)
      2. com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.decorateLauncher(DockerBuildWrapper.java:134)
      2 frames
    9. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:566)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492)
      3. hudson.model.Run.execute(Run.java:1738)
      4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      5. hudson.model.ResourceController.execute(ResourceController.java:98)
      6. hudson.model.Executor.run(Executor.java:410)
      6 frames