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

IOException while archiving AND wrong build status

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Critical Critical
    • build-timeout-plugin, core
    • None
    • Jenkins v1.415, Jenkins build timeout plugin v1.7, jdk1.6.0_26, Windows Server 2003 R2 EE SP2

      The build times out due to some software issue which prevents the build to make certain files that should be archived in the end.

      There are two issues:
      1) Even though the build is marked as failed its final status is ABORTED. That means the ball is grey instead of red. This might be caused by the second issue.

      2) IOException while archiving files which due to a build error do not exist
      00:21:07 Build timed out (after 120 minutes). Marking the build as failed.
      00:21:07 Archiving artifacts
      00:21:08 ERROR: Failed to archive artifacts: xxx/xxx/xxx/, xxx.exe
      00:21:08 hudson.util.IOException2: Failed to copy x:\xxx/xxx/xxx/xxx/, xxx.exe to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive
      00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1526)
      00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1493)
      00:21:08 at hudson.FilePath.act(FilePath.java:758)
      00:21:08 at hudson.FilePath.act(FilePath.java:740)
      00:21:08 at hudson.FilePath.copyRecursiveTo(FilePath.java:1493)
      00:21:08 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      00:21:08 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      00:21:08 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:663)
      00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638)
      00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616)
      00:21:08 at hudson.model.Build$RunnerImpl.post2(Build.java:161)
      00:21:08 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585)
      00:21:08 at hudson.model.Run.run(Run.java:1399)
      00:21:08 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      00:21:08 at hudson.model.ResourceController.execute(ResourceController.java:88)
      00:21:08 at hudson.model.Executor.run(Executor.java:145)
      00:21:08 Caused by: Failed to copy x:\xxx\xxx\xxx\xxx\xxx\xxx\xxx.h to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive\xxx\xxx\xxx\xxx\xxx\xxx.h due to java.nio.channels.ClosedByInterruptException
      00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839)
      00:21:08 at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1509)
      00:21:08 at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:508)
      00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1523)
      00:21:08 ... 15 more
      00:21:08 Caused by: java.nio.channels.ClosedByInterruptException
      00:21:08 at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
      00:21:08 at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:304)
      00:21:08 at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:466)
      00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
      00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
      00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
      00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:827)
      00:21:08 ... 18 more
      00:21:08 No emails were triggered.
      00:21:08 Notifying upstream build xxx #70 of job completion
      00:21:08 Project xxx still waiting for 1 builds to complete
      00:21:08 Notifying upstream projects of job completion
      00:21:08 Notifying upstream of completion: xxx #70
      00:21:08 Finished: ABORTED

          [JENKINS-10439] IOException while archiving AND wrong build status

          robsimon created issue -
          robsimon made changes -
          Environment Original: Jenkins v1.415, Jenkins build timeout plugin, jdk1.6.0_26, Windows Server 2003 R2 EE SP2 New: Jenkins v1.415, Jenkins build timeout plugin v1.7, jdk1.6.0_26, Windows Server 2003 R2 EE SP2
          robsimon made changes -
          Description Original: The build times out due to some software issue which prevents the build to make certain files that should be archived in the end.

          There are two issues:
          1) Even though the build is marked as failed its final status is ABORTED. That means the ball is grey instead of red. This might be caused by the second issue.

          2) IOException while archiving files which due to an build error do not exist
          00:21:07 Build timed out (after 120 minutes). Marking the build as failed.
          00:21:07 Archiving artifacts
          00:21:08 ERROR: Failed to archive artifacts: xxx/xxx/xxx/, xxx.exe
          00:21:08 hudson.util.IOException2: Failed to copy x:\xxx/xxx/xxx/xxx/, xxx.exe to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive
          00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1526)
          00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1493)
          00:21:08 at hudson.FilePath.act(FilePath.java:758)
          00:21:08 at hudson.FilePath.act(FilePath.java:740)
          00:21:08 at hudson.FilePath.copyRecursiveTo(FilePath.java:1493)
          00:21:08 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
          00:21:08 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:663)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616)
          00:21:08 at hudson.model.Build$RunnerImpl.post2(Build.java:161)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585)
          00:21:08 at hudson.model.Run.run(Run.java:1399)
          00:21:08 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          00:21:08 at hudson.model.ResourceController.execute(ResourceController.java:88)
          00:21:08 at hudson.model.Executor.run(Executor.java:145)
          00:21:08 Caused by: Failed to copy x:\xxx\xxx\xxx\xxx\xxx\xxx\xxx.h to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive\xxx\xxx\xxx\xxx\xxx\xxx.h due to java.nio.channels.ClosedByInterruptException
          00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839)
          00:21:08 at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1509)
          00:21:08 at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:508)
          00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1523)
          00:21:08 ... 15 more
          00:21:08 Caused by: java.nio.channels.ClosedByInterruptException
          00:21:08 at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
          00:21:08 at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:304)
          00:21:08 at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:466)
          00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
          00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
          00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
          00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:827)
          00:21:08 ... 18 more
          00:21:08 No emails were triggered.
          00:21:08 Notifying upstream build xxx #70 of job completion
          00:21:08 Project xxx still waiting for 1 builds to complete
          00:21:08 Notifying upstream projects of job completion
          00:21:08 Notifying upstream of completion: xxx #70
          00:21:08 Finished: ABORTED
          New: The build times out due to some software issue which prevents the build to make certain files that should be archived in the end.

          There are two issues:
          1) Even though the build is marked as failed its final status is ABORTED. That means the ball is grey instead of red. This might be caused by the second issue.

          2) IOException while archiving files which due to a build error do not exist
          00:21:07 Build timed out (after 120 minutes). Marking the build as failed.
          00:21:07 Archiving artifacts
          00:21:08 ERROR: Failed to archive artifacts: xxx/xxx/xxx/, xxx.exe
          00:21:08 hudson.util.IOException2: Failed to copy x:\xxx/xxx/xxx/xxx/, xxx.exe to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive
          00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1526)
          00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1493)
          00:21:08 at hudson.FilePath.act(FilePath.java:758)
          00:21:08 at hudson.FilePath.act(FilePath.java:740)
          00:21:08 at hudson.FilePath.copyRecursiveTo(FilePath.java:1493)
          00:21:08 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
          00:21:08 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:663)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616)
          00:21:08 at hudson.model.Build$RunnerImpl.post2(Build.java:161)
          00:21:08 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585)
          00:21:08 at hudson.model.Run.run(Run.java:1399)
          00:21:08 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          00:21:08 at hudson.model.ResourceController.execute(ResourceController.java:88)
          00:21:08 at hudson.model.Executor.run(Executor.java:145)
          00:21:08 Caused by: Failed to copy x:\xxx\xxx\xxx\xxx\xxx\xxx\xxx.h to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive\xxx\xxx\xxx\xxx\xxx\xxx.h due to java.nio.channels.ClosedByInterruptException
          00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839)
          00:21:08 at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1509)
          00:21:08 at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:508)
          00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1523)
          00:21:08 ... 15 more
          00:21:08 Caused by: java.nio.channels.ClosedByInterruptException
          00:21:08 at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
          00:21:08 at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:304)
          00:21:08 at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:466)
          00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
          00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
          00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
          00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:827)
          00:21:08 ... 18 more
          00:21:08 No emails were triggered.
          00:21:08 Notifying upstream build xxx #70 of job completion
          00:21:08 Project xxx still waiting for 1 builds to complete
          00:21:08 Notifying upstream projects of job completion
          00:21:08 Notifying upstream of completion: xxx #70
          00:21:08 Finished: ABORTED
          ikedam made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 140632 ] New: JNJira + In-Review [ 189163 ]

            kohsuke Kohsuke Kawaguchi
            robsimon robsimon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: