Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46305

Jenkins Slave FATAL: command execution failed

XMLWordPrintable

      I've setup a Jenkins master in AWS ECS and running Amazon EC2 Container Service Plugin for Slave.

      Current AMI im using is:* ami-275ffe31*

      instance type: t2.medium

      have added in* Jenkins Master > Managed Jenkins > Script Console *

      Jenkins.instance.injector.getInstance(hudson.slaves.ChannelPinger.class).@pingIntervalSeconds = -1
      Jenkins.instance.injector.getInstance(hudson.slaves.ChannelPinger.class).@pingTimeoutSeconds = -1

      Also added in the Amazon EC2 Container Service Plugin
      ECS task creation timeout to 90000

      Added in JVM arguments in Slave

      -Dhudson.remoting.Launcher.pingIntervalSec=-1

      Somehow still getting Error below:

      FATAL: command execution failed
      java.nio.channels.ClosedChannelException
      at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
      at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)
      at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:721)
      at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused: java.io.IOException: Backing channel 'JNLP4-connect connection from ip-100-64-206-141.example.net/100.64.206.141:8951' is disconnected.
      at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:192)
      at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:257)
      at com.sun.proxy.$Proxy93.isAlive(Unknown Source)
      at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1043)
      at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1035)
      at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:155)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
      at hudson.model.Build$BuildExecution.build(Build.java:206)
      at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
      at hudson.model.Run.execute(Run.java:1735)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)
      Build step 'Execute shell' marked build as failure

            Unassigned Unassigned
            rickytan Ricky Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: