Failed to run git clone command

517 views
Skip to first unread message

Tony Wei

unread,
Oct 31, 2016, 2:59:36 PM10/31/16
to go-cd
A pretty weird issue, it happens very randomly, and I checked all setting and they are all good. Any idea?

2016-10-31 10:26:14,272 [loopThread] INFO thoughtworks.go.work.DefaultGoPublisher:93 - Agent [hdc505lbcdsv009, 10.194.1.244, cb0986b2-e1fe-4a94-9a2a-ccc81221d24b] is reporting status [Preparing] to Go Server for Build [MCCAdmin_Sandbox/73/Test_Deployment/1/defaultJob/5374]
2016-10-31 10:26:22,005 [loopThread] ERROR thoughtworks.go.work.DefaultGoPublisher:135 - Failed to run git clone command
java.lang.RuntimeException: Failed to run git clone command
at com.thoughtworks.go.util.ExceptionUtils.bomb(ExceptionUtils.java:36)
at com.thoughtworks.go.config.materials.git.GitMaterial.updateTo(GitMaterial.java:158)
at com.thoughtworks.go.domain.MaterialRevision.updateTo(MaterialRevision.java:151)
at com.thoughtworks.go.domain.materials.AbstractMaterialAgent.prepare(AbstractMaterialAgent.java:41)
at com.thoughtworks.go.remote.work.BuildWork.prepareJob(BuildWork.java:193)
at com.thoughtworks.go.remote.work.BuildWork.build(BuildWork.java:141)
at com.thoughtworks.go.remote.work.BuildWork.doWork(BuildWork.java:96)
at com.thoughtworks.go.agent.JobRunner.run(JobRunner.java:60)
at com.thoughtworks.go.agent.AgentController.retrieveWork(AgentController.java:229)
at com.thoughtworks.go.agent.AgentController.rpcLoop(AgentController.java:183)
at com.thoughtworks.go.agent.AgentController.loop(AgentController.java:173)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.Exception: Failed to run git clone command
at com.thoughtworks.go.util.ExceptionUtils.bombIfFailedToRunCommandLine(ExceptionUtils.java:50)
at com.thoughtworks.go.config.materials.git.GitMaterial.git(GitMaterial.java:247)
at com.thoughtworks.go.config.materials.git.GitMaterial.updateTo(GitMaterial.java:152)
... 17 more

Aditya Byreddy

unread,
Nov 1, 2016, 2:48:31 PM11/1/16
to go-cd
Tony, Make sure the agent on which code is being checked out have git installed. And also check whether that particular git-domain is accessible from agent(Network related configuration). What is the warning being shown on UI side ??

Tony Wei

unread,
Nov 1, 2016, 3:47:34 PM11/1/16
to go-cd
Aditya,

Thanks for reply. The code repos and Go agents are all good. It is not network issue. The problem is, it happens randomly, about 0.1% chances. So it happens very rare but still annoying.

09:24:43.485 [go] Start updating application_codes at revision 2a561aa98b42fd95edfbde07511ed1275f07f065 from https://github.com/mdsol/checkmate.git
09:24:43.976 STDERR: Cloning into '/var/lib/go-agent/pipelines/Checkmate_Sandbox/application_codes'...
09:24:46.744 Failed to run git clone command
09:24:46.804 [go] Job completed Checkmate_Sandbox/88/Medistrano_Deployment/1/defaultJob on hdc505lbcdsv007 [/var/lib/go-agent]
Reply all
Reply to author
Forward
0 new messages