-
Bug
-
Resolution: Not A Defect
-
Major
Hi,
im facing an issue while running Jenkins agent as a windows service. I have configured one of the Jenkins Slave/Node with remoting root directory using Network shared path and when i launching using web browser it is running successful. however when i click on install as a service it says connection broken msg as below, Also attached error logs for reference.
Kindly assist on this problem.
Connection was broken
java.nio.channels.ClosedChannelException at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154) at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179) at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Seems you have a permission problem:
Exception in thread "main" java.io.FileNotFoundException: \\Machine2\Temp_Slave\remoting\logs\remoting.log.0 (Access is denied)
Is the service running with the same user?
Have you configured \\Machine2\Temp_Slave as the agents root? Maybe use not a network path but a local path like c:\Temp_Slave