java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Chronic intermittent slave disconnect issues with many windows slaves. These jobs typically take 10 hours, disconnects occur around 4 to 5 hours into the job. stack trace follows: Slave went offline during the build ERROR: Connection was broken: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379) at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:35) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82) at hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72) at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103) at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by Donald Duncan,
  • Chronic intermittent slave disconnect issues with many windows slaves. These jobs typically take 10 hours, disconnects occur around 4 to 5 hours into the job. stack trace follows: Slave went offline during the build ERROR: Connection was broken: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379) at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:35) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82) at hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72) at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103) at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by Donald Duncan,
  • I often see jobs fail with {code} hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Connection reset by peer at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41) at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34) at hudson.remoting.Request.call(Request.java:174) at hudson.remoting.Channel.call(Channel.java:742) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:940) at hudson.plugins.cygpath.CygpathLauncherDecorator$1.kill(CygpathLauncherDecorator.java:76) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:556) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Connection reset by peer at hudson.remoting.Request.abort(Request.java:299) at hudson.remoting.Channel.terminate(Channel.java:805) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) Caused by: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:375) at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:35) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103) at java.io.InputStream.read(InputStream.java:101) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:81) at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2296) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2589) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2599) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1319) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:70) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code} I attached a Java crash log I found that matches the time the above error was thrown.
    via by Andy Shulman,
  • I often see jobs fail with {code} hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Connection reset by peer at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41) at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34) at hudson.remoting.Request.call(Request.java:174) at hudson.remoting.Channel.call(Channel.java:742) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:940) at hudson.plugins.cygpath.CygpathLauncherDecorator$1.kill(CygpathLauncherDecorator.java:76) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:556) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Connection reset by peer at hudson.remoting.Request.abort(Request.java:299) at hudson.remoting.Channel.terminate(Channel.java:805) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) Caused by: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:375) at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:35) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103) at java.io.InputStream.read(InputStream.java:101) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:81) at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2296) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2589) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2599) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1319) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:70) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code} I attached a Java crash log I found that matches the time the above error was thrown.
    via by Andy Shulman,
  • We have a testing which will run for several hours. We meet intermittent failure like below which terminated the testing and the job just failed. 12:42:10 FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: An existing connection was forcibly closed by the remote host 12:42:10 hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: An existing connection was forcibly closed by the remote host 12:42:10 at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41) 12:42:10 at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34) 12:42:10 at hudson.remoting.Request.call(Request.java:174) 12:42:10 at hudson.remoting.Channel.call(Channel.java:739) 12:42:10 at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:168) 12:42:10 at com.sun.proxy.$Proxy61.join(Unknown Source) 12:42:10 at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:956) 12:42:10 at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:137) 12:42:10 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97) 12:42:10 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) 12:42:10 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 12:42:10 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756) 12:42:10 at hudson.model.Build$BuildExecution.build(Build.java:198) 12:42:10 at hudson.model.Build$BuildExecution.doRun(Build.java:159) 12:42:10 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 12:42:10 at hudson.model.Run.execute(Run.java:1706) 12:42:10 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 12:42:10 at hudson.model.ResourceController.execute(ResourceController.java:88) 12:42:10 at hudson.model.Executor.run(Executor.java:232) 12:42:10 Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: An existing connection was forcibly closed by the remote host 12:42:10 at hudson.remoting.Request.abort(Request.java:299) 12:42:10 at hudson.remoting.Channel.terminate(Channel.java:802) 12:42:10 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) 12:42:10 Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host 12:42:10 at sun.nio.ch.SocketDispatcher.read0(Native Method) 12:42:10 at sun.nio.ch.SocketDispatcher.read(Unknown Source) 12:42:10 at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) 12:42:10 at sun.nio.ch.IOUtil.read(Unknown Source) 12:42:10 at sun.nio.ch.SocketChannelImpl.read(Unknown Source) 12:42:10 at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:33) 12:42:10 at sun.nio.ch.ChannelInputStream.read(Unknown Source) 12:42:10 at sun.nio.ch.ChannelInputStream.read(Unknown Source) 12:42:10 at sun.nio.ch.ChannelInputStream.read(Unknown Source) 12:42:10 at java.io.InputStream.read(Unknown Source) 12:42:10 at sun.nio.ch.ChannelInputStream.read(Unknown Source) 12:42:10 at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82) 12:42:10 at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) 12:42:10 at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) 12:42:10 at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) 12:42:10 at java.io.ObjectInputStream.readObject0(Unknown Source) 12:42:10 at java.io.ObjectInputStream.readObject(Unknown Source) 12:42:10 at hudson.remoting.Command.readFrom(Command.java:92) 12:42:10 at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:70) 12:42:10 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by sharon xia,
    • java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379) at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:35) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109) at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82) at hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72) at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103) at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    138 more bugmates