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

Update site does not change where to download plugins

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Jenkins latest stable 2.160 on CentOS 7
      Tomcat v9.0

      Very similar to JENKINS-28157

      I changed the update-sites to update-center.json but it still tries to download plugins from 
      updates.jenkins-ci.org.

       

      ```

      Caused by: java.net.UnknownHostException: updates.jenkins-ci.org
      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:1944)
      at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1181)
      ... 7 more
      Caused by: java.net.UnknownHostException: updates.jenkins-ci.org
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:589)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
      at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
      at sun.net.www.http.HttpClient.New(HttpClient.java:339)
      at sun.net.www.http.HttpClient.New(HttpClient.java:357)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3000)
      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 hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1165)
      ... 7 more
      ```

        1. image-2021-10-01-17-21-02-709.png
          14 kB
          Suthakar Paul
        2. image-2021-10-01-17-21-58-758.png
          57 kB
          Suthakar Paul
        3. image-2021-10-01-17-22-29-381.png
          61 kB
          Suthakar Paul

          [JENKINS-55680] Update site does not change where to download plugins

          A recent change to our network now blocks all traffic over http so I setup Nexus to mirror the Jenkins plugin site and configured it in Jenkins. 

          While Jenkins is able to pull in the latest updates.json from Nexus it still tries to download the plugins from http://updates.jenkins-ci.org, which is blocked by our firewall. 

          Oliver Pereira added a comment - A recent change to our network now blocks all traffic over http so I setup Nexus to mirror the Jenkins plugin site and configured it in Jenkins.  While Jenkins is able to pull in the latest updates.json from Nexus it still tries to download the plugins from http://updates.jenkins-ci.org,  which is blocked by our firewall. 

          Mark Waite added a comment -

          As of August 2020, Jenkins update center now delivers plugins with HTTPS.

          Mark Waite added a comment - As of August 2020, Jenkins update center now delivers plugins with HTTPS.

          Suthakar Paul added a comment -

          We are facing the same issue. We have a local repository https://XXXXX.org.com/artifactory/simple/jenkins-updates-generic/update-center.json. I configured this URL to the UPDATE SITE. However, when i tried to install a plugin, it still routes the traffic to updates.jenkins.io. Is it not suppose to look for the plugin in the local repository?

           

           

          Suthakar Paul added a comment - We are facing the same issue. We have a local repository https://XXXXX.org.com/artifactory/simple/jenkins-updates-generic/update-center.json.  I configured this URL to the UPDATE SITE. However, when i tried to install a plugin, it still routes the traffic to updates.jenkins.io. Is it not suppose to look for the plugin in the local repository?    

          Mark Waite added a comment -

          I believe that Jenkins reads the contents of the update-center.json file and uses the URL's that it reads from the JSON file to retrieve the plugins. Have you replaced all the references to updates.jenkins.io and get.jenkins.io in the update-center.json file on your local copy?

          Mark Waite added a comment - I believe that Jenkins reads the contents of the update-center.json file and uses the URL's that it reads from the JSON file to retrieve the plugins. Have you replaced all the references to updates.jenkins.io and get.jenkins.io in the update-center.json file on your local copy?

            Unassigned Unassigned
            legendt Wensheng Tang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: