• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Hudson 1.378-1.383

      Since 1.378, the remoting functions of hudson have become unstable. When using a Launcher to execute commands remotely on a slave, sometimes it fails to return any data. The following stack trace is found in the hudson log when this occurs.

      Oct 15, 2010 10:12:17 AM hudson.remoting.ProxyOutputStream$Chunk$1 run
      WARNING: Failed to write to stream
      java.io.IOException: Pipe closed
              at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:244)
              at java.io.PipedInputStream.receive(PipedInputStream.java:210)
              at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
              at java.io.OutputStream.write(OutputStream.java:58)
              at hudson.util.DelegatingOutputStream.write(DelegatingOutputStream.java:51)
              at hudson.remoting.ProxyOutputStream$Chunk$1.run(ProxyOutputStream.java:185)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      

      This is currently causing issues with the perforce plugin (JENKINS-7664), and I've been able to reproduce it using the hudson_main_trunk#331 build on ci.hudson-labs.org as well.

          [JENKINS-7809] Remote Launcher randomly returns no data.

          Rob Petti created issue -
          Rob Petti made changes -
          Link New: This issue is blocking JENKINS-7664 [ JENKINS-7664 ]
          Rob Petti made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]

          torbent added a comment - - edited

          Oh, so that's what's causing all those warnings?
          I was just about to submit an issue on them
          I'm the submitter of JENKINS-7664 so I can, at least anecdotally, confirm the connection.

          We're still running 1.379, by the way, so it's not limited to 1.380

          torbent added a comment - - edited Oh, so that's what's causing all those warnings? I was just about to submit an issue on them I'm the submitter of JENKINS-7664 so I can, at least anecdotally, confirm the connection. We're still running 1.379, by the way, so it's not limited to 1.380

          Rob Petti added a comment -

          Updated the description to make it more clear which versions are affected. I've also tested with 1.381, and the problem still exists.

          Rob Petti added a comment - Updated the description to make it more clear which versions are affected. I've also tested with 1.381, and the problem still exists.
          Rob Petti made changes -
          Environment Original: Hudson 1.380 New: Hudson 1.378-1.381

          torbent added a comment -

          I've seen these (or like) messages appear in the log around times where the Cobertura plugin fails. It transfers the XML files from the slave(s) to the master for processing, but somehow one (or more) files end up too short and can no longer be parsed as valid xml.
          The error message explicitly mentions a filename on the master, not the slave. When inspected, the file is indeed incomplete.

          (Just to state that it's not only affecting the perforce plugin)

          torbent added a comment - I've seen these (or like) messages appear in the log around times where the Cobertura plugin fails. It transfers the XML files from the slave(s) to the master for processing, but somehow one (or more) files end up too short and can no longer be parsed as valid xml. The error message explicitly mentions a filename on the master, not the slave. When inspected, the file is indeed incomplete. (Just to state that it's not only affecting the perforce plugin)

          torbent added a comment -

          I believe these are related and mimic my observations on Cobertura.

          torbent added a comment - I believe these are related and mimic my observations on Cobertura.
          torbent made changes -
          Link New: This issue is related to JENKINS-7836 [ JENKINS-7836 ]
          torbent made changes -
          Link New: This issue is related to JENKINS-7871 [ JENKINS-7871 ]

            kohsuke Kohsuke Kawaguchi
            rpetti Rob Petti
            Votes:
            37 Vote for this issue
            Watchers:
            39 Start watching this issue

              Created:
              Updated:
              Resolved: