Hello -

Looking for help - w.r.t jenkins slave configuration via *"Launch agent via 
execution of command on the master"*
As I'm looking to minimize the memory consumption in remote slave machine 
via Availability *"Take this agent online when in demand and offline when 
idle"*

Jenkins master is Windows 2008 Server
jenkins slave is Windows 2008 Server

Installed psexec in Jenkins master (ref : 
https://docs.microsoft.com/en-us/sysinternals/downloads/psexec)
Please find below log of lauching the slave agent. Agent is not getting 
connected. 




*--------------------------------------------------------------------------------------------------------------------------------------just
 
before slave test_node gets launched ...executing pre-launch scripts 
...[01/31/19 14:06:52] Launching agent$ C:\PSTools\psexec **\\RemoteServer* 
<file://\\RemoteServer>* -u jenkinsUser -p Password cmd /C "java -jar 
C:\slave\agent.jar"*


*PsExec v2.2 - Execute processes remotelyCopyright (C) 2001-2016 Mark 
RussinovichSysinternals - **www.sysinternals.com* 
<http://www.sysinternals.com>

*<===[JENKINS REMOTING CAPACITY]===Exception in thread "main" Connecting to 
RemoteServer...*

*Starting PSEXESVC service on RemoteServer...*

*Connecting with PsExec service on RemoteServer...*

*Starting cmd on RemoteServer...*






















*cmd exited on RemoteServer with error code 1.ERROR: Unable to launch the 
agent for test_nodejava.io.EOFException at 
java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) at 
java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) at 
java.io.ObjectInputStream.readStreamHeader(Unknown Source) at 
java.io.ObjectInputStream.<init>(Unknown Source) at 
hudson.remoting.Capability$2.<init>(Capability.java:151) at 
hudson.remoting.Capability.read(Capability.java:151) at 
hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:435) at 
hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:354) at 
hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:415) at 
hudson.slaves.CommandLauncher.launch(CommandLauncher.java:153) at 
hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:288) at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
 at 
jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
 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 
java.lang.Thread.run(Unknown Source)ERROR: Process terminated with exit 
code 
1--------------------------------------------------------------------------------------------------------------------------------------*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e6df1c91-217c-40dd-a759-d90369201650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to