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

Cannot add dumb SSH slave(s) to Jenkins master - Java exception: Unexpected termination of the channel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • ssh-slaves-plugin
    • None
    • Jenkins master ver: 1.6.x
      SSH slaves plugin ver: 1.11
      Java ver on master: openjdk 1.8.0_91
      Java ver on slave: openjdk 1.8.0_91

      Trying to add dumb Fedora slaves (F22) to Jenkins master.
      Keep getting exceptions. SSH auth works fine, but after slave.jar is executed channel
      between master and slave is terminated.

      Error:
      [05/16/16 21:14:53] [SSH] Opening SSH connection to <myserver>:22.
      [05/16/16 21:14:53] [SSH] Authentication successful.
      [05/16/16 21:14:53] [SSH] The remote users environment is:
      BASH=/usr/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]="33" [3]="1" [4]="release" [5]="x86_64-redhat-linux-gnu")
      BASH_VERSION='4.3.33(1)-release'
      DIRSTACK=()
      EUID=5495
      GROUPS=()
      HOME=/var/lib/jenkins
      HOSTNAME=<myserver>.domain.com
      HOSTTYPE=x86_64
      IFS=$' \t\n'
      LOGNAME=jenkins
      MACHTYPE=x86_64-redhat-linux-gnu
      MAIL=/var/mail/jenkins
      OPTERR=1
      OPTIND=1
      OSTYPE=linux-gnu
      PATH=/usr/local/bin:/usr/bin
      PPID=5621
      PS4='+ '
      PWD=/var/lib/jenkins
      SHELL=/bin/bash
      SHELLOPTS=braceexpand:hashall:interactive-comments
      SHLVL=1
      SSH_CLIENT='10.114.5.95 57534 22'
      SSH_CONNECTION='10.114.5.95 57534 10.114.5.88 22'
      TERM=dumb
      UID=5495
      USER=jenkins
      XDG_RUNTIME_DIR=/run/user/5495
      XDG_SESSION_ID=75
      _=bash
      [05/16/16 21:14:53] [SSH] Checking java version of java
      [05/16/16 21:14:53] [SSH] java -version returned 1.8.0_91.
      [05/16/16 21:14:53] [SSH] Starting sftp client.
      [05/16/16 21:14:53] [SSH] Copying latest slave.jar...
      [05/16/16 21:14:53] [SSH] Copied 506,667 bytes.
      Expanded the channel window size to 4MB
      [05/16/16 21:14:53] [SSH] Starting slave process: cd "/var/lib/jenkins" && java -jar slave.jar -slaveLog log.txt
      <===[JENKINS REMOTING CAPACITY]===>channel started
      Slave.jar version: 2.53.3
      This is a Unix slave
      hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running?
      at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:984)
      at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:137)
      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:725)
      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
      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: Remote call on sbu-jslave01 failed
      at hudson.remoting.Channel.call(Channel.java:789)
      at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:536)
      at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:381)
      at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:976)
      ... 7 more
      Caused by: java.lang.InternalError
      at sun.security.ec.SunEC.initialize(Native Method)
      at sun.security.ec.SunEC.access$000(SunEC.java:49)
      at sun.security.ec.SunEC$1.run(SunEC.java:61)
      at sun.security.ec.SunEC$1.run(SunEC.java:58)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at java.lang.Class.newInstance(Class.java:442)
      at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
      at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
      at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
      at sun.security.jca.ProviderList.loadAll(ProviderList.java:282)
      at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:299)
      at sun.security.jca.Providers.getFullProviderList(Providers.java:173)
      at java.security.Security.removeProvider(Security.java:440)
      at hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:815)
      at hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:802)
      at hudson.remoting.UserRequest.perform(UserRequest.java:120)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      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)
      at ......remote call to sbu-jslave01(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
      at hudson.remoting.Channel.call(Channel.java:781)
      ... 10 more
      [05/16/16 21:14:57] Launch failed - cleaning up connection
      [05/16/16 21:14:57] [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:2353)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
      at java.io.ObjectInputStream.<init>(ObjectInputStream.java:301)
      at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
      at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

            ifernandezcalvo Ivan Fernandez Calvo
            sleonovich Sergey Leonovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: