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

Artifacts archiver throws IOException2 ENOENT for files with special file names

XMLWordPrintable

      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

            seanturner83 Sean Turner
            fmattos Felipe Mattos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: