java.io.IOException: Cannot run program "/var/tmp/jenkins/hudson6795453609505606096.js" (in directory "/data/jenkins/workspace/testweb-develop"): java.io.IOException: error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:780) at jenkins.plugins.nodejs.tools.DecoratedLauncher.launch(DecoratedLauncher.java:49) at jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper$2.launch(NpmPackagesBuildWrapper.java:88) at hudson.Launcher$ProcStarter.start(Launcher.java:360) at hudson.Launcher$ProcStarter.join(Launcher.java:367) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:84) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:42) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1740) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 18 more Build step 'Execute NodeJS script' marked build as failure
The build simply has:
var sys = require('sys'); sys.puts('NodeJS Test'); sys.puts('***************'); sys.puts('helloworld');
The odd think is that the plugin screenshot shows a dropdown list of available node js installations for the option "Install from nodejs.org" but on my server it just has a text input. I have tried change the -Djava.io.tmpdir=/var/tmp/jenkins and chown'ing it to the jenkins user but still get a permission denied. The file, hudson6795453609505606096.js seems to get cleaned up as I cannot see the file after the build fails.
Any ideas on how to further troubleshoot?