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

FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If you encounter similar problems on recent versions of Jenkins and up to date slave.jar on agents, please file a new bug instead of reopening this one. It's too old to be useful. Provide as much information about your configuration as possible.


      I am seeing the same on my Windows XP master-slave setup. I am running latest Hudson ver. 1.363
      I am using the close-workspace-scm plugin to copy my workspace from master to slave(150).

      Started by user anonymous
      Building remotely on 150
      FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
      hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.Request.call(Request.java:137)
      at hudson.remoting.Channel.call(Channel.java:555)
      at hudson.FilePath.act(FilePath.java:742)
      at hudson.FilePath.act(FilePath.java:735)
      at hudson.FilePath.unzip(FilePath.java:415)
      at hudson.FileSystemProvisioner$Default$WorkspaceSnapshotImpl.restoreTo(FileSystemProvisioner.java:227)
      at hudson.plugins.cloneworkspace.CloneWorkspaceSCM$Snapshot.restoreTo(CloneWorkspaceSCM.java:344)
      at hudson.plugins.cloneworkspace.CloneWorkspaceSCM.checkout(CloneWorkspaceSCM.java:126)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1044)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
      at hudson.model.Run.run(Run.java:1253)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:127)
      Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.Request.abort(Request.java:257)
      at hudson.remoting.Channel.terminate(Channel.java:602)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:893)
      Caused by: java.io.IOException: Unexpected termination of the channel
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:875)
      Caused by: java.io.EOFException
      at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source)
      at java.io.ObjectInputStream.readObject0(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:869)

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Remoting logic has improved gradually in this area (especially on diagnostics fronts), but likely the issue still exists. Not sure if there is a way to fix such generic issue

            Show
            oleg_nenashev Oleg Nenashev added a comment - Remoting logic has improved gradually in this area (especially on diagnostics fronts), but likely the issue still exists. Not sure if there is a way to fix such generic issue
            Hide
            xiazhang Xia Zhang added a comment -

            also encountered the same problems:

            16:23:20 FATAL: hudson.remoting.Channel$OrderlyShutdown
            16:23:20 hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown
            16:23:20 at hudson.remoting.Request.abort(Request.java:303)
            16:23:20 at hudson.remoting.Channel.terminate(Channel.java:847)
            16:23:20 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080)
            16:23:20 at hudson.remoting.Channel$1.handle(Channel.java:501)
            16:23:20 at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61)
            16:23:20 at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:594)
            16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            16:23:20 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
            16:23:20 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
            16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            16:23:20 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            16:23:20 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            16:23:20 at java.lang.Thread.run(Thread.java:745)
            16:23:20 at ......remote call to mesos-jenkins-58207071568048808fbd9396283fe305-jenkins-slave-ru(Native Method)
            16:23:20 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
            16:23:20 at hudson.remoting.Request.call(Request.java:172)
            16:23:20 at hudson.remoting.Channel.call(Channel.java:780)
            16:23:20 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145)
            16:23:20 at sun.reflect.GeneratedMethodAccessor756.invoke(Unknown Source)
            16:23:20 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            16:23:20 at java.lang.reflect.Method.invoke(Method.java:606)
            16:23:20 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:131)
            16:23:20 at com.sun.proxy.$Proxy88.execute(Unknown Source)
            16:23:20 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1042)
            16:23:20 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
            16:23:20 at hudson.scm.SCM.checkout(SCM.java:495)
            16:23:20 at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
            16:23:20 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
            16:23:20 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
            16:23:20 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
            16:23:20 at hudson.model.Run.execute(Run.java:1741)
            16:23:20 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            16:23:20 at hudson.model.ResourceController.execute(ResourceController.java:98)
            16:23:20 at hudson.model.Executor.run(Executor.java:410)
            16:23:20 Caused by: hudson.remoting.Channel$OrderlyShutdown
            16:23:20 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080)
            16:23:20 at hudson.remoting.Channel$1.handle(Channel.java:501)
            16:23:20 at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61)
            16:23:20 at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:594)
            16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            16:23:20 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
            16:23:20 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
            16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            16:23:20 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            16:23:20 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            16:23:20 at java.lang.Thread.run(Thread.java:745)
            16:23:20 Caused by: Command close created at
            16:23:20 at hudson.remoting.Command.<init>(Command.java:56)
            16:23:20 at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1074)
            16:23:20 at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1072)
            16:23:20 at hudson.remoting.Channel.close(Channel.java:1156)
            16:23:20 at hudson.remoting.Channel.close(Channel.java:1138)
            16:23:20 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1079)
            16:23:20 at hudson.remoting.Channel$1.handle(Channel.java:501)
            16:23:20 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:83)

            Show
            xiazhang Xia Zhang added a comment - also encountered the same problems: 16:23:20 FATAL: hudson.remoting.Channel$OrderlyShutdown 16:23:20 hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown 16:23:20 at hudson.remoting.Request.abort(Request.java:303) 16:23:20 at hudson.remoting.Channel.terminate(Channel.java:847) 16:23:20 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080) 16:23:20 at hudson.remoting.Channel$1.handle(Channel.java:501) 16:23:20 at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61) 16:23:20 at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:594) 16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 16:23:20 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) 16:23:20 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) 16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 16:23:20 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 16:23:20 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 16:23:20 at java.lang.Thread.run(Thread.java:745) 16:23:20 at ......remote call to mesos-jenkins-58207071568048808fbd9396283fe305-jenkins-slave-ru(Native Method) 16:23:20 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416) 16:23:20 at hudson.remoting.Request.call(Request.java:172) 16:23:20 at hudson.remoting.Channel.call(Channel.java:780) 16:23:20 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145) 16:23:20 at sun.reflect.GeneratedMethodAccessor756.invoke(Unknown Source) 16:23:20 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 16:23:20 at java.lang.reflect.Method.invoke(Method.java:606) 16:23:20 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:131) 16:23:20 at com.sun.proxy.$Proxy88.execute(Unknown Source) 16:23:20 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1042) 16:23:20 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082) 16:23:20 at hudson.scm.SCM.checkout(SCM.java:495) 16:23:20 at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) 16:23:20 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) 16:23:20 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 16:23:20 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 16:23:20 at hudson.model.Run.execute(Run.java:1741) 16:23:20 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 16:23:20 at hudson.model.ResourceController.execute(ResourceController.java:98) 16:23:20 at hudson.model.Executor.run(Executor.java:410) 16:23:20 Caused by: hudson.remoting.Channel$OrderlyShutdown 16:23:20 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080) 16:23:20 at hudson.remoting.Channel$1.handle(Channel.java:501) 16:23:20 at hudson.remoting.AbstractByteArrayCommandTransport$1.handle(AbstractByteArrayCommandTransport.java:61) 16:23:20 at org.jenkinsci.remoting.nio.NioChannelHub$2.run(NioChannelHub.java:594) 16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 16:23:20 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) 16:23:20 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) 16:23:20 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 16:23:20 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 16:23:20 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 16:23:20 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 16:23:20 at java.lang.Thread.run(Thread.java:745) 16:23:20 Caused by: Command close created at 16:23:20 at hudson.remoting.Command.<init>(Command.java:56) 16:23:20 at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1074) 16:23:20 at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1072) 16:23:20 at hudson.remoting.Channel.close(Channel.java:1156) 16:23:20 at hudson.remoting.Channel.close(Channel.java:1138) 16:23:20 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1079) 16:23:20 at hudson.remoting.Channel$1.handle(Channel.java:501) 16:23:20 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:83)
            Hide
            danielbeck Daniel Beck added a comment -

            Xia Zhang

            also encountered the same problems

            When commenting on a six years old issue, you need to mention what version of Jenkins you're running. If the problem was trivial to reproduce and fix, this wouldn't still be open after six years.

            That said, no need to amend your comment: Based on line numbers, this is remoting 2.60 or older, a lot has changed since then, so you're on a Jenkins version nobody cares about anymore. Time to upgrade.

            Show
            danielbeck Daniel Beck added a comment - Xia Zhang also encountered the same problems When commenting on a six years old issue, you need to mention what version of Jenkins you're running. If the problem was trivial to reproduce and fix, this wouldn't still be open after six years. That said, no need to amend your comment: Based on line numbers, this is remoting 2.60 or older, a lot has changed since then, so you're on a Jenkins version nobody cares about anymore. Time to upgrade.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Hi all. As a Remoting maintainer, I am going to close it. In Remoting 3.x we significantly improved the diagnosability and stability of the channel. In the new versions you would need to...

            1. Use JNLP4
            2. Use Remoting 3.14+
            3. Use -workDir mode with agent-side log collection
            4. Use Jenkins 2.89.3+

            If such generic issue happens on such configuration, let's follow-up in new tickets so that we can diagnose them on the case-by-case basis.

            Show
            oleg_nenashev Oleg Nenashev added a comment - Hi all. As a Remoting maintainer, I am going to close it. In Remoting 3.x we significantly improved the diagnosability and stability of the channel. In the new versions you would need to... Use JNLP4 Use Remoting 3.14+ Use -workDir mode with agent-side log collection Use Jenkins 2.89.3+ If such generic issue happens on such configuration, let's follow-up in new tickets so that we can diagnose them on the case-by-case basis.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Closing to discourage new reports in this ticket

            Show
            oleg_nenashev Oleg Nenashev added a comment - Closing to discourage new reports in this ticket

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                nirmal_patel nirmal_patel
              • Votes:
                73 Vote for this issue
                Watchers:
                88 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: