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.

  • We are currently seeing the following issue using the jenkins-cli.jar with Jenkins 1.430. Tried going to 1.431, same issue. Each time we insure we have the latest matching jenkins-cli.jar using the link on the Manage Jenkins page. From inside a Jenkins job (I'll call it the parent) I'm trying to execute multiple jobs using the client jar. On the last job, I include the -s parameter so the parent job will not finish until the last job in the list is complete. The problem is that after about 15 secs of waiting, the parent job ends (fails) with the EOF exception below. IMPORTANT INFO: When performing this exact same build using an older hudson-cli.jar with an older (pre-fork) version of Hudson v1.339, THIS WORKS. We want to move all of our builds over to the latest Jenkins version, and this is blocking us at the moment. We have searched all day and tried numerous things including reducing the number of jobs and also trying to run them sequentially. Stack trace seen in Console at failure: [workspace] $ /bin/bash -xe /opt/apache-tomcat-7.0.14_jenkins/temp/ hudson4690948305077288103.sh + WAR_FOLDER=/tmp/trunk/UIToolkit1.1.2 + rm -rf /tmp/trunk/UIToolkit1.1.2/calendar.war /tmp/trunk/ UIToolkit1.1.2/Pay.war /tmp/trunk/UIToolkit1.1.2/OrgChart.war + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform- Calendar -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform-Pay -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform- OrgChart -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform- PolicyAck -s -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 Sep 16, 2011 4:35:37 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel Chunked connection to http://jenkins-host:8082/jenkins/cli java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093) Caused by: java.io.EOFException at java.io.ObjectInputStream $BlockDataInputStream.peekByte(ObjectInputStream.java:2498) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273) at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 348) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1087) Exception in thread "main" hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.call(Request.java:149) at hudson.remoting.Channel.call(Channel.java:681) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java­: 158) at $Proxy2.main(Unknown Source) at hudson.cli.CLI.execute(CLI.java:171) at hudson.cli.CLI._main(CLI.java:297) at hudson.cli.CLI.main(CLI.java:216) Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.abort(Request.java:273) at hudson.remoting.Channel.terminate(Channel.java:732) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1117) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093) Caused by: java.io.EOFException at java.io.ObjectInputStream $BlockDataInputStream.peekByte(ObjectInputStream.java:2498) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273) at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 348) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1087) Build step 'Execute shell' marked build as failure Notifying upstream projects of job completion Finished: FAILURE
    via by mark streit,
  • We are currently seeing the following issue using the jenkins-cli.jar with Jenkins 1.430. Tried going to 1.431, same issue. Each time we insure we have the latest matching jenkins-cli.jar using the link on the Manage Jenkins page. From inside a Jenkins job (I'll call it the parent) I'm trying to execute multiple jobs using the client jar. On the last job, I include the -s parameter so the parent job will not finish until the last job in the list is complete. The problem is that after about 15 secs of waiting, the parent job ends (fails) with the EOF exception below. IMPORTANT INFO: When performing this exact same build using an older hudson-cli.jar with an older (pre-fork) version of Hudson v1.339, THIS WORKS. We want to move all of our builds over to the latest Jenkins version, and this is blocking us at the moment. We have searched all day and tried numerous things including reducing the number of jobs and also trying to run them sequentially. Stack trace seen in Console at failure: [workspace] $ /bin/bash -xe /opt/apache-tomcat-7.0.14_jenkins/temp/ hudson4690948305077288103.sh + WAR_FOLDER=/tmp/trunk/UIToolkit1.1.2 + rm -rf /tmp/trunk/UIToolkit1.1.2/calendar.war /tmp/trunk/ UIToolkit1.1.2/Pay.war /tmp/trunk/UIToolkit1.1.2/OrgChart.war + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform- Calendar -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform-Pay -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform- OrgChart -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 + /opt/Sun/jdk1.6.0_14/bin/java -jar /opt/Sun/jdk1.6.0_14/lib/jenkins- cli.jar -s http://jenkins-host:8082/jenkins/ build XYZ_Platform- PolicyAck -s -p SVN_PATH=trunk -p STATIC_PATH=UIToolkit1.1.2 Sep 16, 2011 4:35:37 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel Chunked connection to http://jenkins-host:8082/jenkins/cli java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093) Caused by: java.io.EOFException at java.io.ObjectInputStream $BlockDataInputStream.peekByte(ObjectInputStream.java:2498) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273) at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 348) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1087) Exception in thread "main" hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.call(Request.java:149) at hudson.remoting.Channel.call(Channel.java:681) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java­: 158) at $Proxy2.main(Unknown Source) at hudson.cli.CLI.execute(CLI.java:171) at hudson.cli.CLI._main(CLI.java:297) at hudson.cli.CLI.main(CLI.java:216) Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.abort(Request.java:273) at hudson.remoting.Channel.terminate(Channel.java:732) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1117) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093) Caused by: java.io.EOFException at java.io.ObjectInputStream $BlockDataInputStream.peekByte(ObjectInputStream.java:2498) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273) at java.io.ObjectInputStream.readObject(ObjectInputStream.java: 348) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1087) Build step 'Execute shell' marked build as failure Notifying upstream projects of job completion Finished: FAILURE
    via by mark streit,
  • Jenkins users - Unexpected termination of the channel
    via by Unknown author,
  • I am submitting this as per Richard Mortimer's suggestion in https://issues.jenkins-ci.org/browse/JENKINS-12037?focusedCommentId=160224&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-160224 I've just posted on the mailing list (http://groups.google.com/group/jenkinsci-users/browse_frm/thread/7f96cdf57ffed6cf# ) - perhaps this is the same issue. I have a multi-module project where I'm running the Maven goal "clean surefire-report:report". While the tests pass in our local machines, we're randomly having failures in one of the modules in Jenkins. The console shows: {noformat} mavenExecutionResult exceptions not empty message : Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project cm-web: Error occurred in starting fork, check output in log cause : Error occurred in starting fork, check output in log Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project cm-web: Error occurred in starting fork, check output in log {noformat} We have Jenkins running in Tomcat and by running the build and inspecting tomcat's log I see: {noformat} SEVERE: I/O error in channel Channel to Maven [java, -cp, /usr/share/tomcat6/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/usr/share/tomcat6/.jenkins/tools/Jenkins_maven/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /usr/share/tomcat6/.jenkins/tools/Jenkins_maven, /usr/share/tomcat6/webapps/jenkins/WEB-INF/lib/remoting-2.12.jar, /usr/share/tomcat6/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar, 40284] java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1133) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127) {noformat} Restarting tomcat makes the problem go away (until it "randomly" appears again after a few days)
    via by Miguel Almeida,
  • I am submitting this as per Richard Mortimer's suggestion in https://issues.jenkins-ci.org/browse/JENKINS-12037?focusedCommentId=160224&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-160224 I've just posted on the mailing list (http://groups.google.com/group/jenkinsci-users/browse_frm/thread/7f96cdf57ffed6cf# ) - perhaps this is the same issue. I have a multi-module project where I'm running the Maven goal "clean surefire-report:report". While the tests pass in our local machines, we're randomly having failures in one of the modules in Jenkins. The console shows: {noformat} mavenExecutionResult exceptions not empty message : Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project cm-web: Error occurred in starting fork, check output in log cause : Error occurred in starting fork, check output in log Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project cm-web: Error occurred in starting fork, check output in log {noformat} We have Jenkins running in Tomcat and by running the build and inspecting tomcat's log I see: {noformat} SEVERE: I/O error in channel Channel to Maven [java, -cp, /usr/share/tomcat6/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/usr/share/tomcat6/.jenkins/tools/Jenkins_maven/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /usr/share/tomcat6/.jenkins/tools/Jenkins_maven, /usr/share/tomcat6/webapps/jenkins/WEB-INF/lib/remoting-2.12.jar, /usr/share/tomcat6/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar, 40284] java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1133) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127) {noformat} Restarting tomcat makes the problem go away (until it "randomly" appears again after a few days)
    via by Miguel Almeida,
    • java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093)
    No Bugmate found.