Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

jenkins

slave

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

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

like image 733
user3164236 Avatar asked Jan 06 '14 05:01

user3164236


People also ask

How do you check if Jenkins slave is running?

Visit a url like http:``//myslave:3141 to see whether a slave is running and how much memory it is using. Configure the port used by clicking Manage Jenkins on the dashboard.

Why Jenkins agent is offline?

A agent offline or connection issue may be caused by various network-layer issues, including a proxy setting defined on the agent (but not the Jenkins controller), or vice versa.


2 Answers

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.

like image 149
Not a bug Avatar answered Nov 16 '22 03:11

Not a bug


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.

like image 25
Joshua Avatar answered Nov 16 '22 04:11

Joshua