hudson.util.jna.WinIOException: Failed to create a symlink T:\jenkins\jobs\Bootloader\lastStable to builds\lastStableBuild error=1:Incorrect function

Jenkins JIRA | Dominika Tomaszewska | 2 years ago
  1. 0

    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 JIRA | 2 years ago | Dominika Tomaszewska
    hudson.util.jna.WinIOException: Failed to create a symlink T:\jenkins\jobs\Bootloader\lastStable to builds\lastStableBuild error=1:Incorrect function
  2. 0

    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 JIRA | 2 years ago | Dominika Tomaszewska
    hudson.util.jna.WinIOException: Failed to create a symlink T:\jenkins\jobs\Bootloader\lastStable to builds\lastStableBuild error=1:Incorrect function
  3. 0

    "Move" a job from a Linux master to a Windows master

    Google Groups | 3 years ago | Steve K
    hudson.util.jna.WinIOException: Failed to create a symlink D:\Jenkins\jobs\testjob\lastSuccessful to builds\lastSuccessfulBuild error=183:Cannot create a file when that file already exists
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I tried jumping from 1.506 to 1.525. The upgrade went fine and was able to load again, however, all builds were having issues. At the beginning of every build I would see: Started by an SCM change ln 2013-08-05_07-31-57 F:\jenkins\jobs\ExampleJob\builds\107 failed hudson.util.jna.WinIOException: Failed to create a symlink F:\jenkins\jobs\ExampleJob\builds\107 to 2013-08-05_07-31-57 error=5:Access is denied at hudson.util.jna.Kernel32Utils.createSymbolicLink(Kernel32Utils.java:92) at hudson.Util.createSymlink(Util.java:1049) at hudson.model.Run.execute(Run.java:1591) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) But then it goes on to build the job successfully, and then at the end I see: Archiving artifacts Processing tests results in file(s) local\TestResults\UnitTestResults.trx,local\TestResults\IntegrationTestMSSQLResults.trx local\TestResults\UnitTestResults.trx ln builds\lastSuccessfulBuild F:\jenkins\jobs\ExampleJobs\lastSuccessful failed hudson.util.jna.WinIOException: Failed to create a symlink F:\jenkins\jobs\ExampleJob\lastSuccessful to builds\lastSuccessfulBuild error=5:Access is denied at hudson.util.jna.Kernel32Utils.createSymbolicLink(Kernel32Utils.java:92) at hudson.Util.createSymlink(Util.java:1049) at hudson.model.AbstractBuild.createSymlink(AbstractBuild.java:494) at hudson.model.AbstractBuild.access$700(AbstractBuild.java:105) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:728) at hudson.model.Run.execute(Run.java:1618) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) ln builds\lastStableBuild F:\jenkins\jobs\ExampleJob\lastStable failed hudson.util.jna.WinIOException: Failed to create a symlink F:\jenkins\jobs\ExampleJob\lastStable to builds\lastStableBuild error=5:Access is denied at hudson.util.jna.Kernel32Utils.createSymbolicLink(Kernel32Utils.java:92) at hudson.Util.createSymlink(Util.java:1049) at hudson.model.AbstractBuild.createSymlink(AbstractBuild.java:494) at hudson.model.AbstractBuild.access$700(AbstractBuild.java:105) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1618) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Email was triggered for: Success So I see that it says access denied. But how could it be access denied, when it continues to build just fine? Was there an extra section added where I need to enter credential information for this? Thoughts?

    Jenkins JIRA | 3 years ago | Kevin Thieling
    hudson.util.jna.WinIOException: Failed to create a symlink F:\jenkins\jobs\ExampleJob\lastStable to builds\lastStableBuild error=5:Access is denied

    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.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()
    2. hudson.util.jna
      Kernel32Utils.createSymbolicLink
      1. hudson.util.jna.Kernel32Utils.createSymbolicLink(Kernel32Utils.java:93)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.Util.createSymlink(Util.java:1078)
      2. hudson.model.Run.createSymlink(Run.java:1812)
      3. hudson.model.Run.updateSymlinks(Run.java:1794)
      4. hudson.model.Run.execute(Run.java:1704)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:232)
      7 frames