【问题标题】:Jenkins windows slave builds "Failed to abort" errorJenkins windows slave构建“失败中止”错误
【发布时间】:2014-07-28 09:05:27
【问题描述】:

我目前在 Mac 上运行 Jenkins 并将一些作业从属 Windows 机器,越来越频繁地 Windows 构建失败并出现以下错误:

17:53:01 FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: Failed to abort
17:53:01 hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Failed to abort
17:53:01    at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:41)
17:53:01    at hudson.remoting.RequestAbortedException.wrapForRethrow(RequestAbortedException.java:34)
17:53:01    at hudson.remoting.Request.call(Request.java:174)
17:53:01    at hudson.remoting.Channel.call(Channel.java:739)
17:53:01    at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:168)
17:53:01    at com.sun.proxy.$Proxy60.join(Unknown Source)
17:53:01    at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:956)
17:53:01    at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:137)
17:53:01    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97)
17:53:01    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
17:53:01    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
17:53:01    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
17:53:01    at hudson.model.Build$BuildExecution.build(Build.java:199)
17:53:01    at hudson.model.Build$BuildExecution.doRun(Build.java:160)
17:53:01    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
17:53:01    at hudson.model.Run.execute(Run.java:1732)
17:53:01    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
17:53:01    at hudson.model.ResourceController.execute(ResourceController.java:88)
17:53:01    at hudson.model.Executor.run(Executor.java:234)
17:53:01 Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Failed to abort
17:53:01    at hudson.remoting.Request.abort(Request.java:299)
17:53:01    at hudson.remoting.Channel.terminate(Channel.java:802)
17:53:01    at hudson.remoting.Channel$2.terminate(Channel.java:483)
17:53:01    at hudson.remoting.AbstractByteArrayCommandTransport$1.terminate(    AbstractByteArrayCommandTransport.java:72)
17:53:01    at org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort(NioChannelHub.java:195)
17:53:01    at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:581)
17:53:01    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
17:53:01    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
17:53:01    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
17:53:01    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
17:53:01    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
17:53:01    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
17:53:01    at java.lang.Thread.run(Thread.java:695)
17:53:01 Caused by: java.io.IOException: Failed to abort
17:53:01    ... 9 more
17:53:01 Caused by: java.io.IOException: Operation timed out
17:53:01    at sun.nio.ch.FileDispatcher.read0(Native Method)
17:53:01    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
17:53:01    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
17:53:01    at sun.nio.ch.IOUtil.read(IOUtil.java:171)
17:53:01    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245)
17:53:01    at org.jenkinsci.remoting.nio.FifoBuffer$Pointer.receive(FifoBuffer.java:136)
17:53:01    at org.jenkinsci.remoting.nio.FifoBuffer.receive(FifoBuffer.java:306)
17:53:01    at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:514)
17:53:01    ... 7 more

我的印象是这只是由于网络问题导致从属连接中断,但我不完全确定。

有没有人有任何想法或以前有人看过这个?

【问题讨论】:

    标签: windows macos jenkins abort slave


    【解决方案1】:

    检查此解决方案Connection issue with Jenkins slave on Windows Azure @Dr1Ku:要解决这个问题,您需要增加从站 ping 主站的频率。您可以通过将 Dhudson.slaves.ChannelPinger.pingInterval 系统属性添加到您的主 jenkins.xml 文件来做到这一点。

    【讨论】:

      猜你喜欢
      • 2018-02-22
      • 2021-10-07
      • 2011-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-22
      • 2019-03-26
      相关资源
      最近更新 更多