While connecting to windows machine as slave, i am getting following error i think its some network related issue, but need some help where to start looking or what is a pos
In my case, I am running swarm-client-2.0-jar-with-dependencies.jar on a linux host, and it was using Java 7.
java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Our jenkins master was upgraded and is now running Java 8
java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Well... for me it worked the following solution:
mark the node "temporary offline" and put it back "online" again
reconnect
The user2015131 suggestion inspired me to find my solution for this issue.
I explain my case, it may work for some people:
So the Jenkins service's code stored on the slave is outdated.
Follow the next steps on every slave machine:
Update Java version.
Be sure the Java version is the same or compatible with the one installed on the master computer.
Remove the old slave code. It's located inside the folder specified in the Remote Root Directory field under the node's configuration.
I removed every jenkins-slave.* file, leaving only the jenkins_agent.pid file and the folders "remoting" and "workspace".
Go to the slave node interface on Jenkins from the web browser and click on the button.
You will download a new JNLP file to install a new (updated) Jenkins service on the slave machine.
Hope it helps!