hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out

Jenkins JIRA | redsolo | 7 years ago
  1. 0

    I just had this build problem, that a job that normally takes 5-10 mins (building hudson/main at hudson.ramfelt.se) was still running after an hour. The build had stopped at "Archiving artifacts", which is a simple "**/war/target/hudson.war". The job was executed on a Hudson windows machine running JNLP. This may be related to that the Hudson just was updated to 1.236 and Im not sure what version the JNLP slave is using. Killing the job through the web UI, generated the below exception stack. For the job itself: http://hudson.ramfelt.se/job/Hudson%20Main/139/jdk=SUN%20JDK%206.0,label=Windows /console ERROR: Failed to archive artifacts: **/war/target/hudson.war hudson.util.IOException2: hudson.util.IOException2: Failed to extract C:\HudsonOnHudson\workspace\Hudson Main\jdk/SUN JDK 6.0/label/Windows/**/war/target/hudson.war at hudson.FilePath.readFromTar(FilePath.java:1731) at hudson.FilePath.copyRecursiveTo(FilePath.java:1402) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:161) at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at hudson.FilePath.readFromTar(FilePath.java:1716) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:1409) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out at hudson.remoting.Request$1.get(Request.java:210) at hudson.remoting.Request$1.get(Request.java:165) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:1405) ... 11 more Caused by: hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out at hudson.remoting.Request.abort(Request.java:231) at hudson.remoting.Channel.terminate(Channel.java:596) at hudson.remoting.Channel$ReaderThread.run(Channel.java:871) Caused by: java.net.SocketException: Connection timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2 552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:851)

    Jenkins JIRA | 7 years ago | redsolo
    hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out
  2. 0

    I just had this build problem, that a job that normally takes 5-10 mins (building hudson/main at hudson.ramfelt.se) was still running after an hour. The build had stopped at "Archiving artifacts", which is a simple "**/war/target/hudson.war". The job was executed on a Hudson windows machine running JNLP. This may be related to that the Hudson just was updated to 1.236 and Im not sure what version the JNLP slave is using. Killing the job through the web UI, generated the below exception stack. For the job itself: http://hudson.ramfelt.se/job/Hudson%20Main/139/jdk=SUN%20JDK%206.0,label=Windows /console ERROR: Failed to archive artifacts: **/war/target/hudson.war hudson.util.IOException2: hudson.util.IOException2: Failed to extract C:\HudsonOnHudson\workspace\Hudson Main\jdk/SUN JDK 6.0/label/Windows/**/war/target/hudson.war at hudson.FilePath.readFromTar(FilePath.java:1731) at hudson.FilePath.copyRecursiveTo(FilePath.java:1402) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: java.io.IOException at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:161) at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) at hudson.FilePath.readFromTar(FilePath.java:1716) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:1409) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :466) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :454) at hudson.model.Build$RunnerImpl.post2(Build.java:146) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438) at hudson.model.Run.run(Run.java:1143) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out at hudson.remoting.Request$1.get(Request.java:210) at hudson.remoting.Request$1.get(Request.java:165) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.FilePath.copyRecursiveTo(FilePath.java:1405) ... 11 more Caused by: hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out at hudson.remoting.Request.abort(Request.java:231) at hudson.remoting.Channel.terminate(Channel.java:596) at hudson.remoting.Channel$ReaderThread.run(Channel.java:871) Caused by: java.net.SocketException: Connection timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2 552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:851)

    Jenkins JIRA | 7 years ago | redsolo
    hudson.remoting.RequestAbortedException: java.net.SocketException: Connection timed out
  3. 0

    Mongo Connection Failed In Production

    Stack Overflow | 3 years ago | Greg
    java.net.SocketException: Connection timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    timeout errors from Tomcat talking to MongoDB in Azure

    Stack Overflow | 3 years ago
    java.net.SocketException: Connection timed out
  6. 0

    [JAVA-481] Driver not retrying on Connection timed out SocketException - MongoDB

    mongodb.org | 2 years ago
    java.net.SocketException: Connection timed out

  1. Andreas Häber 4 times, last 2 months ago
  2. sriharshakiran 1 times, last 7 months ago
14 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.net.SocketException

    Connection timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    BufferedInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(SocketInputStream.java:129)
    3. java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    4. java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    4 frames