java.io.IOException: Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642

Jenkins JIRA | Daniel Spilker | 10 months ago
  1. 0

    I get an {{IOException}} when trying to fetch the latest update center data. {code} java.io.IOException: Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642 at hudson.model.DownloadService.loadJSON(DownloadService.java:170) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:173) at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:959) ... {code} Trying {{wget}} on the same host to download the data from works fine: {code} $ wget -v "http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642" --2016-02-05 12:08:23-- http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642 Resolving updates.jenkins-ci.org (updates.jenkins-ci.org)... 199.193.196.24 Connecting to updates.jenkins-ci.org (updates.jenkins-ci.org)|199.193.196.24|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://mirrors.jenkins-ci.org/updates/1.642/update-center.json [following] --2016-02-05 12:08:23-- http://mirrors.jenkins-ci.org/updates/1.642/update-center.json Resolving mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)... 199.193.196.24 Connecting to mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)|199.193.196.24|:80... connected. HTTP request sent, awaiting response... 302 Found Location: ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/1.642/update-center.json [following] --2016-02-05 12:08:23-- ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/1.642/update-center.json => ‘update-center.json’ Resolving ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)... 137.226.34.46, 2a00:8a60:e012:a00::21 Connecting to ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)|137.226.34.46|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD (1) /jenkins/updates/1.642 ... done. ==> SIZE update-center.json ... 996252 ==> PASV ... done. ==> RETR update-center.json ... done. Length: 996252 (973K) (unauthoritative) update-center.json 100%[=================================================================================================================>] 972.90K --.-KB/s in 0.1s 2016-02-05 12:08:24 (6.36 MB/s) - ‘update-center.json’ saved [996252] {code} The {{DownloadService}} seems to use plain JDK HTTP client ({{HttpURLConnection}}). To debug the download, I ran the following snippet in Script Console: {code} con = new URL("http://updates.jenkins-ci.org/update-center.json").openConnection() println con.class.name println con.responseCode println con.instanceFollowRedirects println con.inputStream.text println con.getHeaderFieldKey(5) println con.getHeaderField(5) {code} the output is: {code} sun.net.www.protocol.http.HttpURLConnection 302 true <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/current/update-center.json">here</a>.</p> <hr> <address>Apache/2.2.14 (Ubuntu) Server at mirrors.jenkins-ci.org Port 80</address> </body></html> Location ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/current/update-center.json {code} So I think the JDK is not following redirects to FTP URLs.

    Jenkins JIRA | 10 months ago | Daniel Spilker
    java.io.IOException: Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642
  2. 0

    I get an {{IOException}} when trying to fetch the latest update center data. {code} java.io.IOException: Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642 at hudson.model.DownloadService.loadJSON(DownloadService.java:170) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:173) at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:959) ... {code} Trying {{wget}} on the same host to download the data from works fine: {code} $ wget -v "http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642" --2016-02-05 12:08:23-- http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642 Resolving updates.jenkins-ci.org (updates.jenkins-ci.org)... 199.193.196.24 Connecting to updates.jenkins-ci.org (updates.jenkins-ci.org)|199.193.196.24|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://mirrors.jenkins-ci.org/updates/1.642/update-center.json [following] --2016-02-05 12:08:23-- http://mirrors.jenkins-ci.org/updates/1.642/update-center.json Resolving mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)... 199.193.196.24 Connecting to mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)|199.193.196.24|:80... connected. HTTP request sent, awaiting response... 302 Found Location: ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/1.642/update-center.json [following] --2016-02-05 12:08:23-- ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/1.642/update-center.json => ‘update-center.json’ Resolving ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)... 137.226.34.46, 2a00:8a60:e012:a00::21 Connecting to ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)|137.226.34.46|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD (1) /jenkins/updates/1.642 ... done. ==> SIZE update-center.json ... 996252 ==> PASV ... done. ==> RETR update-center.json ... done. Length: 996252 (973K) (unauthoritative) update-center.json 100%[=================================================================================================================>] 972.90K --.-KB/s in 0.1s 2016-02-05 12:08:24 (6.36 MB/s) - ‘update-center.json’ saved [996252] {code} The {{DownloadService}} seems to use plain JDK HTTP client ({{HttpURLConnection}}). To debug the download, I ran the following snippet in Script Console: {code} con = new URL("http://updates.jenkins-ci.org/update-center.json").openConnection() println con.class.name println con.responseCode println con.instanceFollowRedirects println con.inputStream.text println con.getHeaderFieldKey(5) println con.getHeaderField(5) {code} the output is: {code} sun.net.www.protocol.http.HttpURLConnection 302 true <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/current/update-center.json">here</a>.</p> <hr> <address>Apache/2.2.14 (Ubuntu) Server at mirrors.jenkins-ci.org Port 80</address> </body></html> Location ftp://ftp.halifax.rwth-aachen.de/jenkins/updates/current/update-center.json {code} So I think the JDK is not following redirects to FTP URLs.

    Jenkins JIRA | 10 months ago | Daniel Spilker
    java.io.IOException: Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642
  3. 0

    [JIRA] [dependency-check-jenkins-plugin] (JENKINS-32796) Can't update to v1.3.4: incorrect checksum

    Google Groups | 10 months ago | alexander.buchholtz@qudosoft.de (JIRA)
    java.io.IOException: Could not find JSON in http:<span class="code-comment" style="color: #808080">//updates.jenkins-ci.org/update-center.json?id=<span class="code-keyword" style="color: #000091; color: #808080">default</span>&amp;version=1.625.3 </span> at hudson.model.DownloadService.loadJSON(DownloadService.java:170)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [core] (JENKINS-32802) Can't load Update Center from FTP mirror

    Google Groups | 10 months ago | mail@daniel-spilker.com (JIRA)
    java.io.IOException: Could not find JSON in http:<span class="code-comment" style="color: #808080">//updates.jenkins-ci.org/update-center.json?id=<span class="code-keyword" style="color: #000091; color: #808080">default</span>&amp;version=1.642 </span> at hudson.model.DownloadService.loadJSON(DownloadService.java:170)
  6. 0

    [JIRA] [core] (JENKINS-30354) Cannot retrieve plugins in any browser

    Google Groups | 1 year ago | nrapopor@hotmail.com (JIRA)
    java.io.IOException: Could not find JSON in <a href="http://updates.jenkins-ci.org/update-center.json?id=default&amp;version=1.628" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">http://updates.jenkins-ci.org/update-center.json?id=default&amp;version=1.628</a>

    1 unregistered visitors
    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

      Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=1.642

      at hudson.model.DownloadService.loadJSON()
    2. Hudson
      PluginManager.doCheckUpdatesServer
      1. hudson.model.DownloadService.loadJSON(DownloadService.java:170)
      2. hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:173)
      3. hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:959)
      3 frames