timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-18010] "IOException: Insufficient system resources..." when archiving artifacts #10226

Closed timja closed 10 years ago

timja commented 11 years ago

This started occurring sometimes after upgrading Jenkins ver. 1.480.1 -> 1.509.1.

ERROR: Failed to archive artifacts: [...]
hudson.util.IOException2: hudson.util.IOException2: Failed to extract [...]
at hudson.FilePath.readFromTar(FilePath.java:2014)
at hudson.FilePath.copyRecursiveTo(FilePath.java:1926)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
at hudson.model.Run.execute(Run.java:1600)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Caused by: java.io.IOException: unexpected EOF with 3584 bytes unread
at hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:349)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
at hudson.util.IOUtils.copy(IOUtils.java:37)
at hudson.FilePath.readFromTar(FilePath.java:2004)
... 11 more

at hudson.FilePath.copyRecursiveTo(FilePath.java:1933)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
at hudson.model.Run.execute(Run.java:1600)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Insufficient system resources exist to complete the requested service
at hudson.remoting.Channel$4.adapt(Channel.java:705)
at hudson.remoting.Channel$4.adapt(Channel.java:700)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at hudson.FilePath.copyRecursiveTo(FilePath.java:1929)
... 10 more
Caused by: java.io.IOException: Insufficient system resources exist to complete the requested service
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(Unknown Source)
at hudson.util.io.TarArchiver.visit(TarArchiver.java:114)
at hudson.util.DirScanner$Glob.scan(DirScanner.java:133)
at hudson.FilePath.writeToTar(FilePath.java:1978)
at hudson.FilePath.access$1000(FilePath.java:168)
at hudson.FilePath$36.invoke(FilePath.java:1919)
at hudson.FilePath$36.invoke(FilePath.java:1915)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Originally reported by pancake, imported from: "IOException: Insufficient system resources..." when archiving artifacts
  • status: Resolved
  • priority: Major
  • resolution: Incomplete
  • resolved: 2014-06-14T18:07:59+00:00
  • imported: 2022/01/10
timja commented 10 years ago

danielbeck:

Is this still a problem in recent Jenkins versions? If so, there's quite a few Google hits indicating this issue isn't directly related to Jenkins. Have you tried any of the mentioned troubleshooting instructions, e.g. checked Event Viewer?

timja commented 10 years ago

danielbeck:

Resolving as 'Incomplete' after no response to comment asking for updated and additional information in two weeks.