java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When the master attempts to connect to the OS X slave via SSH, it will establish the SSH connection, but fails with OutOfMemoryError during remoting communication. [09/20/12 11:45:56] [SSH] Opening SSH connection to mavis:22. [09/20/12 11:45:56] [SSH] Authenticating as jenkins with E:\Jenkins\id_dsa. [09/20/12 11:45:57] [SSH] Authentication successful. [09/20/12 11:45:58] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin12") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=1571527887 GROUPS=() HOME=/Users/jenkins HOSTNAME=mavis.local HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin12 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin12 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=71651 PS4='+ ' PWD=/Users/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='10.234.1.39 39636 22' SSH_CONNECTION='10.234.1.39 39636 10.234.1.24 22' TERM=dumb TMPDIR=/var/folders/vp/nsslsj0x1fv8j8cw_3mkmw3dftq76g/T/ UID=1571527887 USER=jenkins _=bash [09/20/12 11:45:58] [SSH] Checking java version of java [09/20/12 11:45:58] [SSH] java -version returned 1.6.0_33. [09/20/12 11:45:58] [SSH] Starting sftp client. [09/20/12 11:45:58] [SSH] Copying latest slave.jar... [09/20/12 11:45:58] [SSH] Copied 278,201 bytes. [09/20/12 11:45:58] [SSH] Starting slave process: cd '/var/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(Unknown Source) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source) at sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source) at java.io.ObjectStreamClass.getSerializableConstructor(Unknown Source) at java.io.ObjectStreamClass.access$1500(Unknown Source) at java.io.ObjectStreamClass$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) [09/20/12 11:45:59] [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$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [09/20/12 11:45:59] slave agent was 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$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by Ryan Wightman,
  • When the master attempts to connect to the OS X slave via SSH, it will establish the SSH connection, but fails with OutOfMemoryError during remoting communication. [09/20/12 11:45:56] [SSH] Opening SSH connection to mavis:22. [09/20/12 11:45:56] [SSH] Authenticating as jenkins with E:\Jenkins\id_dsa. [09/20/12 11:45:57] [SSH] Authentication successful. [09/20/12 11:45:58] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin12") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=1571527887 GROUPS=() HOME=/Users/jenkins HOSTNAME=mavis.local HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin12 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin12 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=71651 PS4='+ ' PWD=/Users/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='10.234.1.39 39636 22' SSH_CONNECTION='10.234.1.39 39636 10.234.1.24 22' TERM=dumb TMPDIR=/var/folders/vp/nsslsj0x1fv8j8cw_3mkmw3dftq76g/T/ UID=1571527887 USER=jenkins _=bash [09/20/12 11:45:58] [SSH] Checking java version of java [09/20/12 11:45:58] [SSH] java -version returned 1.6.0_33. [09/20/12 11:45:58] [SSH] Starting sftp client. [09/20/12 11:45:58] [SSH] Copying latest slave.jar... [09/20/12 11:45:58] [SSH] Copied 278,201 bytes. [09/20/12 11:45:58] [SSH] Starting slave process: cd '/var/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 This is a Unix slave ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(Unknown Source) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source) at sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source) at java.io.ObjectStreamClass.getSerializableConstructor(Unknown Source) at java.io.ObjectStreamClass.access$1500(Unknown Source) at java.io.ObjectStreamClass$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) [09/20/12 11:45:59] [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$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [09/20/12 11:45:59] slave agent was 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$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by Ryan Wightman,
  • Jenkins slave terminated error message
    via by Lily Fu,
  • Unable to startup slave post master upgrade to 1.576
    via by Sudhakar.Shanmugam,
  • Error with termination of remote channel
    via by chris hemphill,
  • Communication problem with slave is not notified by email
    via by Rui Fernando Hayashi,
  • Windows XP slave agent launch failure on 1.519
    via by Jonathan Daugherty,
    • 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$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Users with the same issue

    Unknown User
    19 times, last one,
    Unknown visitor1 times, last one,
    ex00
    1 times, last one,
    eti22
    1 times, last one,
    Unknown visitor1 times, last one,
    10 more bugmates