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

Updating plugins fails with IOException 500 Error

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • core
    • None
    • Solaris 10

      When trying to install or update a plugin, the following error occurs:

       
      java.io.IOException: Server returned HTTP response code: 500 for URL:
      http://updates.jenkins-ci.org/update-center.json?uctest at 
      sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1290) at 
      hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:709) at 
      hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:562) 
      at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:847) 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)  
      

      The proxy settings have been entered in the update manager, but it still cannot connect.

      Having looked into the code, we have been able to reproduce the error from a standalone page running on the same server. When we changed the code on our standalone page to use apache commons HttpClient to make the connection, it worked perfectly and gave us a 200 response code back.

      It would be a nice improvement if there was an option in the update center to use HttpClient instead of the current method used.

            Unassigned Unassigned
            newenigma newenigma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: