NodeJS Maven Plugin: Node Download sometimes fails with EOFException

Description

example:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 23:14:54 [INFO] --- nodejs-maven-plugin:1.0.2:run (default) @ io.wcm.config.editor --- 23:14:54 [INFO] Downloading Node JS from http://nodejs.org/dist/v0.10.32/node-v0.10.32-linux-x64.tar.gz 23:18:08 [ERROR] Execution Exception 23:18:08 org.apache.maven.plugin.MojoExecutionException: Could not extract archive: '/home/jenkins1/workspace/wcm.io_commit/target/nodejs_custom/node-v0.10.32-linux-x64.tar.gz' 23:18:08 at io.wcm.maven.plugins.nodejs.installation.TarUnArchiver.unarchive(TarUnArchiver.java:88) 23:18:08 at io.wcm.maven.plugins.nodejs.installation.NodeUnarchiveTask.execute(NodeUnarchiveTask.java:45) 23:18:08 at io.wcm.maven.plugins.nodejs.mojo.AbstractNodeJsMojo.getOrInstallNodeJS(AbstractNodeJsMojo.java:121) 23:18:08 at io.wcm.maven.plugins.nodejs.mojo.AbstractNodeJsMojo.run(AbstractNodeJsMojo.java:98) 23:18:08 at io.wcm.maven.plugins.nodejs.mojo.NodeJsCompilerMojo.execute(NodeJsCompilerMojo.java:34) 23:18:08 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) 23:18:08 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) 23:18:08 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 23:18:08 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 23:18:08 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 23:18:08 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 23:18:08 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 23:18:08 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 23:18:08 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 23:18:08 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 23:18:08 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117) 23:18:08 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 23:18:08 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 23:18:08 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:18:08 at java.lang.reflect.Method.invoke(Method.java:606) 23:18:08 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 23:18:08 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 23:18:08 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178) 23:18:08 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 23:18:08 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 23:18:08 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 23:18:08 at java.lang.reflect.Method.invoke(Method.java:606) 23:18:08 at hudson.maven.Maven3Builder.call(Maven3Builder.java:136) 23:18:08 at hudson.maven.Maven3Builder.call(Maven3Builder.java:71) 23:18:08 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 23:18:08 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 23:18:08 at hudson.remoting.Request$2.run(Request.java:328) 23:18:08 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 23:18:08 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 23:18:08 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 23:18:08 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 23:18:08 at java.lang.Thread.run(Thread.java:745) 23:18:08 Caused by: java.io.EOFException 23:18:08 at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.read(GzipCompressorInputStream.java:243) 23:18:08 at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:578) 23:18:08 at java.io.InputStream.read(InputStream.java:101) 23:18:08 at io.wcm.maven.plugins.nodejs.installation.TarUnArchiver.unarchive(TarUnArchiver.java:77) 23:18:08 ... 36 more 23:18:08 [INFO] Executing command: /bin/sh -c cd /home/jenkins1/workspace/wcm.io_commit/config/editor/build && /home/jenkins1/workspace/wcm.io_commit/target/nodejs_custom/node-v0.10.32-linux-x64/bin/node /home/jenkins1/workspace/wcm.io_commit/target/nodejs_custom/node-v0.10.32-linux-x64/lib/node_modules/npm/bin/npm-cli.js install 23:18:08 [INFO] /bin/sh: 1: /home/jenkins1/workspace/wcm.io_commit/target/nodejs_custom/node-v0.10.32-linux-x64/bin/node: Text file busy

error:

1 2 3 4 5 6 7 8 9 10 23:18:09 [ERROR] Failed to execute goal io.wcm.maven.plugins:nodejs-maven-plugin:1.0.2:run (default) on project io.wcm.config.editor: Result of /bin/sh -c cd /home/jenkins1/workspace/wcm.io_commit/config/editor/build && /home/jenkins1/workspace/wcm.io_commit/target/nodejs_custom/node-v0.10.32-linux-x64/bin/node /home/jenkins1/workspace/wcm.io_commit/target/nodejs_custom/node-v0.10.32-linux-x64/lib/node_modules/npm/bin/npm-cli.js install execution is: '2'. -> [Help 1] 23:18:09 [ERROR] 23:18:09 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 23:18:09 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 23:18:09 [ERROR] 23:18:09 [ERROR] For more information about the errors and possible solutions, please read the following articles: 23:18:09 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 23:18:09 [ERROR] 23:18:09 [ERROR] After correcting the problems, you can resume the build with the command 23:18:09 [ERROR] mvn <goals> -rf :io.wcm.config.editor

Environment

None

Status

Assignee

Unassigned

Reporter

Stefan Seifert

Labels

None

Components

Fix versions

Affects versions

Node.js Maven Plugin 1.0.2

Priority

Minor
Configure