java.io.EOFException: unexpected stream termination

Jenkins JIRA | Steve Donie | 2 years ago
  1. 0

    I upgraded from 1.573 to 1.597 (and apparently the downgrade path is painful) and suddenly all my linux ec2 slaves can't connect Getting this stack trace in the slave connect logs {code} Node jenkins-aws-centos-6.5-64-LinuxBuildOrTest-v1.4 (i-70f6ea9c)(i-70f6ea9c) is ready Connecting to ec2-54-159-86-48.compute-1.amazonaws.com on port 22, with timeout 10000. Connected via SSH. bootstrap() Getting keypair... Using key: -------- Authenticating as ------- take over connection Creating tmp directory () if it does not exist mkdir: missing operand Try `mkdir --help' for more information. Verifying that java exists java full version "1.7.0_51-b13" Copying slave.jar Launching slave agent: java -jar /slave.jar ERROR: unexpected stream termination java.io.EOFException: unexpected stream termination at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:280) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:365) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:172) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:107) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:241) 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:744) {code}

    Jenkins JIRA | 2 years ago | Steve Donie
    java.io.EOFException: unexpected stream termination
  2. 0

    I upgraded from 1.573 to 1.597 (and apparently the downgrade path is painful) and suddenly all my linux ec2 slaves can't connect Getting this stack trace in the slave connect logs {code} Node jenkins-aws-centos-6.5-64-LinuxBuildOrTest-v1.4 (i-70f6ea9c)(i-70f6ea9c) is ready Connecting to ec2-54-159-86-48.compute-1.amazonaws.com on port 22, with timeout 10000. Connected via SSH. bootstrap() Getting keypair... Using key: -------- Authenticating as ------- take over connection Creating tmp directory () if it does not exist mkdir: missing operand Try `mkdir --help' for more information. Verifying that java exists java full version "1.7.0_51-b13" Copying slave.jar Launching slave agent: java -jar /slave.jar ERROR: unexpected stream termination java.io.EOFException: unexpected stream termination at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:280) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:365) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:172) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:107) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:241) 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:744) {code}

    Jenkins JIRA | 2 years ago | Steve Donie
    java.io.EOFException: unexpected stream termination
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Add the suffix below into a ssh-slave. {code:java} 2> >(tee -a slave-stderr.log 1>&2) {code} Then, the following happens: {code:java} [01/18/16 08:32:37] [SSH] Copied 478,051 bytes. Expanded the channel window size to 4MB [01/18/16 08:32:37] [SSH] Starting slave process: cd "/home/vagrant" && java -jar slave.jar2> >(tee -a slave-stderr.log 1>&2) Unable to access jarfile slave.jar2 hudson.util.IOException2: Slave JVM has terminated. Exit code=1 at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:953) 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: java.io.EOFException: unexpected stream termination at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:280) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:371) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:945) ... 7 more [01/18/16 08:32:37] Launch failed - cleaning up connection {code} The same happens with the prefix.

    Jenkins JIRA | 11 months ago | Félix Belzunce Arcos
    hudson.util.IOException2: Slave JVM has terminated. Exit code=1

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.EOFException

      unexpected stream termination

      at hudson.remoting.ChannelBuilder.negotiate()
    2. Hudson :: Remoting Layer
      ChannelBuilder.build
      1. hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331)
      2. hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:280)
      2 frames
    3. Hudson
      SlaveComputer.setChannel
      1. hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:365)
      1 frame
    4. hudson.plugins.ec2
      EC2ComputerLauncher.launch
      1. hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:172)
      2. hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:107)
      2 frames
    5. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:241)
      1 frame
    6. jenkins.util
      ContextResettingExecutorService$2.call
      1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:744)
      4 frames