have you tried to execute the same command on the command line? 
- login to the slave (e.g. ssh) as the same user as the Jenkins slave is 
running with
- change to the same directory 
- execute the mvn command

some ideas:
- was the same workspace used by a different Jenkins before?
- did you change the user the slave is running with

/Domi


On 15.07.2012, at 03:46, krishna kurnala wrote:

> Hello all
> 
> Has anyone faced the same issue before? Can you please guide me.
> 
> I am encountering below exception when I try to run a build on one of our 
> Jenkins Slaves, the same Job succeeds if i tie  it to our Jenkins Master or 
> If I execute the Mvn sonar Command(in Bold below) from the cehcked-out 
> workspace on slave node or I add a goal mvn sonar:sonar along with mvn clean 
> deploy in my build steps.
> 
> [Services-Address] $ mvn -f 
> /home/jenkinspan/workspace/Services-Address/pom.xml -e -B sonar:sonar 
> -Dsonar.jdbc.driver=com.mysql.jdbc.Driver 
> -Dsonar.jdbc.url=jdbc:mysql://10.242.193.136:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
>  ******** ******** -Dsonar.host.url=http://10.242.195.243:9000/
> FATAL: command execution failed
> java.io.IOException: Cannot run program "mvn" (in directory 
> "/home/jenkinspan/workspace/Services-Address"): java.io.IOException: 
> error=13, Permission denied
>       at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
>       at hudson.Proc$LocalProc.<init>(Proc.java:244)
>       at hudson.Proc$LocalProc.<init>(Proc.java:216)
>       at hudson.Launcher$LocalLauncher.launch(Launcher.java:709)
>       at hudson.Launcher$ProcStarter.start(Launcher.java:338)
>       at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934)
>       at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>       at hudson.remoting.Request$2.run(Request.java:287)
>       at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>       at java.lang.Thread.run(Thread.java:636)
> Caused by: java.io.IOException: java.io.IOException: error=13, Permission 
> denied
>       at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>       at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>       at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
>       ... 15 more
> Sonar analysis completed: FAILURE
> Build step 'Sonar' changed build result to FAILURE
> Build step 'Sonar' marked build as failure
> Email was triggered for: Failure
> 
> 
> 
> From the Look of it, I did verify that, the Maven PATH's are correct on both 
> Slave and Master.
> I added the command echo $PATH before the build commences.
> Master
> echo 
> /usr/local/apache-ant-1.8.2/bin:/home/iorlov/jdk1.6.0_25/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/bin:/home/iorlov/apache-maven-3.0.4/bin
> 
> Slave
> [Services-Client-Sonar] $ /bin/sh -xe /tmp/hudson3958915402151014871.sh
> + echo 
> /home/jenkinspan/apache-ant-1.8.3/bin:/home/jenkinspan/jdk1.6.0_25/bin:/home/jenkinspan/apache-tomcat-7.0.28/bin:/home/jenkinspan/apache-maven-3.0.4/bin:/home/jenkinspan/apache-ant-1.8.3/bin:/home/jenkinspan/git-1.7.9.6:/usr/local/apache-ant-1.8.2/bin:/home/iorlov/jdk1.6.0_25/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/export/home/jenkinspan/bin:/home/jenkinspan/perl5/bin:/home/jenkinspan/apache-tomcat-7.0.28/bin:/home/jenkinspan/apache-maven-3.0.4/bin:/home/jenkinspan/apache-ant-1.8.3/bin:/home/jenkinspan/git-1.7.9.6:/usr/local/apache-ant-1.8.2/bin:/home/iorlov/jdk1.6.0_25/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iorlov/perl5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/export/home/jenkinspan/bin:/home/jenkinspan/perl5/bin:/home/jenkinspan/apache-maven-3.0.4/bin:/export/home/jenkinspan/bin
> 

Reply via email to