Windows farm | jenkins slave configuration via "Launch agent via execution of command on the master"

10 views
Skip to first unread message

LnT

unread,
Jan 31, 2019, 8:19:34 AM1/31/19
to Jenkins Users

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 -u jenkinsUser -p Password cmd /C "java -jar C:\slave\agent.jar"
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals -
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_node
java.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
--------------------------------------------------------------------------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages