Hello
i have a master jenkins running on a (K)Ubuntu machine. I have configured a slave on a Windows machine. The communication between both machines are via ssh. slave.jar is copied without any problems.
When launching the slave machine i'm receiving this error. Many thanks for your help. i have already spent much time for searching what could be the problem here
Jenkins version is 2.62
I have also tried to run this using -Dfile.encoding=ISO8859-1 jvm arguments. But when i do so the process is started but suspend.
Thanks a lot for your help
just before slave build_machine gets launched ... executing pre-launch scripts ... [05/22/17 10:36:59] [SSH] Opening SSH connection to 192.168.178.141:22. [05/22/17 10:36:59] [SSH] WARNING: SSH Host Keys are not being verified. Man-in-the-middle attacks may be possible against this connection. [05/22/17 10:36:59] [SSH] Authentication successful. [05/22/17 10:37:00] [SSH] The remote users environment is: ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\BvSsh_VirtualUsers\AppData\Roaming BitviseSfsDll=00002AF0-18B4B3A0-08EA292F-CE9F8031 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=RT-AF-LAPTOP ComSpec=C:\windows\system32\cmd.exe CYGWIN=mintty HOME=C:\Users\BvSsh_VirtualUsers HOMEDRIVE=C: HOMEPATH=\Users\BvSsh_VirtualUsers LOCALAPPDATA=C:\Users\BvSsh_VirtualUsers\AppData\Local NUMBER_OF_PROCESSORS=4 OnlineServices=Online Services OS=Windows_NT Path=C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\WiFi\bin\;c:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\OpenVPN\bin;C:\Program Files\Perforce;C:\Program Files\Perforce\DVCS\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\OpenSSH\bin;C:\Program Files\PuTTY\;C:\cygwin64\bin;C:\Program Files\Java\jdk1.7.0_51\bin;C:\ProgramData\Oracle\Java\javapath;C:\Users\BvSsh_VirtualUsers\AppData\Local\Microsoft\WindowsApps PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC platformcode=AN PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 78 Stepping 3, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=4e03 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=%ProgramFiles%\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public RegionCode=EMEA SSH_CLIENT=192.168.178.220 58026 22 SSH_CONNECTION=192.168.178.220 58026 192.168.178.141 22 SSHSESSIONID=1007 SystemDrive=C: SystemRoot=C:\windows TEMP=C:\Users\BVSSH_~1\AppData\Local\Temp TMP=C:\Users\BVSSH_~1\AppData\Local\Temp USERDOMAIN=RT-AF-LAPTOP USERNAME=BvSsh_VirtualUsers USERPROFILE=C:\Users\BvSsh_VirtualUsers VIRTGROUP=Virtual Users VIRTUSER=jenkins VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ windir=C:\windows [05/22/17 10:37:00] [SSH] Checking java version of java [05/22/17 10:37:01] [SSH] java -version returned 1.8.0_131. [05/22/17 10:37:01] [SSH] Starting sftp client. [05/22/17 10:37:01] [SSH] Copying latest slave.jar... [05/22/17 10:37:01] [SSH] Copied 719,269 bytes. Expanded the channel window size to 4MB [05/22/17 10:37:01] [SSH] Starting slave process: cd "slave" && java -jar slave.jar -text Running in text mode <===[JENKINS REMOTING CAPACITY]===><===[HUDSON TRANSMISSION BEGINS]===Exception in thread "main" java.io.IOException: Invalid encoded sequence encountered: 3C 3D 3D 3D 5B 48 55 44 53 4F 4E 20 54 52 41 4E 53 4D 49 53 53 49 4F 4E 20 42 45 47 49 4E 53 5D 3D 3D 3D 3E 43 39 61 73 37 51 41 46 73 72 00 1B 68 75 at hudson.remoting.BinarySafeStream$1._read(BinarySafeStream.java:194) at hudson.remoting.BinarySafeStream$1.read(BinarySafeStream.java:125) at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readUTF(Unknown Source) at java.io.ObjectInputStream.readUTF(Unknown Source) at java.io.ObjectStreamClass.readNonProxy(Unknown Source) at java.io.ObjectInputStream.readClassDescriptor(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Capability.read(Capability.java:140) at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:391) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:310) at hudson.remoting.Launcher.main(Launcher.java:655) at hudson.remoting.Launcher.runWithStdinStdout(Launcher.java:595) at hudson.remoting.Launcher.run(Launcher.java:277) at hudson.remoting.Launcher.main(Launcher.java:218) ERROR: Connection terminated
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2638)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3113)
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:853)
at
java.io.ObjectInputStream.<init>(ObjectInputStream.java:349)
at
hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
at
at
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
Caused: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73) ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins.
hudson.remoting.RequestAbortedException
: java.io.IOException: Unexpected termination of the channel at
hudson.remoting.Request.abort(Request.java:307)
at
hudson.remoting.Channel.terminate(Channel.java:896)
at
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:92)
at ......remote call to build_machine(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.Request.call(Request.java:172) at hudson.remoting.Channel.call(Channel.java:829) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:517) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:390) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:1057) at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:144) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:804) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:785) 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:748) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73) Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2638) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3113) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:853) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:349) at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59) [05/22/17 10:37:02] Launch failed - cleaning up connection [05/22/17 10:37:02] [SSH] Connection closed.