Jenkins node connection troubles

拟墨画扇 提交于 2019-12-03 01:15:51
user3895254

I don't know the reason but it happens after a restart of the slave machine or when the machine lost the connection (during a long period).

The problem (in my case) was that the process java -jar slave.jar was not running in the slave. For solve it, try to reconnect the node in Jenkins menus, so go to:

Manage Jenkins -> Manage Nodes -> YOUR_NODE -> Disconnect

Manage Jenkins -> Manage Nodes -> YOUR_NODE -> Launch slave agent

It may also happen if you don't have a configured DNS and slave's IP address has suddenly changed between jobs. Disconnecting/relaunching slave agent with proper IP address also helps.

This worked for me:

  1. Make sure Jenkins node service is running
  2. Go to node-specific page on Jenkins and click 'Disconnect'

In my case it re-connected automagically and I was all set from there.

In my case, Jenkins slave was hang. I was unable to ssh and check. Although slave node was showing online. But unable to connect when try to disconnect and re-connect.

In my case, I have rebooted my slave node, then it's work fine.

Clean the workspace. Many saved and cached content can cause such an error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!