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

Unstable builds due to "SEVERE: I/O error in channel Channel to Maven"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • Linux Ubuntu, Tomcat 6.x

      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:

       
      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
      

      We have Jenkins running in Tomcat and by running the build and inspecting
      tomcat's log I see:

       
      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) 
      

      Restarting tomcat makes the problem go away (until it "randomly" appears again after a few days)

          [JENKINS-13171] Unstable builds due to "SEVERE: I/O error in channel Channel to Maven"

          evernat added a comment -

          Is it reproduced with a recent Jenkins version?

          evernat added a comment - Is it reproduced with a recent Jenkins version?

          evernat added a comment -

          No response from the reporter, so resolving as incomplete.

          evernat added a comment - No response from the reporter, so resolving as incomplete.

          Christoph Linder added a comment - - edited

          Still exists in 1.632

          Christoph Linder added a comment - - edited Still exists in 1.632

          Current error message:
          Oct 21, 2015 8:37:50 AM SEVERE hudson.remoting.SynchronousCommandTransport$ReaderThread run

          I/O error in channel Channel to Maven [/apps/jenkins/data/tools/hudson.model.JDK/JDK_1.6_32_x64/bin/java, -XX:MaxPermSize=256m, -cp, /apps/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.7.jar:/apps/jenkins/data/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.4/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /apps/jenkins/data/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.4, /apps/jenkins/data/war/WEB-INF/lib/remoting-2.52.jar, /apps/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.7.jar, /apps/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.7.jar, 48727]
          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:2304)
          at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2773)
          at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:798)
          at java.io.ObjectInputStream.<init>(ObjectInputStream.java:298)
          at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:40)
          at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
          at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

          Christoph Linder added a comment - Current error message: Oct 21, 2015 8:37:50 AM SEVERE hudson.remoting.SynchronousCommandTransport$ReaderThread run I/O error in channel Channel to Maven [/apps/jenkins/data/tools/hudson.model.JDK/JDK_1.6_32_x64/bin/java, -XX:MaxPermSize=256m, -cp, /apps/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.7.jar:/apps/jenkins/data/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.4/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /apps/jenkins/data/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.4, /apps/jenkins/data/war/WEB-INF/lib/remoting-2.52.jar, /apps/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.7.jar, /apps/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.7.jar, 48727] 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:2304) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2773) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:798) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:298) at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:40) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

          We are having similar problems. Can this be related to maven3-agent-1.7.jar ?

          Andreas Pelzer added a comment - We are having similar problems. Can this be related to maven3-agent-1.7.jar ?

          Julien May added a comment - - edited

          Hi

          This issue still exists with Jenkins v2.7.4, Multi-Branch Project Plugin v0.51 and Maven v3.3.9.

          From the Jenkins System Logs i see

           
          I/O error in channel Channel to Maven [java, -cp, /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.7.jar:/opt/maven/boot/plexus-classworlds-2.5.2.jar:/opt/maven/conf/logging, jenkins.maven3.agent.Maven32Main, /opt/maven, /var/jenkins_home/war/WEB-INF/lib/remoting-2.60.jar, /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.7.jar, /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.7.jar, 36930]
          java.io.IOException: Unexpected termination of the channel
          	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
          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:59)
          

          when Build modules in parallel is enabled.
          Building modules in parallel however works when declaring a job without the Multi-Branch Project Plugin

          IMHO this issue also is related to: https://issues.jenkins-ci.org/browse/JENKINS-10540

          As this issue already exists for several years are there any concrete plans to fix this?
          Thanks for your information.

          kinds rgds julien

          Julien May added a comment - - edited Hi This issue still exists with Jenkins v2.7.4, Multi-Branch Project Plugin v0.51 and Maven v3.3.9. From the Jenkins System Logs i see I/O error in channel Channel to Maven [java, -cp, /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.7.jar:/opt/maven/boot/plexus-classworlds-2.5.2.jar:/opt/maven/conf/logging, jenkins.maven3.agent.Maven32Main, /opt/maven, /var/jenkins_home/war/WEB-INF/lib/remoting-2.60.jar, /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.7.jar, /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.7.jar, 36930] java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73) 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:59) when Build modules in parallel is enabled. Building modules in parallel however works when declaring a job without the Multi-Branch Project Plugin IMHO this issue also is related to: https://issues.jenkins-ci.org/browse/JENKINS-10540 As this issue already exists for several years are there any concrete plans to fix this? Thanks for your information. kinds rgds julien

            Unassigned Unassigned
            wild_oscar Miguel Almeida
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: