Jenkins EC2插件无法启动windows slave(意外的EOF)

时间:2017-07-07 07:20:18

标签: windows jenkins amazon-ec2

最近我开始为Windows 2008奴隶创建我的AWS环境。

我已将AMI(2008 x64)配置为:

  • 管理员组下的Jenkins用户
  • Windows防火墙关闭。 (我使用telnet到达445和5985端口的实例)
  • WinRM HTTP配置:

    winrm quickconfig

    winrm set winrm / config / service / Auth @ {Basic =“true”}

    winrm set winrm / config / service @ {AllowUnencrypted =“true”}

    winrm set winrm / config / winrs @ {MaxMemoryPerShellMB =“1024”}

这是Jenkins日志:

WinRM service responded. Waiting for WinRM service to stabilize on Windows slave (i-089160ce7ccb480fb)
WinRM should now be ok on Windows slave (i-089160ce7ccb480fb)
Connected with WinRM.
Creating tmp directory if it does not exist
slave.jar sent remotely. Bootstrapping it
<===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.60
This is a Windows agent
ERROR: Connection terminated
Ouch:
hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected EOF
    at hudson.remoting.Request.abort(Request.java:303)
    at hudson.remoting.Channel.terminate(Channel.java:847)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:92)
    at ......remote call to Windows slave (i-089160ce7ccb480fb)(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
    at hudson.remoting.Request.call(Request.java:172)
    at hudson.remoting.Channel.call(Channel.java:780)
    at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:536)
    at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:381)
    at hudson.plugins.ec2.win.EC2WindowsLauncher.launch(EC2WindowsLauncher.java:70)
    at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:122)
    at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253)
    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    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: Unexpected EOF
    at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:99)
    at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)
    at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
java.io.IOException: Unexpected EOF
    at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:99)
    at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)
    at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)

更新:问题是java x64。使用安装了java x32的Windows x64,它的工作速度很慢,但很有效。

我需要帮助,这对我的工作非常重要。 谢谢!

0 个答案:

没有答案