小编典典

詹金斯节点连接麻烦

jenkins

嗨,我遇到以下错误,但我的节点已启动,并且在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

阅读 415

收藏
2020-07-25

共1个答案

小编典典

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

问题(在我的情况下)是进程java -jar slave.jar没有在slave中运行。要解决此问题,请尝试重新连接Jenkins菜单中的节点,因此请转到:

管理詹金斯->管理节点-> YOUR_NODE->断开连接

管理詹金斯->管理节点-> YOUR_NODE->启动从属代理

2020-07-25