Hello Domi

yes. the same command works when i go to the directory run in the slave
node or when i disable sonar plugin and add the step mvn sonar:sonar in the
Build Job.

No, the workspace was NOT used by another user nor did i change the user.
Thanks for your time. Still scratching my Head.

Thanks,
Krishna Chaitanya


On Sun, Jul 15, 2012 at 12:35 AM, domi <d...@fortysix.ch> wrote:

> 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 failedjava.io.IOException 
> <http://stacktrace.jenkins-ci.org/search?query=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) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.start&entity=method>
>       at hudson.Proc$LocalProc.<init>(**Proc.java:244) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3E&entity=method>
>       at hudson.Proc$LocalProc.<init>(**Proc.java:216) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3E&entity=method>
>       at hudson.Launcher$LocalLauncher.**launch(Launcher.java:709) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$LocalLauncher.launch&entity=method>
>       at hudson.Launcher$ProcStarter.**start(Launcher.java:338) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$ProcStarter.start&entity=method>
>       at hudson.Launcher$**RemoteLaunchCallable.call(**Launcher.java:934) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$RemoteLaunchCallable.call&entity=method>
>       at hudson.Launcher$**RemoteLaunchCallable.call(**Launcher.java:901) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$RemoteLaunchCallable.call&entity=method>
>       at hudson.remoting.UserRequest.**perform(UserRequest.java:118) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>
>       at hudson.remoting.UserRequest.**perform(UserRequest.java:48) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>
>       at hudson.remoting.Request$2.run(**Request.java:287) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method>
>       at 
> hudson.remoting.**InterceptingExecutorService$1.**call(**InterceptingExecutorService.**java:72)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method>
>       at 
> java.util.concurrent.**FutureTask$Sync.innerRun(**FutureTask.java:334) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRun&entity=method>
>       at java.util.concurrent.**FutureTask.run(FutureTask.**java:166) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method>
>       at 
> java.util.concurrent.**ThreadPoolExecutor.runWorker(**ThreadPoolExecutor.java:1110)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method>
>       at 
> java.util.concurrent.**ThreadPoolExecutor$Worker.run(**ThreadPoolExecutor.java:603)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method>
>       at java.lang.Thread.run(Thread.**java:636) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method>
> Caused by: java.io.IOException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: 
> java.io.IOException: error=13, Permission denied
>       at java.lang.UNIXProcess.<init>(**UNIXProcess.java:164) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.UNIXProcess.%3Cinit%3E&entity=method>
>       at java.lang.ProcessImpl.start(**ProcessImpl.java:81) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessImpl.start&entity=method>
>       at java.lang.ProcessBuilder.**start(ProcessBuilder.java:468) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.start&entity=method>
>       ... 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