hudson.util.IOException2: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log'

Jenkins JIRA | david catalan | 4 years ago
  1. 0

    Using "Archive the artifacts" post-build action, the following kind of issues often occurs: 12:11:29 Archiving artifacts 12:11:29 ERROR: Failed to archive artifacts: testing/logs/** 12:11:29 hudson.util.IOException2: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log' 12:11:29 at hudson.FilePath.copyRecursiveTo(FilePath.java:1863) 12:11:29 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116) 12:11:29 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 12:11:29 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) 12:11:29 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) 12:11:29 at hudson.model.Build$BuildExecution.post2(Build.java:183) 12:11:29 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) 12:11:29 at hudson.model.Run.execute(Run.java:1541) 12:11:29 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 12:11:29 at hudson.model.ResourceController.execute(ResourceController.java:88) 12:11:29 at hudson.model.Executor.run(Executor.java:236) 12:11:29 Caused by: java.util.concurrent.ExecutionException: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log' 12:11:29 at hudson.remoting.Channel$4.adapt(Channel.java:697) 12:11:29 at hudson.remoting.Channel$4.adapt(Channel.java:692) 12:11:29 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) 12:11:29 at hudson.FilePath.copyRecursiveTo(FilePath.java:1861) 12:11:29 ... 10 more 12:11:29 Caused by: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log' 12:11:29 at hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:284) 12:11:29 at hudson.util.io.TarArchiver.visit(TarArchiver.java:115) 12:11:29 at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) 12:11:29 at hudson.FilePath.writeToTar(FilePath.java:1899) 12:11:29 at hudson.FilePath.access$1000(FilePath.java:166) 12:11:29 at hudson.FilePath$36.invoke(FilePath.java:1840) 12:11:29 at hudson.FilePath$36.invoke(FilePath.java:1837) 12:11:29 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2308) 12:11:29 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 12:11:29 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 12:11:29 at hudson.remoting.Request$2.run(Request.java:326) 12:11:29 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 12:11:29 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 12:11:29 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 12:11:29 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 12:11:29 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 12:11:29 at java.lang.Thread.run(Thread.java:662) Please notice that during the same run, other log files are correctly archived. I haven't found any possible reason so far. Could such issue happen if we try to archive a file which is still being written? Is this post-build task the correct one to use to save log files? Thanks for your help, David.

    Jenkins JIRA | 4 years ago | david catalan
    hudson.util.IOException2: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log'
  2. 0

    Using "Archive the artifacts" post-build action, the following kind of issues often occurs: 12:11:29 Archiving artifacts 12:11:29 ERROR: Failed to archive artifacts: testing/logs/** 12:11:29 hudson.util.IOException2: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log' 12:11:29 at hudson.FilePath.copyRecursiveTo(FilePath.java:1863) 12:11:29 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116) 12:11:29 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 12:11:29 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) 12:11:29 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) 12:11:29 at hudson.model.Build$BuildExecution.post2(Build.java:183) 12:11:29 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) 12:11:29 at hudson.model.Run.execute(Run.java:1541) 12:11:29 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 12:11:29 at hudson.model.ResourceController.execute(ResourceController.java:88) 12:11:29 at hudson.model.Executor.run(Executor.java:236) 12:11:29 Caused by: java.util.concurrent.ExecutionException: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log' 12:11:29 at hudson.remoting.Channel$4.adapt(Channel.java:697) 12:11:29 at hudson.remoting.Channel$4.adapt(Channel.java:692) 12:11:29 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) 12:11:29 at hudson.FilePath.copyRecursiveTo(FilePath.java:1861) 12:11:29 ... 10 more 12:11:29 Caused by: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log' 12:11:29 at hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:284) 12:11:29 at hudson.util.io.TarArchiver.visit(TarArchiver.java:115) 12:11:29 at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) 12:11:29 at hudson.FilePath.writeToTar(FilePath.java:1899) 12:11:29 at hudson.FilePath.access$1000(FilePath.java:166) 12:11:29 at hudson.FilePath$36.invoke(FilePath.java:1840) 12:11:29 at hudson.FilePath$36.invoke(FilePath.java:1837) 12:11:29 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2308) 12:11:29 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 12:11:29 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 12:11:29 at hudson.remoting.Request$2.run(Request.java:326) 12:11:29 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 12:11:29 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 12:11:29 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 12:11:29 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 12:11:29 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 12:11:29 at java.lang.Thread.run(Thread.java:662) Please notice that during the same run, other log files are correctly archived. I haven't found any possible reason so far. Could such issue happen if we try to archive a file which is still being written? Is this post-build task the correct one to use to save log files? Thanks for your help, David.

    Jenkins JIRA | 4 years ago | david catalan
    hudson.util.IOException2: java.io.IOException: request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log'
  3. 0

    Note: "Clean Build" is NOT checked. But if I check it, the same problem happens. Error log: Started by user The User Building remotely on mybuildslave in workspace /jenkins-slave/workspace/MYPROJ-2.8.3 ERROR: Failed to clean the repository checkout hudson.util.IOException2: remote file operation failed: /jenkins-slave/workspace/MYPROJ-2.8.3 at hudson.remoting.Channel@3d08761:mybuildslave at hudson.FilePath.act(FilePath.java:861) at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.deleteRecursive(FilePath.java:997) at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:547) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:389) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:689) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:594) at hudson.model.Run.execute(Run.java:1567) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.io.IOException: Unable to delete /jenkins-slave/workspace/MYPROJ-2.8.3/war/WebContent/portais/suprimentos/servicos/catalogacao/img - files in dir: [/jenkins-slave/workspace/MYPROJ-2.8.3/war/WebContent/portais/suprimentos/servicos/catalogacao/img/Grafico_Cataloga??o_r1_c3.gif, /jenkins-slave/workspace/MYPROJ-2.8.3/war/WebContent/portais/suprimentos/servicos/catalogacao/img/Grafico_Cataloga??o_r1_c1_f2.gif,] at hudson.Util.deleteFile(Util.java:242) at hudson.Util.deleteRecursive(Util.java:293) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:284) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:284) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:284) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:284) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:284) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:284) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.Util.deleteRecursive(Util.java:284) at hudson.FilePath$11.invoke(FilePath.java:1000) at hudson.FilePath$11.invoke(FilePath.java:997) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 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:73) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) ERROR: Failed to clean the repository checkout Archiving artifacts Build step 'Dependency analysis' marked build as failure

    Jenkins JIRA | 4 years ago | Elifarley
    hudson.util.IOException2: remote file operation failed: /jenkins-slave/workspace/MYPROJ-2.8.3 at hudson.remoting.Channel@3d08761:mybuildslave
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    version 1.2 Happens a lot (about 50% of the cases)! [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at BUILD level /home/user/workspace/Sanity_010_App_Landings/label/Automation1/avg-tests-project/log/current to /var/lib/jenkins/jobs/Sanity_010_App_Landings/configurations/axis-label/Automation1/builds/2014-04-07_12-53-56/htmlreports/HTML_Report FATAL: HTML Publisher failure java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: request to write '679' bytes exceeds size in header of '53297404' bytes for entry 'test_1/logcat_4790b1d294e4af34_07-04-2014_15-54-31.txt' at hudson.FilePath.copyRecursiveTo(FilePath.java:2017) at hudson.FilePath.copyRecursiveTo(FilePath.java:1911) at hudson.FilePath.copyRecursiveTo(FilePath.java:1894) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:212) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:742) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663) at hudson.model.Run.execute(Run.java:1713) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.util.concurrent.ExecutionException: java.io.IOException: request to write '679' bytes exceeds size in header of '53297404' bytes for entry 'test_1/logcat_4790b1d294e4af34_07-04-2014_15-54-31.txt' at hudson.remoting.Channel$3.adapt(Channel.java:755) at hudson.remoting.Channel$3.adapt(Channel.java:750) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.FilePath.copyRecursiveTo(FilePath.java:2015) ... 12 more Caused by: java.io.IOException: request to write '679' bytes exceeds size in header of '53297404' bytes for entry 'test_1/logcat_4790b1d294e4af34_07-04-2014_15-54-31.txt' at hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:284) at hudson.util.io.TarArchiver.visit(TarArchiver.java:114) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.util.DirScanner$Glob.scan(DirScanner.java:131) at hudson.FilePath.writeToTar(FilePath.java:2053) at hudson.FilePath.access$1000(FilePath.java:172) at hudson.FilePath$41.invoke(FilePath.java:1994) at hudson.FilePath$41.invoke(FilePath.java:1990) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2462) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Build step 'Publish HTML reports' changed build result to FAILURE

    Jenkins JIRA | 3 years ago | Guy Tal
    java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: request to write '679' bytes exceeds size in header of '53297404' bytes for entry 'test_1/logcat_4790b1d294e4af34_07-04-2014_15-54-31.txt'
  6. 0

    Copy artifact cannot find the artifacts of a build if "Which build" is set to "Upstream build that triggered this job". The configuration is ok. The copy job works fine until I change the "Which build". It is always reproducible. I learned as I ran some reproductions that this error just happens if the builds history is not located on the same machine AND not in the same instance of Jenkins. I have asides of a normal master/slave setup also tested what happens if the slave is on the same machine as the master (1 system, 2 different disks). Same bug. So a simple master installation will never run into this error. All other setups should face this issue The paths used are fine when looking them up on the master. This is unfortunately no simple fixing because the option does not address it to the master but locally The error also happens on 1 machine with master/slave running on it. It should then work if it just where about the paths as drive letter is correct and pointing to the other disc. There are 2 types of error messages depending on if the build containing the copy job is spawned as triggered build or via promotion. Output as triggered build: 13:02:22 Deleting project workspace... [UPLOAD_Amsterdam] $ cmd /c call C:\WINDOWS\TEMP\hudson7965883506038473117.bat 13:02:22 ReleaseLabel: 12160 13:02:23 ERROR: Failed to copy artifacts from RB_Amsterdam with filter: zzzBuild/*.zip, zzzMetaData/src/resources/IRCPanelMapping*.txt 13:02:23 hudson.util.IOException2: Failed to copy c:\Jenkins\jobs\RB_Amsterdam\builds\2012-04-20_12-39-20\archive\zzzBuild\BY_NAR_SOP8_Front.zip to c:\Jenkins_slave\workspace\UPLOAD_Amsterdam\zzzBuild\BY_NAR_SOP8_Front.zip 13:02:23 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:91) 13:02:23 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63) 13:02:23 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:243) 13:02:23 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:215) 13:02:23 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 13:02:23 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) 13:02:23 at hudson.model.Build$RunnerImpl.build(Build.java:178) 13:02:23 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 13:02:23 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473) 13:02:23 at hudson.model.Run.run(Run.java:1413) 13:02:23 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 13:02:23 at hudson.model.ResourceController.execute(ResourceController.java:88) 13:02:23 at hudson.model.Executor.run(Executor.java:238) 13:02:23 Caused by: hudson.util.IOException2: remote file operation failed: c:\Jenkins_slave\workspace\UPLOAD_Amsterdam\zzzBuild\BY_NAR_SOP8_Front.zip at hudson.remoting.Channel@15f9a23:B00015 13:02:23 at hudson.FilePath.act(FilePath.java:828) 13:02:23 at hudson.FilePath.act(FilePath.java:814) 13:02:23 at hudson.FilePath.touch(FilePath.java:1160) 13:02:23 at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:79) 13:02:23 ... 12 more 13:02:23 Caused by: java.io.IOException: Failed to set the timestamp of c:\Jenkins_slave\workspace\UPLOAD_Amsterdam\zzzBuild\BY_NAR_SOP8_Front.zip to 1334919183000 13:02:23 at hudson.FilePath$19.invoke(FilePath.java:1166) 13:02:23 at hudson.FilePath$19.invoke(FilePath.java:1160) 13:02:23 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154) 13:02:23 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 13:02:23 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 13:02:23 at hudson.remoting.Request$2.run(Request.java:287) 13:02:23 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 13:02:23 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 13:02:23 at java.util.concurrent.FutureTask.run(Unknown Source) 13:02:23 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 13:02:23 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 13:02:23 at java.lang.Thread.run(Unknown Source) 13:02:23 Build step 'Copy artifacts from another project' marked build as failure Output as promotion: Legacy code started this job. No cause information is available Building remotely on B00015_2 in workspace y:\Jenkins_slave\workspace\SEND_MAIL_AMSTERDAM_ASIA Unable to find a build for artifact copy from: RB_Amsterdam Build step 'Copy artifacts from another project' marked build as failure Notifying upstream projects of job completion Finished: FAILURE

    Jenkins JIRA | 5 years ago | Jan Seidel
    hudson.util.IOException2: Failed to copy c:\Jenkins\jobs\RB_Amsterdam\builds\2012-04-20_12-39-20\archive\zzzBuild\BY_NAR_SOP8_Front.zip to c:\Jenkins_slave\workspace\UPLOAD_Amsterdam\zzzBuild\BY_NAR_SOP8_Front.zip

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      request to write '2134' bytes exceeds size in header of '852381' bytes for entry 'testing/error.log'

      at hudson.org.apache.tools.tar.TarOutputStream.write()
    2. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:284)
      2. hudson.util.io.TarArchiver.visit(TarArchiver.java:115)
      3. hudson.util.DirScanner$Glob.scan(DirScanner.java:133)
      4. hudson.FilePath.writeToTar(FilePath.java:1899)
      5. hudson.FilePath.access$1000(FilePath.java:166)
      6. hudson.FilePath$36.invoke(FilePath.java:1840)
      7. hudson.FilePath$36.invoke(FilePath.java:1837)
      8. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2308)
      8 frames
    3. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames