java.nio.channels.AsynchronousCloseException

Jenkins JIRA | Michael Prokop | 2 years ago
  1. 0

    [JENKINS-23120] FATAL: hudson.remoting.RequestAbortedException on Windows Slaves - Jenkins JIRA

    jenkins-ci.org | 3 months ago
    hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.nio.channels.AsynchronousCloseException
  2. 0

    I'm not yet sure whether that's related to JENKINS-18781, and JENKINS-22758 seems to be solved already. I'm experiencing strange issues with the connection between Jenkins master and its slaves (connected using the swarm plugin) during startup. All the >25 slaves repeatable disconnect and automatically reconnect for quite some time: {quote} # grep -c 'WARNING: Channel reader thread: .* terminated' ~log/jenkins/jenkins.log 2882 {quote} The data for the slaves at $JENKINS_URL/computer/ is missing for quite some time, but finally they persistent and then they seem to work fine. Was there some timeout decreased recently which might explain that issue? Quoting Jenkins master's log: {quote} Aug 12, 2014 12:43:08 AM jenkins.slaves.JnlpSlaveAgentProtocol$Handler$1 onClosed WARNING: Channel reader thread: docker1 for + docker1 terminated java.nio.channels.AsynchronousCloseException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:205) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:412) at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:33) 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:2293) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2586) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2596) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) 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) {quote} On the client that's in the logs: {quote} Aug 12, 2014 12:43:06 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run SEVERE: I/O error in channel channel java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {quote}

    Jenkins JIRA | 2 years ago | Michael Prokop
    java.nio.channels.AsynchronousCloseException
  3. 0

    {noformat} 21:59:46 FATAL: hudson.remoting.RequestAbortedException: java.nio.channels.AsynchronousCloseException 21:59:46 hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.nio.channels.AsynchronousCloseException 21:59:46 at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41) 21:59:46 at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34) 21:59:46 at hudson.remoting.Request.call(Request.java:174) 21:59:46 at hudson.remoting.Channel.call(Channel.java:739) 21:59:46 at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:168) 21:59:46 at com.sun.proxy.$Proxy56.join(Unknown Source) 21:59:46 at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:951) 21:59:46 at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:137) 21:59:46 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97) 21:59:46 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) 21:59:46 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 21:59:46 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745) 21:59:46 at hudson.model.Build$BuildExecution.build(Build.java:198) 21:59:46 at hudson.model.Build$BuildExecution.doRun(Build.java:159) 21:59:46 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) 21:59:46 at hudson.model.Run.execute(Run.java:1706) 21:59:46 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 21:59:46 at hudson.model.ResourceController.execute(ResourceController.java:88) 21:59:46 at hudson.model.Executor.run(Executor.java:231) 21:59:46 Caused by: hudson.remoting.RequestAbortedException: java.nio.channels.AsynchronousCloseException 21:59:46 at hudson.remoting.Request.abort(Request.java:299) 21:59:46 at hudson.remoting.Channel.terminate(Channel.java:802) 21:59:46 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) 21:59:46 Caused by: java.nio.channels.AsynchronousCloseException 21:59:46 at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:205) 21:59:46 at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:412) 21:59:46 at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:33) 21:59:46 at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65) 21:59:46 at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109) 21:59:46 at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103) 21:59:46 at java.io.InputStream.read(InputStream.java:101) 21:59:46 at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:81) 21:59:46 at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82) 21:59:46 at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2293) 21:59:46 at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2586) 21:59:46 at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2596) 21:59:46 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318) 21:59:46 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) 21:59:46 at hudson.remoting.Command.readFrom(Command.java:92) 21:59:46 at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:70) 21:59:46 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {noformat}

    Jenkins JIRA | 3 years ago | Christian Goetze
    hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.nio.channels.AsynchronousCloseException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I'm not yet sure whether that's related to JENKINS-18781, and JENKINS-22758 seems to be solved already. I'm experiencing strange issues with the connection between Jenkins master and its slaves (connected using the swarm plugin) during startup. All the >25 slaves repeatable disconnect and automatically reconnect for quite some time: {quote} # grep -c 'WARNING: Channel reader thread: .* terminated' ~log/jenkins/jenkins.log 2882 {quote} The data for the slaves at $JENKINS_URL/computer/ is missing for quite some time, but finally they persistent and then they seem to work fine. Was there some timeout decreased recently which might explain that issue? Quoting Jenkins master's log: {quote} Aug 12, 2014 12:43:08 AM jenkins.slaves.JnlpSlaveAgentProtocol$Handler$1 onClosed WARNING: Channel reader thread: docker1 for + docker1 terminated java.nio.channels.AsynchronousCloseException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:205) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:412) at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:33) 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:2293) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2586) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2596) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) 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) {quote} On the client that's in the logs: {quote} Aug 12, 2014 12:43:06 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run SEVERE: I/O error in channel channel java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {quote}

    Jenkins JIRA | 2 years ago | Michael Prokop
    java.nio.channels.AsynchronousCloseException

  1. davidvanlaatum 14 times, last 6 months ago
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.nio.channels.AsynchronousCloseException

    No message provided

    at java.nio.channels.spi.AbstractInterruptibleChannel.end()
  2. Java RT
    SocketChannelImpl.read
    1. java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:205)
    2. sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:412)
    2 frames
  3. Hudson :: Remoting Layer
    SocketChannelStream$1.read
    1. hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:33)
    1 frame
  4. Java RT
    ChannelInputStream.read
    1. sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65)
    2. sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109)
    3. sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
    4. java.io.InputStream.read(InputStream.java:101)
    5. sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:81)
    5 frames
  5. Hudson :: Remoting Layer
    FlightRecorderInputStream.read
    1. hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82)
    1 frame
  6. Java RT
    ObjectInputStream.readObject
    1. java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2293)
    2. java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2586)
    3. java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2596)
    4. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318)
    5. java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
    5 frames
  7. Hudson :: Remoting Layer
    SynchronousCommandTransport$ReaderThread.run
    1. hudson.remoting.Command.readFrom(Command.java:92)
    2. hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:70)
    3. hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    3 frames