Re: [nodejs-plugin] permission denied

2015-03-06 Thread Daniel Beck
Make sure the temp folder is not on a volume mounted with noexec flag.

On 06.03.2015, at 19:12, John Lemp  wrote:

> 
> 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.(Proc.java:244)
> 
>   at 
> hudson.Proc$LocalProc.(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.(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?
> 
> -- 
> 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-users+unsubscr...@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.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/88B06AA2-38D8-45D5-898E-33D62E1019B4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


[nodejs-plugin] permission denied

2015-03-06 Thread John Lemp

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.(Proc.java:244) 

at hudson.Proc$LocalProc.(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.(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