2016-01-22 131 views
0

Jenkins ver。 1.640,Ubuntu 14.04。这个问题在Jenkins很多次,并且无法解决。我得到以下输出远程在Ubuntu 14.04上启动Jenkins从站时出现错误

 [01/22/16 07:35:31] [SSH] Checking java version of java 

     [01/22/16 07:35:36] [SSH] java -version returned 1.7.0_65. 
     [01/22/16 07:35:36] [SSH] Starting sftp client. 

     [01/22/16 07:35:40] [SSH] Copying latest slave.jar... 

     [01/22/16 07:41:10] [SSH] Copied 506,256 bytes. 

     Expanded the channel window size to 4MB 
     [01/22/16 07:41:12] [SSH] Starting slave process: cd "/home/tmp" && java -jar slave.jar 

     <===[JENKINS REMOTING CAPACITY]===>channel started 

     Slave.jar version: 2.53.2 

     This is a Unix slave 

     Evacuated stdout 

     Connection terminated 
     ERROR: Failed to install restarter 
     hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown 
      at hudson.remoting.Request.abort(Request.java:297) 
      at hudson.remoting.Channel.terminate(Channel.java:847) 
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080) 
      at hudson.remoting.Channel$1.handle(Channel.java:501) 
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) 
      at ......remote call to Mbox_19(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 jenkins.slaves.restarter.JnlpSlaveRestarterInstaller.install(JnlpSlaveRestarterInstaller.java:52) 
      at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller.access$000(JnlpSlaveRestarterInstaller.java:33) 
      at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller$1.call(JnlpSlaveRestarterInstaller.java:39) 
      at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller$1.call(JnlpSlaveRestarterInstaller.java:36) 
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) 
      at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
      at java.lang.Thread.run(Thread.java:745) 
     ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. 
     Caused by: hudson.remoting.Channel$OrderlyShutdown 
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080) 
      at hudson.remoting.Channel$1.handle(Channel.java:501) 
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) 
     Caused by: Command close created at 
      at hudson.remoting.Command.<init>(Command.java:56) 
      at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1074) 
      at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1072) 
      at hudson.remoting.Channel.close(Channel.java:1156) 
      at hudson.remoting.Channel.close(Channel.java:1138) 
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1079) 
      ... 2 more 
     hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown 
      at hudson.remoting.Request.abort(Request.java:297) 
      at hudson.remoting.Channel.terminate(Channel.java:847) 
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080) 
      at hudson.remoting.Channel$1.handle(Channel.java:501) 
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) 
      at ......remote call to Mbox_19(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 org.jenkinsci.modules.launchd_slave_installer.SlaveInstallerFactoryImpl.createIfApplicable(SlaveInstallerFactoryImpl.java:30) 
      at org.jenkinsci.modules.slave_installer.SlaveInstallerFactory.createIfApplicable(SlaveInstallerFactory.java:29) 
      at org.jenkinsci.modules.slave_installer.SlaveInstallerFactory.createFor(SlaveInstallerFactory.java:46) 
      at org.jenkinsci.modules.slave_installer.impl.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:30) 
      at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:573) 
      at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:381) 
      at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:945) 
      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:262) 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
      at java.lang.Thread.run(Thread.java:745) 
     Caused by: hudson.remoting.Channel$OrderlyShutdown 
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1080) 
      at hudson.remoting.Channel$1.handle(Channel.java:501) 
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) 
     Caused by: Command close created at 
      at hudson.remoting.Command.<init>(Command.java:56) 
      at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1074) 
      at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1072) 
      at hudson.remoting.Channel.close(Channel.java:1156) 
      at hudson.remoting.Channel.close(Channel.java:1138) 
      at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1079) 
      ... 2 more 
     [01/22/16 07:48:40] Launch failed - cleaning up connection 
     [01/22/16 07:48:40] [SSH] Connection closed. 

回答

1

看起来与现有的詹金斯bug

看来这可以通过降级到内核3.4.x来解决。另一个可能的解决方法是禁用网络接口上的TCP分散 - 聚集。

0

管理Jenkins - >配置全局安全 - >勾选复选框“启用安全性”, 然后查看“用于JNLP从属代理的TCP端口”并选择随机作为选项。