hudson.util.IOException2: Failed to compute binary file parameters from *.txt

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Use-case: 1) Job sequentially triggers builds using the same files as a build parameters. These files have read-only permission. In order to pass parameters to file factory, we use *.txt wildcard 2) Sometimes second triggering fails with "Permission denied" error (see the log below) 3) As i see, files in "builds/${ID}/parameter-files" have read-only attributes from the initial file {quote} FATAL: Failed to compute binary file parameters from *.txt hudson.util.IOException2: Failed to compute binary file parameters from *.txt at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:93) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getDynamicBuildParameters(BuildTriggerConfig.java:404) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:374) at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1592) 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: hudson.util.IOException2: Failed to extract MY_WORKSPACE/*.txt at hudson.FilePath.readFromTar(FilePath.java:2022) at hudson.FilePath.copyRecursiveTo(FilePath.java:1934) at hudson.FilePath.copyRecursiveTo(FilePath.java:1839) at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:64) ... 13 more Caused by: java.io.FileNotFoundException: HOME_DIR/builds/2013-10-25_12-19-54/parameter-files/file.txt (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:171) at hudson.util.IOUtils.copy(IOUtils.java:35) at hudson.FilePath.readFromTar(FilePath.java:2012) ... 16 more {quote}
    via by Oleg Nenashev,
  • Use-case: 1) Job sequentially triggers builds using the same files as a build parameters. These files have read-only permission. In order to pass parameters to file factory, we use *.txt wildcard 2) Sometimes second triggering fails with "Permission denied" error (see the log below) 3) As i see, files in "builds/${ID}/parameter-files" have read-only attributes from the initial file {quote} FATAL: Failed to compute binary file parameters from *.txt hudson.util.IOException2: Failed to compute binary file parameters from *.txt at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:93) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getDynamicBuildParameters(BuildTriggerConfig.java:404) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:374) at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1592) 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: hudson.util.IOException2: Failed to extract MY_WORKSPACE/*.txt at hudson.FilePath.readFromTar(FilePath.java:2022) at hudson.FilePath.copyRecursiveTo(FilePath.java:1934) at hudson.FilePath.copyRecursiveTo(FilePath.java:1839) at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:64) ... 13 more Caused by: java.io.FileNotFoundException: HOME_DIR/builds/2013-10-25_12-19-54/parameter-files/file.txt (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:171) at hudson.util.IOUtils.copy(IOUtils.java:35) at hudson.FilePath.readFromTar(FilePath.java:2012) ... 16 more {quote}
    via by Oleg Nenashev,
  • The workspace does not seem to render properly for the master when using the copy-to-master option. It appears in Windows path format on the Linux side. An exception occured while creating VERDE_build: java.io.IOException: Failed to mkdirs: workspace\VERDE_build [copy-to-slave] Copying 'win4/trunk/src/win32/FinishWin7Install/*.exe', excluding nothing, from 'file:/c:/Users/Vbridges/Development/workspace/VERDE_build/' on 'hudson.plugins.virtualbox.VirtualBoxSlave@eba543f' to 'file:/workspace%5CVERDE_build' on the master. ERROR: Publisher com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier aborted due to exception hudson.util.IOException2: Failed to extract c:\Users\Vbridges\Development\workspace\VERDE_build/win4/trunk/src/win32/FinishWin7Install/*.exe at hudson.FilePath.readFromTar(FilePath.java:1936) at hudson.FilePath.copyRecursiveTo(FilePath.java:1848) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:93) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1562) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.FileNotFoundException: workspace\VERDE_build/win4/trunk/src/win32/FinishWin7Install/FinishWin7Install.exe (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.util.IOUtils.copy(IOUtils.java:35) at hudson.FilePath.readFromTar(FilePath.java:1926) ... 10 more The workaround is to hard-code the Linux workspace path using the Override Destination Folder option.
    via by Jeff Rodgers,
  • The workspace does not seem to render properly for the master when using the copy-to-master option. It appears in Windows path format on the Linux side. An exception occured while creating VERDE_build: java.io.IOException: Failed to mkdirs: workspace\VERDE_build [copy-to-slave] Copying 'win4/trunk/src/win32/FinishWin7Install/*.exe', excluding nothing, from 'file:/c:/Users/Vbridges/Development/workspace/VERDE_build/' on 'hudson.plugins.virtualbox.VirtualBoxSlave@eba543f' to 'file:/workspace%5CVERDE_build' on the master. ERROR: Publisher com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier aborted due to exception hudson.util.IOException2: Failed to extract c:\Users\Vbridges\Development\workspace\VERDE_build/win4/trunk/src/win32/FinishWin7Install/*.exe at hudson.FilePath.readFromTar(FilePath.java:1936) at hudson.FilePath.copyRecursiveTo(FilePath.java:1848) at com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier.perform(CopyToMasterNotifier.java:93) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1562) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.FileNotFoundException: workspace\VERDE_build/win4/trunk/src/win32/FinishWin7Install/FinishWin7Install.exe (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.util.IOUtils.copy(IOUtils.java:35) at hudson.FilePath.readFromTar(FilePath.java:1926) ... 10 more The workaround is to hard-code the Linux workspace path using the Override Destination Folder option.
    via by Jeff Rodgers,
  • SecretRooms-ownership.dat error
    via GitHub by Cenbes
    ,
  • Missing configuration/* files
    via GitHub by CanOfBees
    ,
  • mvn package failed
    via GitHub by miko-code
    ,
    • hudson.util.IOException2: Failed to compute binary file parameters from *.txt at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:93) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getDynamicBuildParameters(BuildTriggerConfig.java:404) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:374) at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1592) 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: hudson.util.IOException2: Failed to extract MY_WORKSPACE/*.txt at hudson.FilePath.readFromTar(FilePath.java:2022) at hudson.FilePath.copyRecursiveTo(FilePath.java:1934) at hudson.FilePath.copyRecursiveTo(FilePath.java:1839) at hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:64) ... 13 more Caused by: java.io.FileNotFoundException: HOME_DIR/builds/2013-10-25_12-19-54/parameter-files/file.txt (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:171) at hudson.util.IOUtils.copy(IOUtils.java:35) at hudson.FilePath.readFromTar(FilePath.java:2012) ... 16 more

    Users with the same issue

    musketyr
    musketyr3 times, last one,
    bpbhat77
    bpbhat77318 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    149 more bugmates