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

Failure - java.net.SocketException: Connection reset

    XMLWordPrintable

Details

    Description

      Hi,

      while trying to install plugin i am getting failure status and detailed error is as below could anyone please let me know where i need to check or update ?

      Jenkin 2.107

      jdk 1.8

      Installing Plugins/Upgrades

      Preparation
      • Checking internet connectivity
      • Checking update center connectivity
      • Success
      Script Security  Failure -java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at java.net.URLConnection.getHeaderFieldLong(Unknown Source) at java.net.URLConnection.getContentLengthLong(Unknown Source) at java.net.URLConnection.getContentLength(Unknown Source) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1126) Caused: java.net.SocketException: Connection reset at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1139) Caused: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/script-security/1.44/script-security.hpi to C:\Users\Pragya12685.MASTEK\.jenkins\plugins\script-security.jpi.tmp at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1146) Caused: hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/script-security/1.44/script-security.hpi (redirected to: http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.44/script-security.hpi) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1172) at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1677) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1874) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112) at java.lang.Thread.run(Unknown Source)
      Command Agent Launcher  Failure - Details
      bouncycastle API  Failure - Details
      Structs  Failure - Details

      Attachments

        Activity

          gront Daniel Gront added a comment -

          The exception doesn't occur in the plugin, It could be an issue with Jenkins mirrors, Did you try to download the plugin again?

          And are you behind a proxy?

          gront Daniel Gront added a comment - The exception doesn't occur in the plugin, It could be an issue with Jenkins mirrors, Did you try to download the plugin again? And are you behind a proxy?
          gront Daniel Gront added a comment -

          No response from the reporter, If the problem arises again please reopen and provide the requested information.

          gront Daniel Gront added a comment - No response from the reporter, If the problem arises again please reopen and provide the requested information.
          cooltey Cooltey Feng added a comment -

          I have the same issue that cannot download the plugin. The issue is on a Mac server in our office. Maybe we have a proxy in our office, I am not sure.

          For troubleshooting, I've also installed the Jenkins on my Mac and I can download the plugin without any issues.

          One thing would like to discuss is that once I paste the link http://updates.jenkins-ci.org/download/plugins/mock-slave/1.12/mock-slave.hpi to the browsers (Chrome, Firefox, Safari), it will show an error message such as Failed to download.

          Does anyone have the same issue?

          • Jenkins version: 2.138
          • Java version: 1.8
          • Mac OS: High Sierra 10.13.6

           

          cooltey Cooltey Feng added a comment - I have the same issue that cannot download the plugin. The issue is on a Mac server in our office. Maybe we have a proxy in our office, I am not sure. For troubleshooting, I've also installed the Jenkins on my Mac and I can download the plugin without any issues. One thing would like to discuss is that once I paste the link http://updates.jenkins-ci.org/download/plugins/mock-slave/1.12/mock-slave.hpi to the browsers (Chrome, Firefox, Safari), it will show an error message such as Failed to download . Does anyone have the same issue? Jenkins version: 2.138 Java version: 1.8 Mac OS: High Sierra 10.13.6  
          gront Daniel Gront added a comment -

          cooltey, Have you tried configuring proxy at the Manage Plugins -> Advanced section?

          gront Daniel Gront added a comment - cooltey , Have you tried configuring proxy at the Manage Plugins -> Advanced section?
          cooltey Cooltey Feng added a comment - - edited

          gront Yes, I've tried to add couple proxy but it still does not work.

          cooltey Cooltey Feng added a comment - - edited gront Yes, I've tried to add couple proxy but it still does not work.
          gront Daniel Gront added a comment -

          cooltey, It seems like an issue with the browser itself, I am behind a proxy and able to download the file you specified.

          gront Daniel Gront added a comment - cooltey , It seems like an issue with the browser itself, I am behind a proxy and able to download the file you specified.
          tyconnell Ty Connell added a comment -

          Okay, this is a bit of a thread necro, but this seemed like the most appropriate place to post.  I also was getting the "java.net.SocketException: Connection reset" error, but it was not due to a proxy error as suggested here.  The error was caused by our router, a Meraki, and something called  "Advanced Malware Protection (AMP)" in combination with plugins downloaded from http (vs. http*s*) mirrors.  The truly annoying part is that it silently crushes your download after it's started, making it look like the mirror is somehow at fault.

          The issue is discussed [over at the Meraki site.|https://community.meraki.com/t5/Security-SD-WAN/AMP-IDS-seems-to-block-file-download-without-logging-to-security/td-p/10222]

          tyconnell Ty Connell added a comment - Okay, this is a bit of a thread necro, but this seemed like the most appropriate place to post.  I also was getting the "java.net.SocketException: Connection reset" error, but it was not due to a proxy error as suggested here.  The error was caused by our router, a Meraki, and something called  "Advanced Malware Protection (AMP)" in combination with plugins downloaded from http (vs. http*s*) mirrors.  The truly annoying part is that it silently crushes your download after it's started, making it look like the mirror is somehow at fault. The issue is discussed [over at the Meraki site.| https://community.meraki.com/t5/Security-SD-WAN/AMP-IDS-seems-to-block-file-download-without-logging-to-security/td-p/10222 ]
          siddhis Siddhi Shah added a comment -

          I am also getting same error , does anyone has solution?

          Also, If I had proxy setting in Advanced Section the validation proxy returns error 403.

          If I remove proxy and validate url it gives Success as status.

          siddhis Siddhi Shah added a comment - I am also getting same error , does anyone has solution? Also, If I had proxy setting in Advanced Section the validation proxy returns error 403. If I remove proxy and validate url it gives Success as status.

          People

            siddhis Siddhi Shah
            p_kre pragya khre
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: