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

NodeJS tool installation fails on Windows Server 2019

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: nodejs-plugin
    • Labels:
    • Environment:
      Windows Server 2019 (OS Build 17763.678)
    • Similar Issues:

      Description

      Tool installation on a Windows node fails for some reason at this rename:

      Unpacking [https://nodejs.org/dist/v10.16.3/node-v10.16.3-win-x64.zip] to C:\Users\jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\v10 on devops-test3-vm
      
      java.io.IOException: Failed to rename C:\Users\jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\v10\node-v10.16.3-win-x64 to C:\Users\jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\v10\node-v10.16.3-win-x64.__rename
      	at hudson.FilePath$MoveAllChildrenTo.invoke(FilePath.java:2171)
      	at hudson.FilePath$MoveAllChildrenTo.invoke(FilePath.java:2159)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3052)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:369)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      Finished: FAILURE
      

       

      Config:

        Attachments

          Activity

          Hide
          akom Alexander Komarov added a comment - - edited

          I can confirm that this also happens exactly this way with nodejs 7, and only on Windows Server 2019 slaves.  This does not happen on 2008, 2012, 2016 or Windows 10 (I have a matrix job with all of the above).

          Deleting tools\jenkins.plugins.nodejs.tools.NodeJSInstallation did not help.

          Environment: 

          • Jenkins 2.174
          • NodeJS Plugin 1.2.7
          Show
          akom Alexander Komarov added a comment - - edited I can confirm that this also happens exactly this way with  nodejs 7 , and  only on Windows Server 2019  slaves.  This does not happen on 2008, 2012, 2016 or Windows 10 (I have a matrix job with all of the above). Deleting  tools\jenkins.plugins.nodejs.tools.NodeJSInstallation did not help. Environment:  Jenkins 2.174 NodeJS Plugin 1.2.7
          Hide
          nfalco Nikolas Falco added a comment -

          Unfortunately I do not have any windows server 2019 to try.

          Show
          nfalco Nikolas Falco added a comment - Unfortunately I do not have any windows server 2019 to try.
          Hide
          akom Alexander Komarov added a comment -

          Nikolas Falco I'd be happy to do some investigation and run some samples if you can point me in the right direction.  Neither maven nor groovy auto-installs have this issue so the installation must be done differently (ie not using  MoveAllChildrenTo?)

          Show
          akom Alexander Komarov added a comment - Nikolas Falco I'd be happy to do some investigation and run some samples if you can point me in the right direction.  Neither maven nor groovy auto-installs have this issue so the installation must be done differently (ie not using  MoveAllChildrenTo?)
          Hide
          jameshowe James Howe added a comment -

          My guess was something to do with the old MAX_PATH limit, but if it's only Windows 2019 that's more odd.

          Show
          jameshowe James Howe added a comment - My guess was something to do with the old MAX_PATH limit, but if it's only Windows 2019 that's more odd.

            People

            • Assignee:
              nfalco Nikolas Falco
              Reporter:
              jameshowe James Howe
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: