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

java.io.IOException: Unexpected termination of the channel - SEVERE: I/O error in channel Chunked connection when using jenkins-cli.jar (works on older Hudson version)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cli
    • Labels:
      None
    • Environment:
      * Running on SLES9 Linux server with 4 CPUs and plenty of diskspace.
      * Tomcat 7.0.14
      * JDK 1.6.0_14
      * Only ONE Master configuration - no slaves are configured
      * 3 Executors - (one less than the max number of CPUs)
    • Similar Issues:

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              oldelvet Richard Mortimer
              Reporter:
              mcs13099 mark streit
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: