Jenkins build agent appears offline but agent service is up and Running

60.8k Views Asked by At

I am having trouble that Jenkins home page shows the Build agent is offline. But when I actually log in to build agent server, the agent service is up and running.

I am using Windows 2003 OS for all my Build agent and controller server. The only way to get it online is to restart the service again.

2

There are 2 best solutions below

6
On

Follow the given steps, you will not required to restart the services.

Goto Jenkins -> Manage Jenkins -> Manage Nodes

This will show you the list configured nodes. In which

Build Slave -> Launch Slave Agent (Where "Build Slave" is your slave node.)

This will work if your slave is configured properly and connected with the services.

0
On

Jenkins master need communicate with Slave with ssh connection if master and slave are not in the same node. Double check if master's ssh public key is in slave's ~/.ssh/authorized_keys.