java.io.IOException: java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT

Jenkins JIRA | kai tea | 3 years ago
  1. 0

    Issue with maven jobs running on slaves (linux). The maven run completes successfully, but not sure why Jenkins tries to archive files from the maven project after maven run completes. This is where the Jenkins job fails when attempting to archive these project files as indicated by the stacktrace below. But when the same job runs on the master (linux), it builds just fine. Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/lib/jenkins/workspace/company-abc/test-project/pom.xml to com.companyabc/test-project/1.1.1/test-project-1.1.1.pom [JENKINS] Archiving /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar to com.companyabc/test-project/1.1.1/test-project-1.1.1.jar channel stopped ERROR: Failed to parse POMs java.io.IOException: java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT at hudson.FilePath.copyRecursiveTo(FilePath.java:2016) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:57) at hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:471) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:835) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) at hudson.model.Run.execute(Run.java:1678) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT 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:2014) ... 8 more Caused by: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT at hudson.os.PosixAPI$1.error(PosixAPI.java:35) at jnr.posix.LinuxPOSIX.stat(LinuxPOSIX.java:117) at jnr.posix.CheckedPOSIX.stat(CheckedPOSIX.java:265) at jnr.posix.LazyPOSIX.stat(LazyPOSIX.java:267) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:101)company-abc at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2540) at hudson.FilePath.writeToTar(FilePath.java:2052) at hudson.FilePath.access$1000(FilePath.java:172) at hudson.FilePath$41.invoke(FilePath.java:1993) at hudson.FilePath$41.invoke(FilePath.java:1989) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)

    Jenkins JIRA | 3 years ago | kai tea
    java.io.IOException: java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT
  2. 0

    Issue with maven jobs running on slaves (linux). The maven run completes successfully, but not sure why Jenkins tries to archive files from the maven project after maven run completes. This is where the Jenkins job fails when attempting to archive these project files as indicated by the stacktrace below. But when the same job runs on the master (linux), it builds just fine. Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/lib/jenkins/workspace/company-abc/test-project/pom.xml to com.companyabc/test-project/1.1.1/test-project-1.1.1.pom [JENKINS] Archiving /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar to com.companyabc/test-project/1.1.1/test-project-1.1.1.jar channel stopped ERROR: Failed to parse POMs java.io.IOException: java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT at hudson.FilePath.copyRecursiveTo(FilePath.java:2016) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:57) at hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:471) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:835) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) at hudson.model.Run.execute(Run.java:1678) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT 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:2014) ... 8 more Caused by: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT at hudson.os.PosixAPI$1.error(PosixAPI.java:35) at jnr.posix.LinuxPOSIX.stat(LinuxPOSIX.java:117) at jnr.posix.CheckedPOSIX.stat(CheckedPOSIX.java:265) at jnr.posix.LazyPOSIX.stat(LazyPOSIX.java:267) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:101)company-abc at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2540) at hudson.FilePath.writeToTar(FilePath.java:2052) at hudson.FilePath.access$1000(FilePath.java:172) at hudson.FilePath$41.invoke(FilePath.java:1993) at hudson.FilePath$41.invoke(FilePath.java:1989) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)

    Jenkins JIRA | 3 years ago | kai tea
    java.io.IOException: java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I'm trying to set LC_CTYPE to UTF-8 for slaves to work around a bug in JDK7. But what I'm finding is that setting this does not affect the environment variables. The attachment shows how I set the variable. The log for the slave shows that the variable I have added is not present: {noformat} [10/15/13 11:26:40] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin11") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=502 GROUPS=() HOME=/Users/tester HOSTNAME=maria.syd.acme.com HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=tester MACHTYPE=x86_64-apple-darwin11 MAIL=/var/mail/tester OPTERR=1 OPTIND=1 OSTYPE=darwin11 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=850 PS4='+ ' PWD=/Users/tester SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.1.141 50976 22' SSH_CONNECTION='192.168.1.141 50976 192.168.1.173 22' TERM=dumb TMPDIR=/var/folders/vz/_vbwq3js5511tcqhms41hvyc0000gp/T/ UID=502 USER=tester _=bash {noformat} The result of the build itself also proves that the environment variable has not been set, because if it had, Jenkins wouldn't barf trying to copy a Unicode file: {noformat} Archiving workspace ERROR: Publisher hudson.plugins.cloneworkspace.CloneWorkspacePublisher aborted due to exception hudson.os.PosixException: /Volumes/Data/workspace/compile2/os/macosx/product/test-data/??????.xls.b64 ENOENT at hudson.os.PosixAPI$1.error(PosixAPI.java:43) at org.jruby.ext.posix.BaseNativePOSIX.stat(BaseNativePOSIX.java:184) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) at hudson.FilePath$1.invoke(FilePath.java:416) at hudson.FilePath$1.invoke(FilePath.java:412) 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.run(FutureTask.java:262) 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) {noformat} The version we're running is v1.511, but the changelog doesn't mention any recent changes with ssh-slaves or environment variables. This issue prevents us building on Mac OS X because this job is the prerequisite for every other job. I guess the workaround I'm forced to take is to set this variable system-wide, but I wanted to make this work with minimal changes to the build slaves so that setting up new slaves could be easy. JDK8 apparently doesn't need the variable to be set, so it's just one more thing I have to remember to remove when we finally update.

    Jenkins JIRA | 3 years ago | trejkaz
    hudson.os.PosixException: /Volumes/Data/workspace/compile2/os/macosx/product/test-data/??????.xls.b64 ENOENT
  5. 0

    When trying to archive some files I get the following exception thrown: 00:57:00.704 ERROR: Failed to archive artifacts: git_stats/ 00:57:00.927 hudson.util.IOException2: hudson.os.PosixException: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andr��_ribes ENOENT 00:57:01.003 at hudson.FilePath.copyRecursiveTo(FilePath.java:1942) 00:57:01.045 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137) 00:57:01.045 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) 00:57:02.258 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun.conditionalRun(BuildStepRunner.java:264) 00:57:02.259 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) 00:57:02.260 at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:88) 00:57:02.260 at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:96) 00:57:02.260 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 00:57:02.260 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) 00:57:02.260 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774) 00:57:02.260 at hudson.model.Build$BuildExecution.post2(Build.java:183) 00:57:02.260 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724) 00:57:02.260 at hudson.model.Run.execute(Run.java:1600) 00:57:02.260 at hudson.plugins.project_inheritance.projects.InheritanceBuild.run(InheritanceBuild.java:61) 00:57:02.260 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:57:02.260 at hudson.model.Executor.run(Executor.java:237) 00:57:02.260 Caused by: java.util.concurrent.ExecutionException: hudson.os.PosixException: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andr��_ribes ENOENT 00:57:02.260 at hudson.remoting.Channel$4.adapt(Channel.java:705) 00:57:02.260 at hudson.remoting.Channel$4.adapt(Channel.java:700) 00:57:02.260 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) 00:57:02.260 at hudson.FilePath.copyRecursiveTo(FilePath.java:1940) 00:57:02.260 ... 15 more 00:57:02.260 Caused by: hudson.os.PosixException: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andr��_ribes ENOENT 00:57:02.260 at hudson.os.PosixAPI$1.error(PosixAPI.java:43) 00:57:02.260 at org.jruby.ext.posix.LinuxPOSIX.stat(LinuxPOSIX.java:89) 00:57:02.260 at hudson.util.IOUtils.mode(IOUtils.java:125) 00:57:02.260 at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) 00:57:02.260 at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) 00:57:02.260 at hudson.FilePath.writeToTar(FilePath.java:1978) 00:57:02.260 at hudson.FilePath.access$1000(FilePath.java:168) 00:57:02.260 at hudson.FilePath$36.invoke(FilePath.java:1919) 00:57:02.260 at hudson.FilePath$36.invoke(FilePath.java:1915) 00:57:02.260 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387) 00:57:02.260 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 00:57:02.260 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 00:57:02.260 at hudson.remoting.Request$2.run(Request.java:326) 00:57:02.260 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 00:57:02.260 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 00:57:02.260 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 00:57:02.260 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 00:57:02.260 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 00:57:02.260 at java.lang.Thread.run(Thread.java:722) 00:57:02.260 Build step 'Flexible publish' changed build result to FAILURE The filename on the shell looks like this: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andré_ribes

    Jenkins JIRA | 4 years ago | Stefan Schmidt
    hudson.util.IOException2: hudson.os.PosixException: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andr��_ribes ENOENT 00:57:01.003 at hudson.FilePath.copyRecursiveTo(FilePath.java:1942) 00:57:01.045 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137) 00:57:01.045 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) 00:57:02.258 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun.conditionalRun(BuildStepRunner.java:264) 00:57:02.259 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)

  1. davidvanlaatum 16 times, last 6 months ago
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. hudson.os.PosixException

    native error calling stat: No such file or directory /var/lib/jenkins/workspace/company-abc/test-project/target/test-project-1.1.1.jar ENOENT

    at hudson.os.PosixAPI$1.error()
  2. Hudson
    PosixAPI$1.error
    1. hudson.os.PosixAPI$1.error(PosixAPI.java:35)
    1 frame
  3. JRuby Main Maven Artifact
    LazyPOSIX.stat
    1. jnr.posix.LinuxPOSIX.stat(LinuxPOSIX.java:117)
    2. jnr.posix.CheckedPOSIX.stat(CheckedPOSIX.java:265)
    3. jnr.posix.LazyPOSIX.stat(LazyPOSIX.java:267)
    3 frames
  4. Hudson
    IOUtils.mode
    1. hudson.util.IOUtils.mode(IOUtils.java:125)
    1 frame