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

Failed to create symlink - access denied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Jenkins 1.506 upgraded to 1.525 running on Windows Server 2008 R2 Enterprise 64 bit, 4GB RAM, 2 3.10GHz QuadCore AMD Opteron processor 2393 SE.

      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?

            Unassigned Unassigned
            kt Kevin Thieling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: