-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Jenkins version - 2.60.3
Master running on CentOS 6
Slaves running on CentOS 7
JDK - 1.8
We are getting below error in our builds intermittently. During troubleshooting found that slave.jar gets deleted from slave when this issue occurs. Since we are not doing any cleanup on the slaves, not sure what is causing this. I suspect it's a bug with how jenkins manages the connectivity between slave and master?
Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher
We have the same issue on Jenkins Version 2.105:
$ /apps/java/8/bin/java -cp /data/srvbuild/jenkins/maven3-agent.jar:/apps/maven/3.0/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /apps/maven/3.0 /data/srvbuild/jenkins/slave.jar /data/srvbuild/jenkins/maven3-interceptor.jar /data/srvbuild/jenkins/maven3-interceptor-commons.jar 33869 07:47:54 Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher 07:47:54 at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) 07:47:54 at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) 07:47:54 at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) 07:47:54 at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:138) 07:47:54 at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:70) 07:47:54 ERROR: Failed to parse POMs 07:47:54 java.io.EOFException: unexpected stream termination 07:47:54 at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:408) 07:47:54 at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:353) 07:47:54 at hudson.slaves.Channels.forProcess(Channels.java:115) 07:47:54 at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:294) 07:47:54 at hudson.maven.ProcessCache.get(ProcessCache.java:236) 07:47:54 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:804) 07:47:54 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 07:47:54 at hudson.model.Run.execute(Run.java:1727) 07:47:54 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) 07:47:54 at hudson.model.ResourceController.execute(ResourceController.java:97) 07:47:54 at hudson.model.Executor.run(Executor.java:429) 07:47:54 Finished: FAILURE