[JIRA] (JENKINS-51707) Failure - java.net.SocketException: Connection reset

355 views
Skip to first unread message

pragya.khare@majesco.com (JIRA)

unread,
Jun 5, 2018, 8:34:02 AM6/5/18
to jenkinsc...@googlegroups.com
pragya khre created an issue
 
Jenkins / Task JENKINS-51707
Failure - java.net.SocketException: Connection reset
Issue Type: Task Task
Assignee: Ofir Shaked
Components: hp-application-automation-tools-plugin
Created: 2018-06-05 12:33
Priority: Blocker Blocker
Reporter: pragya khre

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 ?

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
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

pragya.khare@majesco.com (JIRA)

unread,
Jun 5, 2018, 8:49:01 AM6/5/18
to jenkinsc...@googlegroups.com
pragya khre updated an issue
Change By: pragya khre
Component/s: jdk-tool-plugin

pragya.khare@majesco.com (JIRA)

unread,
Jun 5, 2018, 8:50:02 AM6/5/18
to jenkinsc...@googlegroups.com
pragya khre updated an issue
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
h1. Installing Plugins/Upgrades
|Preparation| * Checking internet connectivity
* Checking update center connectivity
* Success|
|Script Security|!http://localhost:8080/static/0534f8ef/images/24x24/red.png!  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|!http://localhost:8080/static/0534f8ef/images/24x24/red.png!  Failure - [Details|http://localhost:8080/updateCenter/]|
|bouncycastle API|!http://localhost:8080/static/0534f8ef/images/24x24/red.png!  Failure - [Details|http://localhost:8080/updateCenter/]|
|Structs|!http://localhost:8080/static/0534f8ef/images/24x24/red.png!  Failure - [Details|http://localhost:8080/updateCenter/]|

daniel.gront@hpe.com (JIRA)

unread,
Jun 21, 2018, 10:46:03 AM6/21/18
to jenkinsc...@googlegroups.com
Daniel Gront commented on Task JENKINS-51707
 
Re: Failure - java.net.SocketException: Connection reset

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?

daniel.gront@hpe.com (JIRA)

unread,
Jul 9, 2018, 7:01:01 AM7/9/18
to jenkinsc...@googlegroups.com
Daniel Gront closed an issue as Incomplete
 

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

Change By: Daniel Gront
Status: Open Closed
Resolution: Incomplete
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

coolteygame@gmail.com (JIRA)

unread,
Aug 20, 2018, 8:04:02 PM8/20/18
to jenkinsc...@googlegroups.com
Cooltey Feng commented on Task JENKINS-51707
 
Re: Failure - java.net.SocketException: Connection reset

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

 

daniel.gront@hpe.com (JIRA)

unread,
Aug 21, 2018, 12:30:02 AM8/21/18
to jenkinsc...@googlegroups.com

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

coolteygame@gmail.com (JIRA)

unread,
Aug 21, 2018, 1:18:02 PM8/21/18
to jenkinsc...@googlegroups.com

Daniel Gront Yes, I've tried add couple proxy but it still not works.

coolteygame@gmail.com (JIRA)

unread,
Aug 21, 2018, 1:19:02 PM8/21/18
to jenkinsc...@googlegroups.com
Cooltey Feng edited a comment on Task JENKINS-51707
[~gront] Yes, I've tried to add couple proxy but it still does not works work .

daniel.gront@hpe.com (JIRA)

unread,
Aug 22, 2018, 7:33:01 AM8/22/18
to jenkinsc...@googlegroups.com

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

ty.connell@gmail.com (JIRA)

unread,
Jul 9, 2019, 3:30:02 PM7/9/19
to jenkinsc...@googlegroups.com

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]

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

siddhis40@gmail.com (JIRA)

unread,
Nov 12, 2019, 6:25:03 AM11/12/19
to jenkinsc...@googlegroups.com

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.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

siddhis40@gmail.com (JIRA)

unread,
Nov 12, 2019, 6:26:02 AM11/12/19
to jenkinsc...@googlegroups.com
Siddhi Shah reopened an issue
 
Change By: Siddhi Shah
Resolution: Incomplete
Status: Closed Reopened
Assignee: Ofir Shaked Siddhi Shah
Reply all
Reply to author
Forward
0 new messages