gpt4 book ai didi

Jenkins节点连接问题

转载 作者:行者123 更新时间:2023-12-02 10:01:51 26 4
gpt4 key购买 nike

嗨,我遇到了以下错误,但我的节点已启动,并且在 Jenkins 日志中一切正常,但在我的一些在节点上进行的作业中,我遇到了以下问题

12:59:29 [EnvInject] - Loading node environment variables.
12:59:29 ERROR: SEVERE ERROR occurs
12:59:29 org.jenkinsci.lib.envinject.EnvInjectException: hudson.remoting.ChannelClosedException: channel is already closed
12:59:29 at org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvironmentVariablesNode(EnvironmentVariablesNodeLoader.java:75)
12:59:29 at org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:81)
12:59:29 at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:39)
12:59:29 at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:637)
12:59:29 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:543)
12:59:29 at hudson.model.Run.execute(Run.java:1676)
12:59:29 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
12:59:29 at hudson.model.ResourceController.execute(ResourceController.java:88)
12:59:29 at hudson.model.Executor.run(Executor.java:231)
12:59:29 Caused by: hudson.remoting.ChannelClosedException: channel is already closed
12:59:29 at hudson.remoting.Channel.send(Channel.java:524)
12:59:29 at hudson.remoting.Request.call(Request.java:129)
12:59:29 at hudson.remoting.Channel.call(Channel.java:722)
12:59:29 at hudson.FilePath.act(FilePath.java:1003)
12:59:29 at org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvironmentVariablesNode(EnvironmentVariablesNodeLoader.java:44)
12:59:29 ... 8 more
12:59:29 Caused by: java.io.IOException
12:59:29 at hudson.remoting.Channel.close(Channel.java:1007)
12:59:29 at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:110)
12:59:29 at hudson.remoting.PingThread.ping(PingThread.java:120)
12:59:29 at hudson.remoting.PingThread.run(PingThread.java:81)
12:59:29 Caused by: java.util.concurrent.TimeoutException: Ping started on 1401694124050 hasn't completed at 1401694364050
12:59:29 ... 2 more
12:59:29 Archiving artifacts
12:59:29 Email was triggered for: Failure
12:59:29 Sending email for trigger: Failure
12:59:29 ERROR: Error: No workspace found!
12:59:29 Error retrieving environment vars: channel is already closed
12:59:29 Sending email to: $EMAIL_USERS
12:59:49 Error sending to the following INVALID addresses: $EMAIL_USERS
12:59:49 [EnvInject] - [ERROR] - SEVERE ERROR occurs: channel is already closed

12:59:49 Finished: FAILURE

最佳答案

我不知道原因,但它发生在从机重新启动后或当机器失去连接(在很长一段时间内)时。

问题(就我而言)是进程 java -jar Slave.jar 没有在从属设备中运行。要解决这个问题,请尝试在 Jenkins 菜单中重新连接节点,因此请转到:

管理 Jenkins -> 管理节点 -> YOUR_NODE -> 断开连接

管理 Jenkins -> 管理节点 -> YOUR_NODE -> 启动从属代理

关于Jenkins节点连接问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23991977/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com