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

Jenkins JIRA | Oleg Nenashev | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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}

    Jenkins JIRA | 3 years ago | Oleg Nenashev
    hudson.util.IOException2: Failed to compute binary file parameters from *.txt
  2. 0

    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}

    Jenkins JIRA | 3 years ago | Oleg Nenashev
    hudson.util.IOException2: Failed to compute binary file parameters from *.txt
  3. 0

    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.

    Jenkins JIRA | 4 years ago | Jeff Rodgers
    hudson.util.IOException2: Failed to extract c:\Users\Vbridges\Development\workspace\VERDE_build/win4/trunk/src/win32/FinishWin7Install/*.exe
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    Jenkins JIRA | 4 years ago | Jeff Rodgers
    hudson.util.IOException2: Failed to extract c:\Users\Vbridges\Development\workspace\VERDE_build/win4/trunk/src/win32/FinishWin7Install/*.exe
  6. 0

    SecretRooms-ownership.dat error

    GitHub | 2 years ago | Cenbes
    java.io.FileNotFoundException: ./world/MoCWyvernLair/SecretRooms-ownership.dat (No such file or directory)

  1. reni 1 times, last 2 days ago
  2. batwalrus76 1 times, last 6 days ago
  3. Pilleo 1 times, last 1 week ago
  4. QrCeric 12 times, last 2 weeks ago
  5. ccarpenter04 1263 times, last 1 month ago
31 more registered users
64 unregistered visitors
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.FileNotFoundException

    HOME_DIR/builds/2013-10-25_12-19-54/parameter-files/file.txt (Permission denied)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:171)
    3 frames
  3. Hudson
    FilePath.copyRecursiveTo
    1. hudson.util.IOUtils.copy(IOUtils.java:35)
    2. hudson.FilePath.readFromTar(FilePath.java:2012)
    3. hudson.FilePath.copyRecursiveTo(FilePath.java:1934)
    4. hudson.FilePath.copyRecursiveTo(FilePath.java:1839)
    4 frames
  4. Hudson Parameterized Trigger plugin
    TriggerBuilder.perform
    1. hudson.plugins.parameterizedtrigger.BinaryFileParameterFactory.getParameters(BinaryFileParameterFactory.java:64)
    2. hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getDynamicBuildParameters(BuildTriggerConfig.java:404)
    3. hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:374)
    4. hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57)
    5. hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85)
    5 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565)
    6. hudson.model.Run.execute(Run.java:1592)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:237)
    9 frames