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

site-deploy failed with "java.io.IOException: Pipe is already closed"

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • ubuntu 10.04.1, amd64, openjdk

      Running mvn clean site site-deploy inside jenkins failed (see below).
      Copy the "workspace" and running the same command as shell user jenkins doesn't raise this error.

      [INFO] Generating "DashBoard Report" report — dashboard-maven-plugin:1.0.0-beta-1
      [INFO] MultiReportMojo project = bvopmenu-doc
      [INFO] MultiReportMojo nb modules = 0
      [INFO] MultiReportMojo base directory = /srv/jenkins-work/jenkins/jobs/bvopmenu-doc/workspace
      [INFO] MultiReportMojo output directory = /srv/jenkins-work/jenkins/jobs/bvopmenu-doc/workspace/target/site
      [INFO] MultiReportMojo report output directory = /srv/jenkins-work/jenkins/jobs/bvopmenu-doc/workspace/target/site/en
      [INFO] MultiReportMojo project language = none
      [JENKINS] Archiving site from /srv/jenkins-work/jenkins/jobs/bvopmenu-doc/workspace/target/site to /srv/jenkins-work/jenkins/jobs/bvopmenu-doc/site
      FATAL: Unable to copy site from /srv/jenkins-work/jenkins/jobs/bvopmenu-doc/workspace/target/site to /srv/jenkins-work/jenkins/jobs/bvopmenu-doc/site
      java.io.IOException: Pipe is already closed
      at hudson.remoting.PipeWindow.checkDeath(PipeWindow.java:83)
      at hudson.remoting.PipeWindow$Real.get(PipeWindow.java:165)
      at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118)
      at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
      at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
      at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:178)
      at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:135)
      at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:89)
      at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
      at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410)
      at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351)
      at hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356)
      at hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137)
      at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149)
      at hudson.util.io.TarArchiver.close(TarArchiver.java:119)
      at hudson.FilePath.writeToTar(FilePath.java:1620)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1545)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1474)
      at hudson.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:82)
      at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoSucceeded(Maven3Builder.java:596)
      at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:559)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:125)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:72)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:283)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: java.io.IOException: Pipe is already closed
      at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:147)
      at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:131)
      at hudson.remoting.ProxyOutputStream$Chunk$1.run(ProxyOutputStream.java:211)
      ... 6 more
      Caused by: hudson.remoting.FastPipedInputStream$ClosedBy: The pipe was closed at...
      at hudson.remoting.FastPipedInputStream.close(FastPipedInputStream.java:112)
      at hudson.FilePath$32.invoke(FilePath.java:1541)
      at hudson.FilePath$32.invoke(FilePath.java:1535)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1980)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:283)
      ... 6 more

          [JENKINS-10102] site-deploy failed with "java.io.IOException: Pipe is already closed"

          Which version of Jenkins is this?

          Kohsuke Kawaguchi added a comment - Which version of Jenkins is this?

          All since 7 months till Jenkins ver. 1.440

          H.-Dirk Schmitt added a comment - All since 7 months till Jenkins ver. 1.440

          Good afternoon,

          I have the same problem with a previous version, exactly with version 1.425. Is there something new about this bug? Would it be fixed soon?

          Thank you in advance!

          Best regards

          Juan Enriquez de Salamanca added a comment - Good afternoon, I have the same problem with a previous version, exactly with version 1.425. Is there something new about this bug? Would it be fixed soon? Thank you in advance! Best regards

          H.-Dirk Schmitt added a comment - - edited

          Bug hasn't vanished. It is still in 1.492 below ubuntu 12.04 and openjdk-7.

          H.-Dirk Schmitt added a comment - - edited Bug hasn't vanished. It is still in 1.492 below ubuntu 12.04 and openjdk-7.

          If I delete ${JENKINS_HOME}/jobs/MYJOB/site, the next build is successful.
          But the next invocation run again in this problem.

          H.-Dirk Schmitt added a comment - If I delete ${JENKINS_HOME}/jobs/MYJOB/site, the next build is successful. But the next invocation run again in this problem.

          still in 1.500

          H.-Dirk Schmitt added a comment - still in 1.500

          Possible workaround, add pre-build step:

           <prebuilders>
              <hudson.tasks.Shell>
                <command>rm -rf ${JENKINS_HOME}/jobs/${JOB_NAME}/site</command>
              </hudson.tasks.Shell>
            </prebuilders>
          

          This work if the build is done on the master node, but is failing if the build is done on a slave node.

          H.-Dirk Schmitt added a comment - Possible workaround, add pre-build step: <prebuilders> <hudson.tasks.Shell> <command>rm -rf ${JENKINS_HOME}/jobs/${JOB_NAME}/site</command> </hudson.tasks.Shell> </prebuilders> This work if the build is done on the master node, but is failing if the build is done on a slave node.

          Hello, we have Jenkins 1.413 and copyartifacts plugin of version 1.17 and the same problem. Can you tell me which update od copy artifacts plugin can fix this? Or some workaround that works? I cannot update whole Jenkins.

          Aleksander Lech added a comment - Hello, we have Jenkins 1.413 and copyartifacts plugin of version 1.17 and the same problem. Can you tell me which update od copy artifacts plugin can fix this? Or some workaround that works? I cannot update whole Jenkins.

            Unassigned Unassigned
            dirk_schmitt H.-Dirk Schmitt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: