Not sure if this is applicable to your situation, but when I had that issue
I found that the user jenkins was running as was a system user, so the
credentials did not match. Iirc, I ended up using the environment injector
plugin to set the user to run the job as.

hth
chanda


On Thu, Feb 21, 2013 at 4:01 PM, Gong <[email protected]> wrote:

> here is the error message. Very confusion to me.
>
> a. The Jenkins slave is run from Java Web Starter, not a Windows Service.
>
> b. If I login the slave, the git command always work.
>
> c. If I start the slave from server, always fail. Here is the error message.
>
>
> Any tips on how to debug/trouble shooting this is very appreciated! This is 
> driving people crazy...
>
>
>
>
>
> Started by user Albert Cheng 
> <http://javasdkci.cloudapp.net:8080/user/gongchen>
> Building remotely on java-ci-2k12 
> <http://javasdkci.cloudapp.net:8080/computer/java-ci-2k12> in workspace 
> c:\jenkins\workspace\azure-sdk-for-java dev win2k12
> Checkout:azure-sdk-for-java dev win2k12 / 
> c:\jenkins\workspace\azure-sdk-for-java dev win2k12 - 
> hudson.remoting.Channel@44c7b1:java-ci-2k12
> Using strategy: Default
> Fetching changes from 1 remote Git repository
> Fetching upstream changes from origin
> ERROR: Problem fetching from origin / origin - could be unavailable. 
> Continuing anywayhudson.plugins.git.GitException 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  Command "C:\Program Files (x86)\Git\bin\git.exe fetch -t origin 
> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
> stdout:
> stderr: Permission denied (publickey).
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:772)
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:738)
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:160)
>       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
>       at hudson.plugins.git.GitSCM.access$000(GitSCM.java:57)
>       at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:976)
>       at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:941)
>       at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2246)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>       at hudson.remoting.Request$2.run(Request.java:326)
>       at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>       at java.util.concurrent.FutureTask.run(Unknown Source)
>
>  --
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
*Confidentiality Notice*: This e-mail, including all attachments, is
confidential information of Lytro, Inc. If the reader of this e-mail is not
the intended recipient or its authorized agent, the reader is hereby
notified that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to