cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the Jenkins local Client configuration working

fbamberg
13-Aquamarine

How to make the Jenkins local Client configuration working

We have a Jenkins Environment up and running with the PTC Integrity Plugin V 2.1.

 

Running Jobs on slave machines using the remote connection works, but is slow.

To improve the performance we are trying to make the new local Client configuration work.

 

However, we are running into two problems:

 

1. When using an Integrity Source Project that is not named Project.pj we get an error:

 

for : #p=/Test/Test.pj
Preparing to execute si projectinfo for #p=/Test/Test.pj
[LocalClient] Executing Sandbox Verification
[LocalClient] Executing si sandboxes
[LocalClient] si sandboxes response:0
[LocalClient] Searching Sandbox: : D:\workspace\TestPTCLocalClient, for Project Config: [/Test/Test.pj], Build Revision: [null]
[LocalClient] Sandbox not found in : D:\workspace\TestPTCLocalClient, for Project Config: [/Test/Test.pj], Build Revision: [null]
[LocalClient] Executing CreateSandbox :D:\workspace\TestPTCLocalClient
[LocalClient] CreateSandbox response:0
[LocalClient] Clean Copy Requested :true
[LocalClient] Starting Resync Task..
[LocalClient] Executing IntegrityResyncSandboxTask :D:\workspace\TestPTCLocalClient
[LocalClient] Executing ResyncSandbox :D:\workspace\TestPTCLocalClient
[LocalClient] IntegrityResyncSandboxTask invoke Exception :MKS125216: The sandbox file d:\workspace\TestPTCLocalClient\project.pj is not registered with the system.
hudson.AbortException: [Local Client] Failed to resync workspace!

 

2. When using a Project that is named Project.pj we get following error:

 

[LocalClient] Executing ResyncSandbox :D:\workspace\TestPTCLocalClient
[LocalClient] ResyncSandbox Response:0
java.io.IOException: remote file operation failed: D:\workspace\TestPTCLocalClient at hudson.remoting.Channel@3f13f578:JNLP4-connect connection from <hostname>:56654: java.io.FileNotFoundException: \var\jenkins_home\jobs\TestPTCLocalClient\builds\23\changelog.xml (The system cannot find the path specified)
 at hudson.FilePath.act(FilePath.java:993)
 at hudson.FilePath.act(FilePath.java:975)
 at hudson.scm.IntegritySCM.checkoutUsingLocalClient(IntegritySCM.java:441)
 at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:396)
 at hudson.scm.SCM.checkout(SCM.java:495)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
 at hudson.model.Run.execute(Run.java:1735)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:97)
 at hudson.model.Executor.run(Executor.java:405)
Caused by: java.io.FileNotFoundException: \var\jenkins_home\jobs\TestPTCLocalClient\builds\23\changelog.xml (The system cannot find the path specified)
 at java.io.FileOutputStream.open0(Native Method)
 at java.io.FileOutputStream.open(Unknown Source)
 at java.io.FileOutputStream.<init>(Unknown Source)
 at java.io.FileOutputStream.<init>(Unknown Source)
 at hudson.scm.localclient.SandboxUtils.generateChangeLogFile(SandboxUtils.java:288)
 at hudson.scm.localclient.SandboxUtils.resyncSandbox(SandboxUtils.java:274)
 at hudson.scm.localclient.SandboxUtils.resyncSandbox(SandboxUtils.java:247)
 at hudson.scm.localclient.IntegrityResyncSandboxTask.invoke(IntegrityResyncSandboxTask.java:58)
 at hudson.scm.localclient.IntegrityResyncSandboxTask.invoke(IntegrityResyncSandboxTask.java:18)
 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2739)
 at hudson.remoting.UserRequest.perform(UserRequest.java:153)
 at hudson.remoting.UserRequest.perform(UserRequest.java:50)
 at hudson.remoting.Request$2.run(Request.java:336)
 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
 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$1.run(Engine.java:94)
 at java.lang.Thread.run(Unknown Source)
 at ......remote call to JNLP4-connect connection from <hostname>:56654(Native Method)
 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
 at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
 at hudson.remoting.Channel.call(Channel.java:830)
 at hudson.FilePath.act(FilePath.java:986)
 ... 12 more
ERROR: [Local Client] Exception occured during checkout! remote file operation failed: D:\workspace\TestPTCLocalClient at hudson.remoting.Channel@3f13f578:JNLP4-connect connection from <hostname>:56654: java.io.FileNotFoundException: \var\jenkins_home\jobs\TestPTCLocalClient\builds\23\changelog.xml (The system cannot find the path specified)
Finished: FAILURE

 

This error does not appear when using the remote Connection instead of local Client Connection.

 

Can this error be related to our architecture?

Jenkins Master Server on Linux (actually a docker Image), Build Slave on Windows?

 

Any help is appreciated, thanks.

2 REPLIES 2
apawar
14-Alexandrite
(To:fbamberg)

Hello Florian,

 

MKS125216: The sandbox file d:\workspace\TestPTCLocalClient\project.pj is not registered with the system.

this error suggest that, there isn't specified location present or the sandbox is not registered with the user.

It seems, if Jenkins executing the build where host machine is with linux OS then it would be failed with this error.

Also, is user running  the build with same username as Integrity?

 

Here is the article CS118994 for more details.

 

Regards,

Amit

fbamberg
13-Aquamarine
(To:apawar)

The Jenkins Setup is working fine, it's only the local Client Integration that makes trouble.

Please note that it works with Integrity Projects named other than Project.pj.

Announcements

Windchill RVS Users


Please take our

Windchill RV&S Authoring with Formula Editor Survey