hudson.os.PosixException: /Volumes/Data/workspace/compile2/os/macosx/product/test-data/??????.xls.b64 ENOENT

Jenkins JIRA | trejkaz | 3 years ago
  1. 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
  2. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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

    /Volumes/Data/workspace/compile2/os/macosx/product/test-data/??????.xls.b64 ENOENT

    at hudson.os.PosixAPI$1.error()
  2. Hudson
    PosixAPI$1.error
    1. hudson.os.PosixAPI$1.error(PosixAPI.java:43)
    1 frame
  3. JNA-POSIX
    BaseNativePOSIX.stat
    1. org.jruby.ext.posix.BaseNativePOSIX.stat(BaseNativePOSIX.java:184)
    1 frame
  4. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.util.IOUtils.mode(IOUtils.java:125)
    2. hudson.util.io.TarArchiver.visit(TarArchiver.java:102)
    3. hudson.util.DirScanner$Glob.scan(DirScanner.java:133)
    4. hudson.FilePath$1.invoke(FilePath.java:416)
    5. hudson.FilePath$1.invoke(FilePath.java:412)
    6. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
    6 frames
  5. 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
  6. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:724)
    4 frames