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

SEVERE: I/O error in channel HTTP full-duplex channel

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cli
    • None

      Executing CLI commands over http in the recent Hudson revisions results in the following errors being printed in the server log:

      INFO: JNLP slave agent listener started on TCP port 52302
      22-Jul-2010 3:54:42 PM hudson.remoting.Channel$ReaderThread run
      SEVERE: I/O error in channel HTTP full-duplex channel b3cb0c36-1574-4924-946b-0113232c5e7c
      org.mortbay.jetty.EofException
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:303)
      at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050)
      at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:987)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
      at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
      at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:869)

      I run Hudson in jetty with:

      mvn hudson-dev:run

      and I execute the CLI as follows:

      java -jar ./war/target/hudson/WEB-INF/hudson-cli.jar -s http://localhost:8080/ help

      When I run Hudson (1.355) inside Tomcat I get a similar error:

      INFO: Accepted connection #1 from /127.0.0.1:38064
      Jul 22, 2010 11:02:08 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
      WARNING: Connection #1 failed
      java.io.EOFException
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
      at java.io.DataInputStream.readUTF(DataInputStream.java:572)
      at java.io.DataInputStream.readUTF(DataInputStream.java:547)
      at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162)
      Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
      INFO: Accepted connection #2 from /127.0.0.1:38089
      Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
      WARNING: Connection #2 failed
      java.io.EOFException
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
      at java.io.DataInputStream.readUTF(DataInputStream.java:572)
      at java.io.DataInputStream.readUTF(DataInputStream.java:547)
      at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162)
      Jul 22, 2010 11:03:16 AM hudson.remoting.Channel$ReaderThread run
      SEVERE: I/O error in channel HTTP full-duplex channel f6497f2a-1ca1-4699-b5b4-0a22b39b947e
      java.net.SocketTimeoutException
      at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:791)
      at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:822)
      at org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:243)
      at org.apache.coyote.http11.filters.ChunkedInputFilter.parseChunkHeader(ChunkedInputFilter.java:273)
      at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:132)
      at org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:733)
      at org.apache.coyote.Request.doRead(Request.java:428)
      at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)
      at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:372)
      at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317)
      at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
      at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
      at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:856)

      Other than this server exception, the CLI seems to work fine. It outputs the expected result and java returns a zero error code.

          [JENKINS-7052] SEVERE: I/O error in channel HTTP full-duplex channel

          plouj created issue -
          plouj made changes -
          Description Original: Executing CLI commands over http in the recent Hudson revisions results in the following errors being printed in the server log:

          INFO: JNLP slave agent listener started on TCP port 52302
          22-Jul-2010 3:54:42 PM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel HTTP full-duplex channel b3cb0c36-1574-4924-946b-0113232c5e7c
          org.mortbay.jetty.EofException
                  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:303)
                  at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050)
                  at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:987)
                  at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
                  at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
                  at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
                  at hudson.remoting.Channel$ReaderThread.run(Channel.java:869)

          I run Hudson in jetty with:

          mvn hudson-dev:run

          and I execute the CLI as follows:

          java -jar ./war/target/hudson/WEB-INF/hudson-cli.jar -s http://localhost:8080/ help
          New: Executing CLI commands over http in the recent Hudson revisions results in the following errors being printed in the server log:

          INFO: JNLP slave agent listener started on TCP port 52302
          22-Jul-2010 3:54:42 PM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel HTTP full-duplex channel b3cb0c36-1574-4924-946b-0113232c5e7c
          org.mortbay.jetty.EofException
                  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:303)
                  at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050)
                  at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:987)
                  at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
                  at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
                  at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
                  at hudson.remoting.Channel$ReaderThread.run(Channel.java:869)

          I run Hudson in jetty with:

          mvn hudson-dev:run

          and I execute the CLI as follows:

          java -jar ./war/target/hudson/WEB-INF/hudson-cli.jar -s http://localhost:8080/ help

          Other than this server exception, the CLI seems to work fine. It outputs the expected result and java returns a zero error code.
          plouj made changes -
          Description Original: Executing CLI commands over http in the recent Hudson revisions results in the following errors being printed in the server log:

          INFO: JNLP slave agent listener started on TCP port 52302
          22-Jul-2010 3:54:42 PM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel HTTP full-duplex channel b3cb0c36-1574-4924-946b-0113232c5e7c
          org.mortbay.jetty.EofException
                  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:303)
                  at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050)
                  at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:987)
                  at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
                  at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
                  at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
                  at hudson.remoting.Channel$ReaderThread.run(Channel.java:869)

          I run Hudson in jetty with:

          mvn hudson-dev:run

          and I execute the CLI as follows:

          java -jar ./war/target/hudson/WEB-INF/hudson-cli.jar -s http://localhost:8080/ help

          Other than this server exception, the CLI seems to work fine. It outputs the expected result and java returns a zero error code.
          New: Executing CLI commands over http in the recent Hudson revisions results in the following errors being printed in the server log:

          INFO: JNLP slave agent listener started on TCP port 52302
          22-Jul-2010 3:54:42 PM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel HTTP full-duplex channel b3cb0c36-1574-4924-946b-0113232c5e7c
          org.mortbay.jetty.EofException
                  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:303)
                  at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050)
                  at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:987)
                  at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
                  at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
                  at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
                  at hudson.remoting.Channel$ReaderThread.run(Channel.java:869)

          I run Hudson in jetty with:

          mvn hudson-dev:run

          and I execute the CLI as follows:

          java -jar ./war/target/hudson/WEB-INF/hudson-cli.jar -s http://localhost:8080/ help

          When I run Hudson (1.355) inside Tomcat I get a similar error:

          INFO: Accepted connection #1 from /127.0.0.1:38064
          Jul 22, 2010 11:02:08 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
          WARNING: Connection #1 failed
          java.io.EOFException
                  at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
                  at java.io.DataInputStream.readUTF(DataInputStream.java:572)
                  at java.io.DataInputStream.readUTF(DataInputStream.java:547)
                  at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162)
          Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
          INFO: Accepted connection #2 from /127.0.0.1:38089
          Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
          WARNING: Connection #2 failed
          java.io.EOFException
                  at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
                  at java.io.DataInputStream.readUTF(DataInputStream.java:572)
                  at java.io.DataInputStream.readUTF(DataInputStream.java:547)
                  at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162)
          Jul 22, 2010 11:03:16 AM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel HTTP full-duplex channel f6497f2a-1ca1-4699-b5b4-0a22b39b947e
          java.net.SocketTimeoutException
                  at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:791)
                  at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:822)
                  at org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:243)
                  at org.apache.coyote.http11.filters.ChunkedInputFilter.parseChunkHeader(ChunkedInputFilter.java:273)
                  at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:132)
                  at org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:733)
                  at org.apache.coyote.Request.doRead(Request.java:428)
                  at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)
                  at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:372)
                  at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317)
                  at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105)
                  at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
                  at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
                  at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
                  at hudson.remoting.Channel$ReaderThread.run(Channel.java:856)

          Other than this server exception, the CLI seems to work fine. It outputs the expected result and java returns a zero error code.

          Yama Tksh added a comment -

          Same problem to us, and similar to JENKINS-3619 ?

          When we execute help with CLI, results differ every time; empty at some time, full at some time,truncated at some time..

          2011/05/10 14:38:59 hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel CLI channel from /150.61.42.17
          java.io.IOException: Unexpected termination of the channel
          	at hudson.remoting.Channel$ReaderThread.run(Channel.java:985)
          Caused by: java.io.EOFException
          	at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
          

          Our master environment: Jenkins 1.410 on CentOS 5.6, winstone container, Java(TM) SE Runtime Environment (build 1.6.0_25-b06).
          Clients: confirmed on master local and Win 7, Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

          Thanks

          Yama Tksh added a comment - Same problem to us, and similar to JENKINS-3619 ? When we execute help with CLI, results differ every time; empty at some time, full at some time,truncated at some time.. 2011/05/10 14:38:59 hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel CLI channel from /150.61.42.17 java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:985) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) Our master environment: Jenkins 1.410 on CentOS 5.6, winstone container, Java(TM) SE Runtime Environment (build 1.6.0_25-b06). Clients: confirmed on master local and Win 7, Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Thanks

          I just deployed 1.424-SNAPSHOT with all fixes and now it is broken later (on this issue ^^ - jenkins is deployed in Tomcat 6)
          On client side (the same error appears with all commands)

          $ java -jar jenkins-cli.jar -s https://ci.exoplatform.org login
          Exception in thread "main" java.io.IOException: Bogus chunk size
          	at sun.net.www.http.ChunkedInputStream.processRaw(ChunkedInputStream.java:292)
          	at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:545)
          	at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:582)
          	at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:669)
          	at java.io.FilterInputStream.read(FilterInputStream.java:116)
          	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2676)
          	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2671)
          	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2660)
          	at hudson.remoting.Channel.<init>(Channel.java:393)
          	at hudson.remoting.Channel.<init>(Channel.java:354)
          	at hudson.remoting.Channel.<init>(Channel.java:315)
          	at hudson.remoting.Channel.<init>(Channel.java:311)
          	at hudson.remoting.Channel.<init>(Channel.java:299)
          	at hudson.cli.CLI.<init>(CLI.java:111)
          	at hudson.cli.CLI.<init>(CLI.java:82)
          	at hudson.cli.CLI._main(CLI.java:250)
          	at hudson.cli.CLI.main(CLI.java:199)
          

          On server side

          Jul 26, 2011 2:21:41 AM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel HTTP full-duplex channel 19c097d3-3532-4689-ac88-02a74ed04cca
          java.io.IOException: Socket read failed
          	at org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1067)
          	at org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1189)
          	at org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1121)
          	at org.apache.coyote.ajp.AjpAprProcessor.refillReadBuffer(AjpAprProcessor.java:1160)
          	at org.apache.coyote.ajp.AjpAprProcessor.access$000(AjpAprProcessor.java:58)
          	at org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1263)
          	at org.apache.coyote.Request.doRead(Request.java:428)
          	at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)
          	at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:370)
          	at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317)
          	at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105)
          	at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248)
          	at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2541)
          	at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2551)
          	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
          	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
          	at hudson.remoting.Channel$ReaderThread.run(Channel.java:1031)
          

          Arnaud Héritier added a comment - I just deployed 1.424-SNAPSHOT with all fixes and now it is broken later (on this issue ^^ - jenkins is deployed in Tomcat 6) On client side (the same error appears with all commands) $ java -jar jenkins-cli.jar -s https: //ci.exoplatform.org login Exception in thread "main" java.io.IOException: Bogus chunk size at sun.net.www.http.ChunkedInputStream.processRaw(ChunkedInputStream.java:292) at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:545) at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:582) at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:669) at java.io.FilterInputStream.read(FilterInputStream.java:116) at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2676) at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2671) at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2660) at hudson.remoting.Channel.<init>(Channel.java:393) at hudson.remoting.Channel.<init>(Channel.java:354) at hudson.remoting.Channel.<init>(Channel.java:315) at hudson.remoting.Channel.<init>(Channel.java:311) at hudson.remoting.Channel.<init>(Channel.java:299) at hudson.cli.CLI.<init>(CLI.java:111) at hudson.cli.CLI.<init>(CLI.java:82) at hudson.cli.CLI._main(CLI.java:250) at hudson.cli.CLI.main(CLI.java:199) On server side Jul 26, 2011 2:21:41 AM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel 19c097d3-3532-4689-ac88-02a74ed04cca java.io.IOException: Socket read failed at org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1067) at org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1189) at org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1121) at org.apache.coyote.ajp.AjpAprProcessor.refillReadBuffer(AjpAprProcessor.java:1160) at org.apache.coyote.ajp.AjpAprProcessor.access$000(AjpAprProcessor.java:58) at org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1263) at org.apache.coyote.Request.doRead(Request.java:428) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:370) at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2541) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2551) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1031)

          I was having the same issue on hudson 1.395, and I upgraded to Jenkins ver. 1.409.2 and still have the problem.
          I tested also with java version "1.5.0_22" and got the same as java version "1.6.0_20"
          It seemed to be working on 1.395, and then stopped. Could it be a network change or proxy issue on my end?
          Thanks
          --Duncan

          [hudson@gps-hudson hudson]$ java -jar /usr/local/tomcat/webapps/hudson/WEB-INF/jenkins-cli.jar -s http://x:8080/hudson/ build testChunking -s --username x --password-file x
          Sep 20, 2011 3:45:10 PM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel Chunked connection to http://x:8080/hudson/cli
          java.io.IOException: Unexpected termination of the channel
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1015)
          Caused by: java.io.EOFException
          at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1009)
          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:660)
          at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158)
          at $Proxy2.main(Unknown Source)
          at hudson.cli.CLI.execute(CLI.java:135)
          at hudson.cli.CLI.main(CLI.java:187)
          Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
          at hudson.remoting.Request.abort(Request.java:269)
          at hudson.remoting.Channel.terminate(Channel.java:711)
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1033)
          Caused by: java.io.IOException: Unexpected termination of the channel
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1015)
          Caused by: java.io.EOFException
          at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1009)

          Duncan McNaught added a comment - I was having the same issue on hudson 1.395, and I upgraded to Jenkins ver. 1.409.2 and still have the problem. I tested also with java version "1.5.0_22" and got the same as java version "1.6.0_20" It seemed to be working on 1.395, and then stopped. Could it be a network change or proxy issue on my end? Thanks --Duncan [hudson@gps-hudson hudson] $ java -jar /usr/local/tomcat/webapps/hudson/WEB-INF/jenkins-cli.jar -s http://x:8080/hudson/ build testChunking -s --username x --password-file x Sep 20, 2011 3:45:10 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel Chunked connection to http://x:8080/hudson/cli java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1015) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1009) 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:660) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy2.main(Unknown Source) at hudson.cli.CLI.execute(CLI.java:135) at hudson.cli.CLI.main(CLI.java:187) Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.abort(Request.java:269) at hudson.remoting.Channel.terminate(Channel.java:711) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1033) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1015) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1009)

          I believe this is the same issue as JENKINS-11130. The fix for this was recently committed and should be in 1.440. If you are still willing/able then please re-test against 1.440 and report back. Otherwise I will close as this as a duplicate of 11130.

          Richard Mortimer added a comment - I believe this is the same issue as JENKINS-11130 . The fix for this was recently committed and should be in 1.440. If you are still willing/able then please re-test against 1.440 and report back. Otherwise I will close as this as a duplicate of 11130.

          I can test on 1.440 when it is released.

          Duncan McNaught added a comment - I can test on 1.440 when it is released.

          I still get the problem with 1.440. I also get a new message "Failed to authenticate with your SSH keys. Proceeding with anonymous access", but that seems an unrelated issue with 1.440.

          [hudson@gps-hudson common]$ java -jar /usr/local/tomcat/webapps/hudson/WEB-INF/jenkins-cli.jar -s http://<IPADD>:8080/hudson/ build testChunking -s --username USER --password-file ../hudsonpw.txt
          Failed to authenticate with your SSH keys. Proceeding with anonymous access
          Nov 18, 2011 11:40:08 AM hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel Chunked connection to http://<IPADD>:8080/hudson/cli
          java.io.IOException: Unexpected termination of the channel
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1115)
          Caused by: java.io.EOFException
          at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1109)
          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:199)
          at hudson.cli.CLI._main(CLI.java:325)
          at hudson.cli.CLI.main(CLI.java:244)
          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:1139)
          Caused by: java.io.IOException: Unexpected termination of the channel
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1115)
          Caused by: java.io.EOFException
          at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at hudson.remoting.Channel$ReaderThread.run(Channel.java:1109)

          Duncan McNaught added a comment - I still get the problem with 1.440. I also get a new message "Failed to authenticate with your SSH keys. Proceeding with anonymous access", but that seems an unrelated issue with 1.440. [hudson@gps-hudson common] $ java -jar /usr/local/tomcat/webapps/hudson/WEB-INF/jenkins-cli.jar -s http://<IPADD>:8080/hudson/ build testChunking -s --username USER --password-file ../hudsonpw.txt Failed to authenticate with your SSH keys. Proceeding with anonymous access Nov 18, 2011 11:40:08 AM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel Chunked connection to http://<IPADD>:8080/hudson/cli java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1115) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1109) 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:199) at hudson.cli.CLI._main(CLI.java:325) at hudson.cli.CLI.main(CLI.java:244) 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:1139) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1115) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1109)

          Your workaround does fix the problem though - I'm very happy with that:

          https://issues.jenkins-ci.org/browse/JENKINS-11130
          One workaround is to set the Tomcat Connector connectionUploadTimeout and disableUploadTimeout attributes in the Tomcat server.xml file. Setting it to 60 seconds allows the existing ping at 30 seconds duration to work properly.

          <Connector port="8080" protocol="HTTP/1.1"
          connectionTimeout="20000"
          disableUploadTimeout="false"
          connectionUploadTimeout="60000"
          URIEncoding="UTF-8"
          redirectPort="8443" />

          Thanks
          --Duncan

          Duncan McNaught added a comment - Your workaround does fix the problem though - I'm very happy with that: https://issues.jenkins-ci.org/browse/JENKINS-11130 One workaround is to set the Tomcat Connector connectionUploadTimeout and disableUploadTimeout attributes in the Tomcat server.xml file. Setting it to 60 seconds allows the existing ping at 30 seconds duration to work properly. <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" disableUploadTimeout="false" connectionUploadTimeout="60000" URIEncoding="UTF-8" redirectPort="8443" /> Thanks --Duncan

            Unassigned Unassigned
            plouj plouj
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: