Jenkins 从属设备正在断开连接,并且构建因通道意外终止而失败

问题描述 投票:0回答:1

突然我们遇到了 Jenkins 构建失败并显示以下消息。

我检查了从站和主站之间的连接似乎很好,并且没有观察到数据包丢失。也没有变化。我可以知道可能是什么原因吗?所有从属服务器都是 mac pro 服务器。 Git 路径在节点配置 /usr/loal/bin 中更新,并且全部都是 ssh 客户端。

FATAL: java.io.IOException: Unexpected termination of the channel
java.io.EOFException
 at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2735)
 at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3210)
 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:895)
 at java.io.ObjectInputStream.<init>(ObjectInputStream.java:357)
 at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:49)
 at hudson.remoting.Command.readFrom(Command.java:142)
 at hudson.remoting.Command.readFrom(Command.java:128)
 at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)
 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:61)
Caused: java.io.IOException: Unexpected termination of the channel
 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:75)
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to salve1
 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
 at hudson.remoting.Request.call(Request.java:199)
 at hudson.remoting.Channel.call(Channel.java:1000)
 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
 at sun.reflect.GeneratedMethodAccessor306.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
 at com.sun.proxy.$Proxy114.execute(Unknown Source)
 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1221)
 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1299)
 at hudson.scm.SCM.checkout(SCM.java:505)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1204)
 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:636)
 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:508)
 at hudson.model.Run.execute(Run.java:1907)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:97)
 at hudson.model.Executor.run(Executor.java:429)
Caused: hudson.remoting.RequestAbortedException
 at hudson.remoting.Request.abort(Request.java:345)
 at hudson.remoting.Channel.terminate(Channel.java:1085)
 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:89)````
git jenkins
1个回答
0
投票

感谢您提及提示 RE:节点配置设置中的 git 路径。 我的是空的。 我已经检查了已安装 git 的容器,并且它位于搜索路径中,但在图像中添加 git 二进制文件的显式路径对我来说很有效。问题“解决了”(oi oi oi)。

© www.soinside.com 2019 - 2024. All rights reserved.