[nodejs-plugin] permission denied

648 views
Skip to first unread message

John Lemp

unread,
Mar 6, 2015, 1:12:22 PM3/6/15
to jenkins...@googlegroups.com

I have installed the the nodejs plugin 0.2.1 on Jenkins 1.575 but it fails trying to (I assume) install nodejs. 

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?

Daniel Beck

unread,
Mar 6, 2015, 9:01:35 PM3/6/15
to jenkins...@googlegroups.com
Make sure the temp folder is not on a volume mounted with noexec flag.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/aa767d3f-10f3-4e4e-8421-a63aa900e2f5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages