17

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.

Vogel612
  • 5,474
  • 5
  • 47
  • 69
user3164236
  • 181
  • 1
  • 1
  • 4

2 Answers2

4

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.

Not a bug
  • 4,109
  • 1
  • 35
  • 68
  • Hi Kishan, Thanks for the help. I wonder why this is happening do you have guess where i can find the reason for this. I think if the slave is up and running Master should not show it is off line. – user3164236 Jan 07 '14 at 07:08
  • @user3164236 Master Jenkins server constantly checks for the slave or other configured node connections in background. you can find the connection problem in log of nodes. for example your node is `Demo_Slave` than you can view this log at `Jenkins -> Nodes -> Demo_Slave -> Log`. you will find reason in that log. – Not a bug Jan 07 '14 at 12:45
  • 1
    I'm having the exact same issue: JNLP slave agent is launched and shows connected state, but jenkins server shows slave as offline. The only entry in the slave log is `JNLP agent connected from /10.0.0.134` and the spinning icon. The only thing that helped the last time is the restart of jenkins/apache. – uceumern May 02 '14 at 06:51
  • Update: I upgraded to 1.561 and the issue seems to be fixed (for now). I'll keep an eye on it nevertheless... – uceumern May 02 '14 at 07:09
  • I have 1.571 running and the same issue. The server logs also the accepted connection but the ui still tells me that the slave is offline... – Simon Jul 17 '14 at 08:30
  • Same problem with a Jenkins 1.629, and suggested actions do not change anything. – Alexis Dec 22 '15 at 15:49
1

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.

Joshua
  • 632
  • 6
  • 15