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

Tools download does not appear to respect proxy settings

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Solaris, Glassfish v2, hudson 1.336

      Description

      Our hudson install is behind a http proxy. Therefor I have setup a HTTP proxy under the advanced settings for the plugin manager. Plugins download fine, but when using the auto download and install tools the proxy appears not to be used.

      Exception when trying to auto install JDK

      udson.util.IOException2: Failed to access https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u17-oth-JPR@CDS-CDS_Developer
      at hudson.tools.JDKInstaller.locateStage1(JDKInstaller.java:308)
      at hudson.tools.JDKInstaller.locate(JDKInstaller.java:278)
      at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:115)
      at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99)
      at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:155)
      at hudson.model.JDK.forNode(JDK.java:121)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:657)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:77)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:577)
      at hudson.model.Build$RunnerImpl.build(Build.java:165)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:133)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      at hudson.model.Run.run(Run.java:1176)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:123)
      Caused by: java.net.NoRouteToHostException: No route to host
      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:494)
      at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1225)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1219)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:906)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
      at hudson.tools.JDKInstaller.locateStage1(JDKInstaller.java:296)
      ... 18 more
      Caused by: java.net.NoRouteToHostException: No route to host
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.Socket.connect(Socket.java:520)
      at java.net.Socket.connect(Socket.java:470)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
      at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278)
      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1923)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderField(HttpsURLConnectionImpl.java:271)
      at hudson.tools.JDKInstaller.locateStage1(JDKInstaller.java:290)
      ... 18 more

      And the exception from installing maven
      java.net.NoRouteToHostException: No route to host
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.Socket.connect(Socket.java:520)
      at java.net.Socket.connect(Socket.java:470)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
      at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
      at sun.net.www.http.HttpClient.New(HttpClient.java:304)
      at sun.net.www.http.HttpClient.New(HttpClient.java:321)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
      at hudson.FilePath.installIfNecessaryFrom(FilePath.java:537)
      at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:72)
      at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99)
      at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:155)
      at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:499)
      at hudson.tasks.Maven.perform(Maven.java:239)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:577)
      at hudson.model.Build$RunnerImpl.build(Build.java:165)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:133)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      at hudson.model.Run.run(Run.java:1176)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:123)

        Issue Links

          Activity

          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1133
          [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings.
          JENKINS-5271 https wants to join the party

          Kohsuke Kawaguchi : 9207c21f37228f59199184cd668d0d81d88feaeb
          Files :

          • core/src/main/java/hudson/FilePath.java
          • core/src/main/java/hudson/ProxyConfiguration.java

          Kohsuke Kawaguchi : beb166680e9320e2aa05aa44567345fca912b570
          Files :

          • core/src/main/java/hudson/FilePath.java
          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1133 [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings. JENKINS-5271 https wants to join the party Kohsuke Kawaguchi : 9207c21f37228f59199184cd668d0d81d88feaeb Files : core/src/main/java/hudson/FilePath.java core/src/main/java/hudson/ProxyConfiguration.java Kohsuke Kawaguchi : beb166680e9320e2aa05aa44567345fca912b570 Files : core/src/main/java/hudson/FilePath.java changelog.html
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          core/src/main/java/hudson/FilePath.java
          core/src/main/java/hudson/ProxyConfiguration.java
          http://jenkins-ci.org/commit/jenkins/9207c21f37228f59199184cd668d0d81d88feaeb
          Log:
          [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: core/src/main/java/hudson/FilePath.java core/src/main/java/hudson/ProxyConfiguration.java http://jenkins-ci.org/commit/jenkins/9207c21f37228f59199184cd668d0d81d88feaeb Log: [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/FilePath.java
          http://jenkins-ci.org/commit/jenkins/beb166680e9320e2aa05aa44567345fca912b570
          Log:
          JENKINS-5271 https wants to join the party

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/beb166680e9320e2aa05aa44567345fca912b570 Log: JENKINS-5271 https wants to join the party
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          core/src/main/java/hudson/FilePath.java
          core/src/main/java/hudson/ProxyConfiguration.java
          http://jenkins-ci.org/commit/jenkins/9db0b51c1605f91ba17694a8f34746bdf0a3369d
          Log:
          [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings.
          (cherry picked from commit 9207c21f37228f59199184cd668d0d81d88feaeb)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: core/src/main/java/hudson/FilePath.java core/src/main/java/hudson/ProxyConfiguration.java http://jenkins-ci.org/commit/jenkins/9db0b51c1605f91ba17694a8f34746bdf0a3369d Log: [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings. (cherry picked from commit 9207c21f37228f59199184cd668d0d81d88feaeb)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          core/src/main/java/hudson/FilePath.java
          http://jenkins-ci.org/commit/jenkins/cfa6eabe7409aae89a2c701ddeee42c978e654c0
          Log:
          JENKINS-5271 https wants to join the party

          Cherry-picked-from: beb166680e9320e2aa05aa44567345fca912b570

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/cfa6eabe7409aae89a2c701ddeee42c978e654c0 Log: JENKINS-5271 https wants to join the party Cherry-picked-from: beb166680e9320e2aa05aa44567345fca912b570

            People

            • Assignee:
              Unassigned
              Reporter:
              lynggaard lynggaard
            • Votes:
              12 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: