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

jenkins-plugin-manager-2.12.3.jar : Error getting update center json

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • jenkins version : 2.332.1
      OS : Linux xxx 2.6.32-754.41.2.el6.x86_64 #1 SMP Sat Jul 10 04:20:37 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux

      When I tri to update/downgrade un plugin, I have :

      (same thing vith list option...)

      Note : https://updates.jenkins.io/update-center.json?version=2.332.1 gives with firefox : "
      SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
      here my linux command :

      thanks, Michel

      java -jar jenkins-plugin-manager-2.12.3.jar --verbose --war /USR/jenkinsi/releases/jenkins/jenkins-LTS-2.332.1.war --jenkins-version 2.332.1 -d /VAR/jenkinsi/jenkins/plugins --plugins nested-view:1.19.2 deployit-plugin
      No .txt or .yaml file containing list of plugins to be downloaded entered.
      Plugin download location: /VAR/jenkinsi/jenkins/plugins
      No CLI option or environment variable set for update center, using default of https://updates.jenkins.io/update-center.json
      No CLI option or environment variable set for experimental update center, using default of https://updates.jenkins.io/experimental/update-center.json
      No CLI option or environment variable set for incrementals mirror, using default of https://repo.jenkins-ci.org/incrementals
      No CLI option or environment variable set for plugin info, using default of https://updates.jenkins.io/plugin-versions.json
      Will use war file: /USR/jenkinsi/releases/jenkins/jenkins-LTS-2.332.1.war
      
      Retrieving update center information
      Update center URL: https://updates.jenkins.io/update-center.json?version=2.332.1
      Cache miss for: update-center-2.332.1
      io.jenkins.tools.pluginmanager.impl.UpdateCenterInfoRetrievalException: Error getting update center json
       at io.jenkins.tools.pluginmanager.impl.PluginManager.getJson(PluginManager.java:792)
       at io.jenkins.tools.pluginmanager.impl.PluginManager.getUCJson(PluginManager.java:814)
       at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:208)
       at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:172)
       at io.jenkins.tools.pluginmanager.cli.Main.main(Main.java:70)
      Caused by: java.net.ConnectException: Connection timed out (Connection timed out)
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
       at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
       at java.net.Socket.connect(Socket.java:607)
       at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:284)
       at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
       at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
       at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
       at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
       at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
       at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
       at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
       at java.net.URL.openStream(URL.java:1068)
       at org.apache.commons.io.IOUtils.toString(IOUtils.java:2953)
       at io.jenkins.tools.pluginmanager.impl.PluginManager.getJson(PluginManager.java:786)
       ... 4 more
      Error getting update center json
      

            stopalopa Natasha Stopa
            zephyrin Michel N
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: