Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52707

Artifacts archiver throws IOException2 ENOENT for files with special file names

    Details

    • Similar Issues:

      Description

      When running a maven build from master to slave, the job fails at archive artfacts on files with special chars in the name. Both hosts are RHEL and running Jenkins under docker. Both master and Slave have same UTF setting - UTF-8 - and also LANG=C.UTF-8 set as env var.

       

      file.encoding UTF-8
      sun.jnu.encoding UTF-8
      LANG C.UTF-8
      sun.io.unicode.encoding UnicodeLittle
      file.encoding.pkg sun.io
      file.separator /

      master

      JAVA_DEBIAN_VERSION 8u45-b14-2~bpo8+2
      JAVA_VERSION 8u45

      slave

      JAVA_VERSION 1.8.0_45

      Archiving artifacts
      ERROR: Failed to archive artifacts: */
      java.io.IOException
      : java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /workspace/TBUILD/TBUILD-5-MR1/HB/hb/hb/hb-app/src/main/webapp/netn/bower_components/flag-icon/svg/es/castile_and_le??n.svg ENOENT
      at
      hudson.FilePath.copyRecursiveTo(FilePath.java:2224)
      at
      jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
      at
      hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219)
      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
      at
      hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      at
      hudson.model.Build$BuildExecution.post2(Build.java:183)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
      at
      hudson.model.Run.execute(Run.java:1766)
      at
      hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at
      hudson.model.ResourceController.execute(ResourceController.java:98)
      at
      hudson.model.Executor.run(Executor.java:374)
      Caused by:
      java.util.concurrent.ExecutionException
      : hudson.os.PosixException: native error calling stat: No such file or directory /workspace/TBUILD/TBUILD-5-MR1/HB/hb/hb/hb-app/src/main/webapp/netn/bower_components/flag-icon/svg/es/castile_and_le??n.svg ENOENT
      at
      hudson.remoting.Channel$3.adapt(Channel.java:785)
      at
      hudson.remoting.Channel$3.adapt(Channel.java:780)
      at
      hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      at
      hudson.FilePath.copyRecursiveTo(FilePath.java:2222)
      ... 12 more
      Caused by:
      hudson.os.PosixException
      : native error calling stat: No such file or directory /workspace/TBUILD/TBUILD-5-MR1/HB/hb/hb/hb-app/src/main/webapp/netn/bower_components/flag-icon/svg/es/castile_and_le??n.svg 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:128)
      at
      hudson.util.io.TarArchiver.visit(TarArchiver.java:101)
      at
      hudson.util.DirScanner.scanSingle(DirScanner.java:49)
      at
      hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2775)
      at
      hudson.FilePath.writeToTar(FilePath.java:2260)
      at
      hudson.FilePath.access$2100(FilePath.java:191)
      at
      hudson.FilePath$45.invoke(FilePath.java:2201)
      at
      hudson.FilePath$45.invoke(FilePath.java:2197)
      at
      hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
      at
      hudson.remoting.UserRequest.perform(UserRequest.java:121)
      at
      hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at
      hudson.remoting.Request$2.run(Request.java:324)
      at
      hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at
      java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at
      hudson.remoting.Engine$1$1.run(Engine.java:63)
      at
      java.lang.Thread.run(Thread.java:745)
      at ......remote call to D1-Jenkins-Slave-1-b50179ea(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
      at hudson.remoting.Channel$3.adapt(Channel.java:783)
      ... 15 more
      Build step 'Archive the artifacts' changed build result to FAILURE
      Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur.
      Collecting metadata...
      Metadata collection done.
      Warning: ?Access Control for Builds? in global security configuration is empty, so falling back to legacy behavior of permitting any downstream builds to be triggered
      Finished: FAILURE

        Attachments

          Activity

          fmattos Felipe Mattos created issue -
          fmattos Felipe Mattos made changes -
          Field Original Value New Value
          Description 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

          When running a maven build from master to slave, the job fails at archive artfacts on files with special chars in the name. Both hosts are RHEL and running Jenkins under docker. Both master and Slave have same UTF setting - UTF-8 - and also LANG=C.UTF-8 set as env var.

           
          |file.encoding|UTF-8|

          |sun.jnu.encoding|UTF-8|

          |LANG|C.UTF-8|

          |sun.io.unicode.encoding|UnicodeLittle|

          |file.encoding.pkg|sun.io|
          |file.separator|/|

          master
          |JAVA_DEBIAN_VERSION|8u45-b14-2~bpo8+2|
          |JAVA_VERSION|8u45|

          slave
          |JAVA_VERSION|1.8.0_45|




          Archiving artifacts
          ERROR: Failed to archive artifacts: **/*
          [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]
          : java.util.concurrent.ExecutionException: hudson.os.PosixException: native error calling stat: No such file or directory /workspace/TBUILD/TBUILD-5-MR1/HB/hb/hb/hb-app/src/main/webapp/netn/bower_components/flag-icon/svg/es/castile_and_le??n.svg ENOENT
          at
          [hudson.FilePath.copyRecursiveTo(FilePath.java:2224)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.copyRecursiveTo&entity=method]
          at
          [jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)|http://stacktrace.jenkins-ci.org/search/?query=jenkins.model.StandardArtifactManager.archive&entity=method]
          at
          [hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219)|http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.ArtifactArchiver.perform&entity=method]
          at
          [hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)|http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepCompatibilityLayer.perform&entity=method]
          at
          [hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)|http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform&entity=method]
          at
          [hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method]
          at
          [hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps&entity=method]
          at
          [hudson.model.Build$BuildExecution.post2(Build.java:183)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.post2&entity=method]
          at
          [hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.post&entity=method]
          at
          [hudson.model.Run.execute(Run.java:1766)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method]
          at
          [hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method]
          at
          [hudson.model.ResourceController.execute(ResourceController.java:98)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method]
          at
          [hudson.model.Executor.run(Executor.java:374)|http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method]
          Caused by:
          [java.util.concurrent.ExecutionException|http://stacktrace.jenkins-ci.org/search?query=java.util.concurrent.ExecutionException]
          : hudson.os.PosixException: native error calling stat: No such file or directory /workspace/TBUILD/TBUILD-5-MR1/HB/hb/hb/hb-app/src/main/webapp/netn/bower_components/flag-icon/svg/es/castile_and_le??n.svg ENOENT
          at
          [hudson.remoting.Channel$3.adapt(Channel.java:785)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel$3.adapt&entity=method]
          at
          [hudson.remoting.Channel$3.adapt(Channel.java:780)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel$3.adapt&entity=method]
          at
          [hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.FutureAdapter.get&entity=method]
          at
          [hudson.FilePath.copyRecursiveTo(FilePath.java:2222)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.copyRecursiveTo&entity=method]
          ... 12 more
          Caused by:
          [hudson.os.PosixException|http://stacktrace.jenkins-ci.org/search?query=hudson.os.PosixException]
          : native error calling stat: No such file or directory /workspace/TBUILD/TBUILD-5-MR1/HB/hb/hb/hb-app/src/main/webapp/netn/bower_components/flag-icon/svg/es/castile_and_le??n.svg ENOENT
          at
          [hudson.os.PosixAPI$1.error(PosixAPI.java:35)|http://stacktrace.jenkins-ci.org/search/?query=hudson.os.PosixAPI$1.error&entity=method]
          at
          [jnr.posix.LinuxPOSIX.stat(LinuxPOSIX.java:117)|http://stacktrace.jenkins-ci.org/search/?query=jnr.posix.LinuxPOSIX.stat&entity=method]
          at
          [jnr.posix.CheckedPOSIX.stat(CheckedPOSIX.java:265)|http://stacktrace.jenkins-ci.org/search/?query=jnr.posix.CheckedPOSIX.stat&entity=method]
          at
          [jnr.posix.LazyPOSIX.stat(LazyPOSIX.java:267)|http://stacktrace.jenkins-ci.org/search/?query=jnr.posix.LazyPOSIX.stat&entity=method]
          at
          [hudson.util.IOUtils.mode(IOUtils.java:128)|http://stacktrace.jenkins-ci.org/search/?query=hudson.util.IOUtils.mode&entity=method]
          at
          [hudson.util.io.TarArchiver.visit(TarArchiver.java:101)|http://stacktrace.jenkins-ci.org/search/?query=hudson.util.io.TarArchiver.visit&entity=method]
          at
          [hudson.util.DirScanner.scanSingle(DirScanner.java:49)|http://stacktrace.jenkins-ci.org/search/?query=hudson.util.DirScanner.scanSingle&entity=method]
          at
          [hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2775)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$ExplicitlySpecifiedDirScanner.scan&entity=method]
          at
          [hudson.FilePath.writeToTar(FilePath.java:2260)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.writeToTar&entity=method]
          at
          [hudson.FilePath.access$2100(FilePath.java:191)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.access$2100&entity=method]
          at
          [hudson.FilePath$45.invoke(FilePath.java:2201)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$45.invoke&entity=method]
          at
          [hudson.FilePath$45.invoke(FilePath.java:2197)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$45.invoke&entity=method]
          at
          [hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)|http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$FileCallableWrapper.call&entity=method]
          at
          [hudson.remoting.UserRequest.perform(UserRequest.java:121)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method]
          at
          [hudson.remoting.UserRequest.perform(UserRequest.java:49)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method]
          at
          [hudson.remoting.Request$2.run(Request.java:324)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method]
          at
          [hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method]
          at
          [java.util.concurrent.FutureTask.run(FutureTask.java:266)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method]
          at
          [java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method]
          at
          [java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)|http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method]
          at
          [hudson.remoting.Engine$1$1.run(Engine.java:63)|http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Engine$1$1.run&entity=method]
          at
          [java.lang.Thread.run(Thread.java:745)|http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method]
          at ......remote call to D1-Jenkins-Slave-1-b50179ea(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
          at hudson.remoting.Channel$3.adapt(Channel.java:783)
          ... 15 more
          Build step 'Archive the artifacts' changed build result to FAILURE
          Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur.
          Collecting metadata...
          Metadata collection done.
          Warning: ?Access Control for Builds? in global security configuration is empty, so falling back to legacy behavior of permitting any downstream builds to be triggered
          Finished: FAILURE
          fmattos Felipe Mattos made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          fmattos Felipe Mattos made changes -
          Summary CLONE - Artifacts archiver throws IOException2 ENOENT for files with special file names Artifacts archiver throws IOException2 ENOENT for files with special file names
          fmattos Felipe Mattos made changes -
          Assignee Gregory Boissinot [ gbois ] Sean Turner [ seanturner83 ]
          fmattos Felipe Mattos made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          fmattos Felipe Mattos made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          fmattos Felipe Mattos made changes -
          Rank Ranked higher
          fmattos Felipe Mattos made changes -
          Labels ArtifactArchiver Docker Maven Slave
          fmattos Felipe Mattos made changes -
          Rank Ranked higher

            People

            • Assignee:
              seanturner83 Sean Turner
              Reporter:
              fmattos Felipe Mattos
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: