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

Jenkins reports non-English failures to create symbolic links on Windows

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Windows 7 64bit
    • Similar Issues:

      Description

      Not sure if the assigned components are correct. Please correct them if necessary.

      After update to jenkins 1.483 I get an error message at the beginning of each build:

      Build wurde durch eine SCM-Änderung ausgelöst.
      ln 2012-09-26_12-23-54 f:\Jenkins\jobs\xxx\builds\1 failed
      java.nio.file.FileSystemException: f:\Jenkins\jobs\xxx\builds\1: Dem Client fehlt ein erforderliches Recht.

      at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source)
      at java.nio.file.Files.createSymbolicLink(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.Util.createSymlinkJava7(Util.java:1065)
      at hudson.Util.createSymlink(Util.java:1009)
      at hudson.model.Run.execute(Run.java:1500)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

        Attachments

          Activity

          Hide
          zlika Thomas Zlika added a comment - - edited

          I've got the same problem on Windows Vista 32bit with the lattest release (1.485).
          However, this error does not seem to have any impact on the build.
          There is also a similar problem at the end of the build.

          I join the french version of the errors for Nicolas:
          ln 2012-10-11_10-42-22 C:\Users\Thomas\.jenkins\jobs\test\builds\1 failed
          java.nio.file.FileSystemException: C:\Users\Thomas\.jenkins\jobs\test\builds\1: Le client ne dispose pas d'un privilège nécessaire.

          at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source)
          at java.nio.file.Files.createSymbolicLink(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at hudson.Util.createSymlinkJava7(Util.java:1065)
          at hudson.Util.createSymlink(Util.java:1009)
          at hudson.model.Run.execute(Run.java:1514)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)

          ln builds/2012-10-11_10-48-12 C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastSuccessful failed
          java.nio.file.FileSystemException: C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastSuccessful: Le client ne dispose pas d'un privilège nécessaire.

          at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source)
          at java.nio.file.Files.createSymbolicLink(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at hudson.Util.createSymlinkJava7(Util.java:1065)
          at hudson.Util.createSymlink(Util.java:1009)
          at hudson.model.AbstractBuild.createSymlink(AbstractBuild.java:497)
          at hudson.model.AbstractBuild.access$700(AbstractBuild.java:103)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:732)
          at hudson.model.Run.execute(Run.java:1541)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)
          ln builds/2012-10-11_10-48-12 C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastStable failed
          java.nio.file.FileSystemException: C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastStable: Le client ne dispose pas d'un privilège nécessaire.

          at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source)
          at java.nio.file.Files.createSymbolicLink(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at hudson.Util.createSymlinkJava7(Util.java:1065)
          at hudson.Util.createSymlink(Util.java:1009)
          at hudson.model.AbstractBuild.createSymlink(AbstractBuild.java:497)
          at hudson.model.AbstractBuild.access$700(AbstractBuild.java:103)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:735)
          at hudson.model.Run.execute(Run.java:1541)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)

          Show
          zlika Thomas Zlika added a comment - - edited I've got the same problem on Windows Vista 32bit with the lattest release (1.485). However, this error does not seem to have any impact on the build. There is also a similar problem at the end of the build. I join the french version of the errors for Nicolas: ln 2012-10-11_10-42-22 C:\Users\Thomas\.jenkins\jobs\test\builds\1 failed java.nio.file.FileSystemException: C:\Users\Thomas\.jenkins\jobs\test\builds\1: Le client ne dispose pas d'un privilège nécessaire. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.Util.createSymlinkJava7(Util.java:1065) at hudson.Util.createSymlink(Util.java:1009) at hudson.model.Run.execute(Run.java:1514) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) ln builds/2012-10-11_10-48-12 C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastSuccessful failed java.nio.file.FileSystemException: C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastSuccessful: Le client ne dispose pas d'un privilège nécessaire. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.Util.createSymlinkJava7(Util.java:1065) at hudson.Util.createSymlink(Util.java:1009) at hudson.model.AbstractBuild.createSymlink(AbstractBuild.java:497) at hudson.model.AbstractBuild.access$700(AbstractBuild.java:103) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:732) at hudson.model.Run.execute(Run.java:1541) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) ln builds/2012-10-11_10-48-12 C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastStable failed java.nio.file.FileSystemException: C:\Users\Thomas\.jenkins\jobs\test\builds\..\lastStable: Le client ne dispose pas d'un privilège nécessaire. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.Util.createSymlinkJava7(Util.java:1065) at hudson.Util.createSymlink(Util.java:1009) at hudson.model.AbstractBuild.createSymlink(AbstractBuild.java:497) at hudson.model.AbstractBuild.access$700(AbstractBuild.java:103) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:735) at hudson.model.Run.execute(Run.java:1541) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
          Hide
          jglick Jesse Glick added a comment -

          It is intentionally trying to create symlinks, and this will in fact work when your Windows (Vista+) system is configured to allow it. When it fails, Jenkins normally ignores the failure, but I guess that works only in English locale.

          Show
          jglick Jesse Glick added a comment - It is intentionally trying to create symlinks, and this will in fact work when your Windows (Vista+) system is configured to allow it. When it fails, Jenkins normally ignores the failure, but I guess that works only in English locale.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/Util.java
          http://jenkins-ci.org/commit/jenkins/ced5c443231d6c41f89f6c5fdb99b433725ff4db
          Log:
          [FIXED JENKINS-15316] Harmless but noisy exception running builds on some Windows systems in non-English locale.
          Falling back to just checking for ‘FileSystemException’ since detail message about missing required privilege may be translated.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/Util.java http://jenkins-ci.org/commit/jenkins/ced5c443231d6c41f89f6c5fdb99b433725ff4db Log: [FIXED JENKINS-15316] Harmless but noisy exception running builds on some Windows systems in non-English locale. Falling back to just checking for ‘FileSystemException’ since detail message about missing required privilege may be translated.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #2006
          [FIXED JENKINS-15316] Harmless but noisy exception running builds on some Windows systems in non-English locale. (Revision ced5c443231d6c41f89f6c5fdb99b433725ff4db)

          Result = SUCCESS
          Jesse Glick : ced5c443231d6c41f89f6c5fdb99b433725ff4db
          Files :

          • core/src/main/java/hudson/Util.java
          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2006 [FIXED JENKINS-15316] Harmless but noisy exception running builds on some Windows systems in non-English locale. (Revision ced5c443231d6c41f89f6c5fdb99b433725ff4db) Result = SUCCESS Jesse Glick : ced5c443231d6c41f89f6c5fdb99b433725ff4db Files : core/src/main/java/hudson/Util.java changelog.html

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              xxthunder Karsten Günther
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: