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

Jenkins CLI: java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A

      We use the jenkins-cli.jar to attach new slaves and this has been working successfully in v1.534, however when upgrading to v1.554.1, we are unable to do so and a "SEVERE: I/O error in channel Chunked connection" error occurs.

      Tested on linux slaves using java version "1.6.0_35" and "1.7.0_45" and the same error occurs.

      Attached console output to error.log

      Workaround: -Dhudson.diyChunking=false on both slave/agent and master sides

          [JENKINS-23232] Jenkins CLI: java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A

          Ashok Manji created issue -
          Ashok Manji made changes -
          Link New: This issue is related to JENKINS-20128 [ JENKINS-20128 ]
          Ashok Manji made changes -
          Component/s New: core [ 15593 ]
          Component/s New: master-slave [ 15489 ]

          My guess is that this is because hudson.diyChunking is still set to true, and between Jetty and Jenkins we end up double-decoding chunked encoding. Needs to verify.

          Kohsuke Kawaguchi added a comment - My guess is that this is because hudson.diyChunking is still set to true, and between Jetty and Jenkins we end up double-decoding chunked encoding. Needs to verify.

          Ashok Manji added a comment -

          Thanks for the update Kohsuke. Looking forward to the resolution

          Ashok Manji added a comment - Thanks for the update Kohsuke. Looking forward to the resolution

          Daniel Beck added a comment -

          Ashok: What's the output of

          System.getProperty('hudson.diyChunking')

          in Manage Jenkins » Script Console?

          Daniel Beck added a comment - Ashok: What's the output of System .getProperty( 'hudson.diyChunking' ) in Manage Jenkins » Script Console?

          Ashok Manji added a comment -

          @Daniel Beck - Result: true

          Ashok Manji added a comment - @Daniel Beck - Result: true

          Peter Kline added a comment - - edited

          Possibly related – JENKINS-23223

          Peter Kline added a comment - - edited Possibly related – JENKINS-23223
          Peter Kline made changes -
          Link New: This issue is related to JENKINS-23223 [ JENKINS-23223 ]

          Daniel Beck added a comment -

          Ashok: Check your startup scripts (e.g. /etc/sysconfig/jenkins, /etc/init.d/jenkins, ... when using the RPM installer) for any occurrence of

          -Dhudson.diyChunking=true

          and remove it. Restart Jenkins using

          service restart jenkins

          (rather than via e.g. /safeRestart) so it picks up the changes. See whether the issue disappears.

          Daniel Beck added a comment - Ashok: Check your startup scripts (e.g. /etc/sysconfig/jenkins, /etc/init.d/jenkins, ... when using the RPM installer) for any occurrence of -Dhudson.diyChunking= true and remove it. Restart Jenkins using service restart jenkins (rather than via e.g. /safeRestart) so it picks up the changes. See whether the issue disappears.

            oleg_nenashev Oleg Nenashev
            ashokm Ashok Manji
            Votes:
            6 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: