org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden)

Jenkins JIRA | Stefan Stern | 2 years ago
  1. 0

    When creating a project and setting JDK 8u25, the JDK installation will fail on a slave with the error log posted below. When "faking" the installation by setting the appropriate files, the JDK installation is skipped and the build runs fine. The console output contains a FileNotFoundException. Looking on the slave manually, the log file doesn't exist. Invoking the JDK installer manually with the line given in the console output has the same result. The installation aborts, no log file is being created. Altering the line by removing the '-signs before and after the /L option will run the installation successfully. ---------------------------------------- Console output: Installing C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe [1.8.0_25] $ C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25 '/L \"C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log\"' Failed to install JDK. Exit code=-80 ERROR: SEVERE ERROR occurs org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden) at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:84) at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:231) at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:46) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:587) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden) at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169) at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at java.io.Reader.read(Unknown Source) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2001) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1980) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1957) at hudson.tools.JDKInstaller.install(JDKInstaller.java:273) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:205) at hudson.model.JDK.forNode(JDK.java:130) at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:79) ... 8 more Caused by: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at hudson.FilePath$33.invoke(FilePath.java:1749) at hudson.FilePath$33.invoke(FilePath.java:1742) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2665) 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.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Unknown Source) Notifying upstream projects of job completion Finished: FAILURE

    Jenkins JIRA | 2 years ago | Stefan Stern
    org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden)
  2. 0

    When creating a project and setting JDK 8u25, the JDK installation will fail on a slave with the error log posted below. When "faking" the installation by setting the appropriate files, the JDK installation is skipped and the build runs fine. The console output contains a FileNotFoundException. Looking on the slave manually, the log file doesn't exist. Invoking the JDK installer manually with the line given in the console output has the same result. The installation aborts, no log file is being created. Altering the line by removing the '-signs before and after the /L option will run the installation successfully. ---------------------------------------- Console output: Installing C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe [1.8.0_25] $ C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25 '/L \"C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log\"' Failed to install JDK. Exit code=-80 ERROR: SEVERE ERROR occurs org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden) at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:84) at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:231) at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:46) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:587) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden) at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169) at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at java.io.Reader.read(Unknown Source) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2001) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1980) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1957) at hudson.tools.JDKInstaller.install(JDKInstaller.java:273) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:205) at hudson.model.JDK.forNode(JDK.java:130) at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:79) ... 8 more Caused by: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at hudson.FilePath$33.invoke(FilePath.java:1749) at hudson.FilePath$33.invoke(FilePath.java:1742) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2665) 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.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Unknown Source) Notifying upstream projects of job completion Finished: FAILURE

    Jenkins JIRA | 2 years ago | Stefan Stern
    org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden)
  3. 0

    STDERR: java.io.IOException: Failed to copy git to /var/lib/jenkins/plugins/git.jpi

    Stack Overflow | 1 year ago | WolvesfCrib
    java.io.IOException: Failed to copy git to /var/lib/jenkins/plugins/git.jpi
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 59#50169464

    GitHub | 2 years ago | jcfrancisco
    java.io.IOException: Failed to copy /home/builduser/workspace/homepage/homepage/script=integration-group3/test/log/testium/proxy.log to /home/builduser/workspace/homepage/homepage/test/log/testium/proxy.log
  6. 0

    If I execute my job on a slave that runs on Unix, when the master node that runs on Windows XP tries to copy the file sloccount.sc from the slave to the master jobs directory I get the following exception (it results to a build failure). {noformat} java.io.IOException: remote file operation failed: C:\var\jenkins\workspace\sloccount-fasttrack\sloccount.sc at hudson.remoting.Channel@11a5ec7:AES-KLBUILD at hudson.FilePath.act(FilePath.java:910) at hudson.FilePath.act(FilePath.java:887) at hudson.FilePath.copyTo(FilePath.java:1809) at hudson.plugins.sloccount.SloccountPublisher.copyFilesToBuildDirectory(SloccountPublisher.java:139) at hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java:92) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705) at hudson.model.Run.execute(Run.java:1695) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.FileNotFoundException: C:\var\jenkins\workspace\sloccount-fasttrack\sloccount.sc (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.FilePath$37.invoke(FilePath.java:1814) at hudson.FilePath$37.invoke(FilePath.java:1809) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2461) 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:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Build step 'Publish SLOCCount analysis results' marked build as failure}} {noformat} As you can see, the master starts to get crazy because in copyFilesToBuildDirectory, it uses the sourceFile.getAbsolutePath(). This method tries to resolve the sourceFile against the current JVM FileSystem that is different from the slave. BTW, I am wondering why the code uses the getAbsolutePath() method instead of the getPath() that returns the actual file path.

    Jenkins JIRA | 3 years ago | Mathieu POUSSE
    java.io.IOException: remote file operation failed: C:\var\jenkins\workspace\sloccount-fasttrack\sloccount.sc at hudson.remoting.Channel@11a5ec7:AES-KLBUILD

  1. r1chjames 1 times, last 2 days ago
  2. richard77 1 times, last 1 week ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 2 weeks ago
45 more registered users
50 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

    C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(Unknown Source)
    2 frames
  3. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.FilePath$33.invoke(FilePath.java:1749)
    2. hudson.FilePath$33.invoke(FilePath.java:1742)
    3. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2665)
    3 frames
  4. 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:328)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  5. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.FutureTask.run(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3 frames
  6. Hudson :: Remoting Layer
    Engine$1$1.run
    1. hudson.remoting.Engine$1$1.run(Engine.java:63)
    1 frame
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame