Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created June 26, 2015 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssbarnea/370949586b622f751d07 to your computer and use it in GitHub Desktop.
Save ssbarnea/370949586b622f751d07 to your computer and use it in GitHub Desktop.
jenkins-windows-slave-fail-to-start
ust before slave tocco gets launched ...
executing pre-launch scripts ...
[06/26/15 16:02:23] [SSH] Opening SSH connection to tocco.do.citrite.net:22.
[06/26/15 16:02:24] [SSH] Authentication successful.
[06/26/15 16:02:24] [SSH] The remote users environment is:
ALLUSERSPROFILE='C:\ProgramData'
APPDATA='C:\Users\Administrator\AppData\Roaming'
BASH=/bin/bash
BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_EXECUTION_STRING=set
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="3" [2]="39" [3]="2" [4]="release" [5]="i686-pc-cygwin")
BASH_VERSION='4.3.39(2)-release'
COMPUTERNAME=TOCCO
COMSPEC='C:\Windows\system32\cmd.exe'
CYG_SYS_BASHRC=1
ChocolateyInstall='C:\ProgramData\chocolatey'
CommonProgramFiles='C:\Program Files\Common Files'
DFSTRACINGON=FALSE
DIRSTACK=()
EUID=197108
FP_NO_HOST_CHECK=NO
GROUPS=()
HOME=/home/Administrator
HOMEDRIVE=C:
HOMEPATH='\tools\cygwin\home\Administrator'
HOSTNAME=tocco
HOSTTYPE=i686
IFS=$' \t\n'
LOCALAPPDATA='C:\Users\Administrator\AppData\Local'
LOGNAME=Administrator
LOGONSERVER='\\TOCCO'
MACHTYPE=i686-pc-cygwin
MAIL=/var/spool/mail//Administrator
OPTERR=1
OPTIND=1
OS=Windows_NT
OSTYPE=cygwin
PATH='/bin:/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Python24/:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/SourceGear/Common/DiffMerge:/cygdrive/c/Program Files/Microsoft Windows Performance Toolkit:/cygdrive/c/ProgramData/chocolatey/bin:/usr/bin:/cygdrive/c/Program Files/NUnit 2.6.3/bin'
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw'
PIPESTATUS=([0]="0")
PPID=11692
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER='x86 Family 16 Model 8 Stepping 1, AuthenticAMD'
PROCESSOR_LEVEL=16
PROCESSOR_REVISION=0801
PROGRAMFILES='C:\Program Files'
PS4='+ '
PSModulePath='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
PUBLIC='C:\Users\Public'
PWD=/home/Administrator
ProgramData='C:\ProgramData'
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SSH_CLIENT='10.80.16.19 35211 22'
SSH_CONNECTION='10.80.16.19 35211 10.80.16.205 22'
SYSTEMDRIVE=C:
SYSTEMROOT='C:\Windows'
TERM=dumb
TRACE_FORMAT_SEARCH_PATH='\\winseqfe\release\Windows6.0\lh_sp2rtm\6002.18005.090410-1830\x86fre\symbols.pri\TraceFormat'
UID=197108
USER=Administrator
USERDOMAIN=TOCCO
USERNAME=cyg_server
USERPROFILE='C:\Users\Administrator'
VS100COMNTOOLS='C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\'
VS90COMNTOOLS='C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\'
WINDIR='C:\Windows'
_=
[06/26/15 16:02:24] [SSH] Checking java version of java
[06/26/15 16:02:25] [SSH] java -version returned 1.8.0_45.
[06/26/15 16:02:25] [SSH] Starting sftp client.
[06/26/15 16:02:25] [SSH] Copying latest slave.jar...
[06/26/15 16:02:26] [SSH] Copied 478,472 bytes.
Expanded the channel window size to 4MB
[06/26/15 16:02:26] [SSH] Starting slave process: cd "./marvin" && java -jar slave.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
Slave.jar version: 2.51
This is a Windows slave
NOTE: Relative remote path resolved to: C:\tools\cygwin\home\Administrator\marvin\.\marvin
just before slave tocco gets online ...
executing prepare script ...
Executing script 'echo "Prepare script..."
hostname' on master
[jenkins] $ /bin/sh -xe /tmp/hudson7819061744282988801.sh
+ echo Prepare script...
Prepare script...
+ hostname
marvin
script executed successfully.
setting up slave tocco ...
Copying setup script files from deploy
Executing script '#!/bin/bash
echo "Setup script after copy..."
hostname
set +x
echo "s348mdth334d" > ${HOME}/.jenkinspass
set -x
pwd
#./deploy/slave-setup.sh
' on tocco
[marvin] $ /bin/bash C:\Users\Administrator\hudson5000371039477233927.sh
hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running?
at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:953)
at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:133)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Cannot run program "/bin/bash" (in directory "C:\tools\cygwin\home\Administrator\marvin\marvin"): CreateProcess error=3, The system cannot find the path specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
at hudson.Launcher$ProcStarter.start(Launcher.java:382)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:325)
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 java.lang.Thread.run(Unknown Source)
at ......remote call to tocco(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1361)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
at hudson.remoting.Channel.call(Channel.java:753)
at hudson.Launcher$RemoteLauncher.launch(Launcher.java:929)
at hudson.Launcher$ProcStarter.start(Launcher.java:382)
at hudson.Launcher$ProcStarter.join(Launcher.java:389)
at org.jenkinsci.plugins.slave_setup.SetupDeployer.executeScript(SetupDeployer.java:136)
at org.jenkinsci.plugins.slave_setup.SetupDeployer.deployToComputer(SetupDeployer.java:95)
at org.jenkinsci.plugins.slave_setup.SetupDeployer.deployToComputer(SetupDeployer.java:64)
at org.jenkinsci.plugins.slave_setup.ComputerListenerImpl.preOnline(ComputerListenerImpl.java:51)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:530)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:371)
at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:945)
... 7 more
Caused by: java.io.IOException: CreateProcess error=3, The system cannot find the path specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
at hudson.Launcher$ProcStarter.start(Launcher.java:382)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:325)
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 java.lang.Thread.run(Unknown Source)
[06/26/15 16:02:31] Launch failed - cleaning up connection
[06/26/15 16:02:31] [SSH] Connection closed.
ERROR: Connection terminated
java.io.IOException: Unexpected termination of the channel
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2328)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2797)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:802)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:40)
at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment