Jenkins集成时报错 hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection fro

Posted tython

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jenkins集成时报错 hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection fro相关的知识,希望对你有一定的参考价值。

Started by user test
Running as SYSTEM
Building remotely on home_windows (mbhCloud_UI_Test) in workspace E:Jenkins_Slave_HomeworkspacembhCloud_UI
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 218.203.237.101/218.203.237.101:32034
		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
		at hudson.remoting.Channel.call(Channel.java:998)
		at hudson.FilePath.act(FilePath.java:1069)
		at hudson.FilePath.act(FilePath.java:1058)
		at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:927)
		at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:857)
		at hudson.scm.SCM.checkout(SCM.java:505)
		at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
		at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
		at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
		at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
		at hudson.model.Run.execute(Run.java:1880)
		at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
		at hudson.model.ResourceController.execute(ResourceController.java:97)
		at hudson.model.Executor.run(Executor.java:428)
java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins
	at hudson.scm.SubversionSCM.descriptor(SubversionSCM.java:2561)
	at hudson.scm.SubversionSCM.createDefaultSVNOptions(SubversionSCM.java:1086)
	at hudson.scm.SubversionSCM.createClientManager(SubversionSCM.java:1076)
	at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:1003)
	at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:980)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3073)
	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
	at hudson.remoting.Request$2.run(Request.java:369)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)
	at java.lang.Thread.run(Unknown Source)
Caused: java.io.IOException: Remote call on JNLP4-connect connection from 218.203.237.101/218.203.237.101:32034 failed
	at hudson.remoting.Channel.call(Channel.java:1004)
	at hudson.FilePath.act(FilePath.java:1069)
	at hudson.FilePath.act(FilePath.java:1058)
	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:927)
	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:857)
	at hudson.scm.SCM.checkout(SCM.java:505)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
	at hudson.model.Run.execute(Run.java:1880)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:428)
Finished: FAILURE

 

解决办法:

打开代理路径:例如E:Jenkins_Slave_Home

在Jenkins Slave上找到jenkins的安装目录下面的jenkins-slave.xml文件,增加参数‘-Xmx1024m ’,然后重启jenkins agent服务,参数修改如下

 

<arguments>-Xmx1024m -Xrs  -jar "%BASE%slave.jar" -jnlpUrl http://123.56.77.191:8080/computer/home_windows/slave-agent.jnlp -secret c51d49f492ba32dec9a20da86c0e919a663b5f6c6c5cd2a4c3583c48405e7a05</arguments>

 

以上是关于Jenkins集成时报错 hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection fro的主要内容,如果未能解决你的问题,请参考以下文章

解决Jenkins连接git时报错Permission denied (publickey)

springCloud集成nacos启动时报错排查

解决集成jpa时报错无法创建少导入entityManagerFactory的问题

CXF集成spring启动时报错,大家帮忙看一下。

Jenkins安装maven integration plugin失败解决方法

spring集成kafka运行时报错:Failed to construct kafka producer] with root cause