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

NodeJS plugin Failed to download - incorrect header check

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      1.3.7

      Description

      Upgrading from nodejs-plugin 1.3.5 to 1.3.6 the following error occurs:

       Unpacking https://nodejs.org/dist/v10.21.0/ to C:\jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\NodeJSLatest on Jenkins-win
       ERROR: Failed to download https://nodejs.org/dist/v10.21.0/ from agent; will retry from master
       java.io.IOException: incorrect header check
       	at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112)
       	at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:168)
       	at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:142)
       	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.readRecord(TarArchiveInputStream.java:459)
       	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getRecord(TarArchiveInputStream.java:428)
       	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:305)
       	at hudson.FilePath.readFromTar(FilePath.java:2582)
       Caused: java.io.IOException: Failed to extract input stream
       	at hudson.FilePath.readFromTar(FilePath.java:2608)
       	at hudson.FilePath.access$500(FilePath.java:211)
       	at hudson.FilePath$Unpack.invoke(FilePath.java:954)
       Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from [OMISSIS]
       		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
       		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
       		at hudson.remoting.Channel.call(Channel.java:998)
       		at hudson.FilePath.act(FilePath.java:1069)
       		at hudson.FilePath.act(FilePath.java:1058)
       		at hudson.FilePath.installIfNecessaryFrom(FilePath.java:914)
       		at hudson.FilePath.installIfNecessaryFrom(FilePath.java:850)
       		at jenkins.plugins.nodejs.tools.NodeJSInstaller.performInstallation(NodeJSInstaller.java:124)
       		at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:69)
       		at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
       		at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
       		at jenkins.plugins.nodejs.tools.NodeJSInstallation.forNode(NodeJSInstallation.java:95)
       		at jenkins.plugins.nodejs.NodeJSBuildWrapper.setUp(NodeJSBuildWrapper.java:158)
       		at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:97)
       		at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
       		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
       		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       		at java.lang.Thread.run(Thread.java:748)
       Caused: java.io.IOException: Failed to unpack https://nodejs.org/dist/v10.21.0/ (26 bytes read)
       	at hudson.FilePath$Unpack.invoke(FilePath.java:957)
       	at hudson.FilePath$Unpack.invoke(FilePath.java:942)
       	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3069)
       	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 hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
       	at java.lang.Thread.run(Unknown Source)
      

      It seems it's trying to download the directory instead of the artifact.
      I'm quite sure it's related to the "Simplify the installer" improvement done in the 1.3.6 release.

        Attachments

          Activity

          jhack Giacomo Boccardo created issue -
          jhack Giacomo Boccardo made changes -
          Field Original Value New Value
          Description Upgrading from nodejs-plugin 1.3.5 to 1.3.6 the following error occurs:
          {code:java}
           Unpacking https://nodejs.org/dist/v10.21.0/ to C:\jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\NodeJSLatest on Jenkins-win
           ERROR: Failed to download https://nodejs.org/dist/v10.21.0/ from agent; will retry from master
           java.io.IOException: incorrect header check
            at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112)
            at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:168)
            at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:142)
            at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.readRecord(TarArchiveInputStream.java:459)
            at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getRecord(TarArchiveInputStream.java:428)
            at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:305)
            at hudson.FilePath.readFromTar(FilePath.java:2582)
           Caused: java.io.IOException: Failed to extract input stream
            at hudson.FilePath.readFromTar(FilePath.java:2608)
            at hudson.FilePath.access$500(FilePath.java:211)
            at hudson.FilePath$Unpack.invoke(FilePath.java:954)
           Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from jenkins-win.unimatica.lan/10.143.88.144:64610
            at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
            at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
            at hudson.remoting.Channel.call(Channel.java:998)
            at hudson.FilePath.act(FilePath.java:1069)
            at hudson.FilePath.act(FilePath.java:1058)
            at hudson.FilePath.installIfNecessaryFrom(FilePath.java:914)
            at hudson.FilePath.installIfNecessaryFrom(FilePath.java:850)
            at jenkins.plugins.nodejs.tools.NodeJSInstaller.performInstallation(NodeJSInstaller.java:124)
            at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:69)
            at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
            at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
            at jenkins.plugins.nodejs.tools.NodeJSInstallation.forNode(NodeJSInstallation.java:95)
            at jenkins.plugins.nodejs.NodeJSBuildWrapper.setUp(NodeJSBuildWrapper.java:158)
            at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:97)
            at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:748)
           Caused: java.io.IOException: Failed to unpack https://nodejs.org/dist/v10.21.0/ (26 bytes read)
            at hudson.FilePath$Unpack.invoke(FilePath.java:957)
            at hudson.FilePath$Unpack.invoke(FilePath.java:942)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3069)
            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 hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
            at java.lang.Thread.run(Unknown Source)
          {code}

          It seems it's trying to download the directory instead of the artifact.
          I'm quite sure it's related to the "Simplify the installer" improvement done in the 1.3.6 release.
          Upgrading from nodejs-plugin 1.3.5 to 1.3.6 the following error occurs:
          {code:java}
           Unpacking https://nodejs.org/dist/v10.21.0/ to C:\jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\NodeJSLatest on Jenkins-win
           ERROR: Failed to download https://nodejs.org/dist/v10.21.0/ from agent; will retry from master
           java.io.IOException: incorrect header check
            at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112)
            at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:168)
            at org.apache.commons.compress.utils.IOUtils.readFully(IOUtils.java:142)
            at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.readRecord(TarArchiveInputStream.java:459)
            at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getRecord(TarArchiveInputStream.java:428)
            at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:305)
            at hudson.FilePath.readFromTar(FilePath.java:2582)
           Caused: java.io.IOException: Failed to extract input stream
            at hudson.FilePath.readFromTar(FilePath.java:2608)
            at hudson.FilePath.access$500(FilePath.java:211)
            at hudson.FilePath$Unpack.invoke(FilePath.java:954)
           Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from [OMISSIS]
            at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
            at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
            at hudson.remoting.Channel.call(Channel.java:998)
            at hudson.FilePath.act(FilePath.java:1069)
            at hudson.FilePath.act(FilePath.java:1058)
            at hudson.FilePath.installIfNecessaryFrom(FilePath.java:914)
            at hudson.FilePath.installIfNecessaryFrom(FilePath.java:850)
            at jenkins.plugins.nodejs.tools.NodeJSInstaller.performInstallation(NodeJSInstaller.java:124)
            at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:69)
            at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
            at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
            at jenkins.plugins.nodejs.tools.NodeJSInstallation.forNode(NodeJSInstallation.java:95)
            at jenkins.plugins.nodejs.NodeJSBuildWrapper.setUp(NodeJSBuildWrapper.java:158)
            at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:97)
            at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:748)
           Caused: java.io.IOException: Failed to unpack https://nodejs.org/dist/v10.21.0/ (26 bytes read)
            at hudson.FilePath$Unpack.invoke(FilePath.java:957)
            at hudson.FilePath$Unpack.invoke(FilePath.java:942)
            at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3069)
            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 hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
            at java.lang.Thread.run(Unknown Source)
          {code}

          It seems it's trying to download the directory instead of the artifact.
          I'm quite sure it's related to the "Simplify the installer" improvement done in the 1.3.6 release.
          nfalco Nikolas Falco made changes -
          Released As 1.3.6
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          nfalco Nikolas Falco made changes -
          Released As 1.3.6 1.3.7

            People

            Assignee:
            nfalco Nikolas Falco
            Reporter:
            jhack Giacomo Boccardo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: