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

hundson failed to create symlink cause incorrect function

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • core
    • system win7 64 bit
      Java Oracle JDE 1.7.0 60
      jenkins ver. 1.565.1
      jenkins acces through localhost:8080

      The communicates being thrown in the console at the top of every build are kind of:

      ln 2014-09-17_14-23-26 T:\jenkins\jobs\Bootloader\builds\11 failed
      hudson.util.jna.WinIOException: Failed to create a symlink T:\jenkins\jobs\Bootloader\builds\11 to 2014-09-17_14-23-26 error=1:Incorrect function
      at hudson.util.jna.Kernel32Utils.createSymbolicLink(Kernel32Utils.java:93)
      at hudson.Util.createSymlink(Util.java:1078)
      at hudson.model.Run.updateSymlinks(Run.java:1792)
      at hudson.model.Run.execute(Run.java:1704)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:232)
      ln builds\lastSuccessfulBuild T:\jenkins\jobs\Bootloader\lastSuccessful failed
      hudson.util.jna.WinIOException: Failed to create a symlink T:\jenkins\jobs\Bootloader\lastSuccessful to builds\lastSuccessfulBuild error=1:Incorrect function
      at hudson.util.jna.Kernel32Utils.createSymbolicLink(Kernel32Utils.java:93)
      at hudson.Util.createSymlink(Util.java:1078)
      at hudson.model.Run.createSymlink(Run.java:1812)
      at hudson.model.Run.updateSymlinks(Run.java:1793)
      at hudson.model.Run.execute(Run.java:1704)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:232)
      ln builds\lastStableBuild T:\jenkins\jobs\Bootloader\lastStable failed
      hudson.util.jna.WinIOException: Failed to create a symlink T:\jenkins\jobs\Bootloader\lastStable to builds\lastStableBuild error=1:Incorrect function
      at hudson.util.jna.Kernel32Utils.createSymbolicLink(Kernel32Utils.java:93)
      at hudson.Util.createSymlink(Util.java:1078)
      at hudson.model.Run.createSymlink(Run.java:1812)
      at hudson.model.Run.updateSymlinks(Run.java:1794)
      at hudson.model.Run.execute(Run.java:1704)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:232)
      Building in workspace T:\jenkins\jobs\Bootloader\workspace
      Reverting T:\jenkins\jobs\Bootloader\workspace\. to depth infinity with ignoreExternals: false

      an then everything is getting normal and build is finished as success.

          [JENKINS-24745] hundson failed to create symlink cause incorrect function

          What is "Oracle IRE"? What version? Where is other info?
          "jenkins acces through localhost:8080" is irrelevant info.
          @ayfer , please read again https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue#Howtoreportanissue-WhatinformationtoprovideforEnvironmentandDescription

          Kanstantsin Shautsou added a comment - What is "Oracle IRE"? What version? Where is other info? "jenkins acces through localhost:8080" is irrelevant info. @ayfer , please read again https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue#Howtoreportanissue-WhatinformationtoprovideforEnvironmentandDescription

          Daniel Beck added a comment - - edited

          Kanstantsin: Be nice, better too much (+ irrelevant) than too little information.

          Daniel Beck added a comment - - edited Kanstantsin: Be nice, better too much (+ irrelevant) than too little information.

          Daniel Beck added a comment -

          What kind of volume is mounted at T:?

          Note that Jenkins creates symbolic links in its home directory for various reasons, and that should therefore be stored on a volume that supports symbolic links.

          Also, the user Jenkins runs as needs to have permission to create symbolic links – AFAIR, Windows allows disabling that e.g. in Group Policy. The corresponding command line utility (to possibly get more information why creation fails) is mklink.

          Daniel Beck added a comment - What kind of volume is mounted at T:? Note that Jenkins creates symbolic links in its home directory for various reasons, and that should therefore be stored on a volume that supports symbolic links. Also, the user Jenkins runs as needs to have permission to create symbolic links – AFAIR, Windows allows disabling that e.g. in Group Policy. The corresponding command line utility (to possibly get more information why creation fails) is mklink .

          I'm planning to fix it by myself. But I hope, I could catch some information or advises.

          T volume is TrueCrypt volume. Crypted by AES. I have all administration rights on it and all privileges on it.

          Kanstantsin: IRE 6

          Dominika Tomaszewska added a comment - I'm planning to fix it by myself. But I hope, I could catch some information or advises. T volume is TrueCrypt volume. Crypted by AES. I have all administration rights on it and all privileges on it. Kanstantsin: IRE 6

          Daniel Beck added a comment -

          T volume is TrueCrypt volume

          That's just the container. What file system?

          Daniel Beck added a comment - T volume is TrueCrypt volume That's just the container. What file system?

          Daniel Beck added a comment -

          IRE 6

          JRE maybe? Otherwise, please provide some reference what IRE is.

          Daniel Beck added a comment - IRE 6 JRE maybe? Otherwise, please provide some reference what IRE is.

          File system? FAT.
          And excuse me for typo, big mistake.

          Dominika Tomaszewska added a comment - File system? FAT. And excuse me for typo, big mistake.

          Daniel Beck added a comment -

          FAT does not support symbolic links. Use NTFS.

          Given the rarity of FAT in 2014 (not counting USB thumb drives), I think this can be safely ignored.

          Daniel Beck added a comment - FAT does not support symbolic links. Use NTFS. Given the rarity of FAT in 2014 (not counting USB thumb drives), I think this can be safely ignored.

          Worked.
          Thank you a lot for your help

          Dominika Tomaszewska added a comment - Worked. Thank you a lot for your help

          Daniel Beck added a comment -

          Another possible option would be to try setting the system property hudson.Util.noSymLink to true. But getting rid of FAT is a good idea anyway...

          Daniel Beck added a comment - Another possible option would be to try setting the system property hudson.Util.noSymLink to true. But getting rid of FAT is a good idea anyway...

            ayfer Dominika Tomaszewska
            ayfer Dominika Tomaszewska
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: