ERROR: Problem fetching from origin ... : fatal: Authentication failed

106 views
Skip to first unread message

jserup

unread,
Sep 17, 2012, 4:47:58 PM9/17/12
to jenkins...@googlegroups.com
I am running Jenkins ver. 1.466.1 on an Ubuntu machine with "Jenkins GIT
plugin 1.1.23".

Some of the jobs fetches changes from a git repository on another ubuntu
machine (running git version 1.7.10) using the following format under
"Source code management" in the job configuration:

https://jenkins:pass@host/.../test.git

These jobs run hourly even though there has been no src change. But now and
then (approx once every 10th build) jenkins gives this error and the build
fails:



Fetching changes from 1 remote Git repository
Fetching upstream changes from https://jenkins:pass@host/....git
ERROR: Problem fetching from origin / origin - could be unavailable.
Continuing anyway
hudson.plugins.git.GitException: Command "git fetch -t
https://jenkins:pass@host/....git +refs/heads/*:refs/remotes/origin/*"
returned status code 128:
stdout:
stderr: fatal: Authentication failed

at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:863)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:824)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:198)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:1071)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810)
at hudson.plugins.git.GitSCM.access$100(GitSCM.java:76)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1076)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193)
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(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:722)
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1083)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193)
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(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:722)


I am considering to follow the advice given below but would like to hear if
anyone has experienced the same strange behaviour?

https://issues.jenkins-ci.org/browse/JENKINS-11576

(Gotchas)
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin



--
View this message in context: http://jenkins.361315.n4.nabble.com/ERROR-Problem-fetching-from-origin-fatal-Authentication-failed-tp4640475.html
Sent from the Jenkins users mailing list archive at Nabble.com.
Reply all
Reply to author
Forward
0 new messages