Hi.
I am trying to set up a new pipeline with Go and Git.
It hangs when I try to connect to Git via the Go Server 'Add pipeline' screen, and if I try to run a job using git I get this error:
2011-01-20 10:02:57,421 ERROR [MessageListener for MaterialUpdateListener] MaterialDatabaseUpdater:66 - Modification check failed for material: git@codaset.com:xxx/xxxxxx.git java.lang.RuntimeException: Failed to run git clone command at com.thoughtworks.cruise.util.ExceptionUtils.bomb(ExceptionUtils.java:24) at com.thoughtworks.cruise.domain.materials.git.GitMaterial.getGit(GitMaterial.java:163) at com.thoughtworks.cruise.domain.materials.git.GitMaterial.latestModification(GitMaterial.java:64) at com.thoughtworks.cruise.server.materials.LegacyMaterialChecker.findLatestModification(LegacyMaterialChecker.java:19) at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.insertLatestOrNewModifications(MaterialDatabaseUpdater.java:106) at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.addNewMaterialWithModifications(MaterialDatabaseUpdater.java:123) at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.initializeMaterialWithLatestRevision(MaterialDatabaseUpdater.java:76) at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.updateMaterial(MaterialDatabaseUpdater.java:57) at com.thoughtworks.cruise.server.materials.MaterialUpdateListener$1.doInTransaction(MaterialUpdateListener.java:33) at com.thoughtworks.cruise.server.transaction.TransactionCallback.doWithExceptionHandling(TransactionCallback.java:8) at com.thoughtworks.cruise.server.transaction.TransactionTemplate$1.doInTransaction(TransactionTemplate.java:20) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.thoughtworks.cruise.server.transaction.TransactionTemplate.executeWithExceptionHandling(TransactionTemplate.java:18) at com.thoughtworks.cruise.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:31) at com.thoughtworks.cruise.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:14) at com.thoughtworks.cruise.server.messaging.activemq.JMSMessageListenerAdapter.runImpl(JMSMessageListenerAdapter.java:46) at com.thoughtworks.cruise.server.messaging.activemq.JMSMessageListenerAdapter.run(JMSMessageListenerAdapter.java:31) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.Exception: Failed to run git clone command at com.thoughtworks.cruise.util.ExceptionUtils.bombIfFailedToRunCommandLine(ExceptionUtils.java:34) at com.thoughtworks.cruise.domain.materials.git.GitMaterial.git(GitMaterial.java:182) at com.thoughtworks.cruise.domain.materials.git.GitMaterial.getGit(GitMaterial.java:161) ... 16 moreI can run git clone from CMD, and have confirmed that git is in my path.
I am running on Windows (32-bit), and get the same behaviour with Chrome and Firefox.
Any help would be much appreciated!
Code Snippet
My pipeline config:
Comments
2 comments
Hi Laura,
Go on windows uses a 'Local System' user account.
Since you have observed that git clone works when invoked on console, and does not work when invoked by Go, inspite of having git executable on path, it may be a key-auth setup issue.
Please try configuring the 'Go Server' service to start as the user that 'git clone' works for, or export 'Local System' user's public key to git@codaset.com's authorized_keys.
If codaset.com exposes other transports(git or http), you may want to use an alternate transport and completely bypass key-auth.
Regards,
Janmejay
Hello Janmejay,
I am also getting same issue, what I am confused is with the git credentials. In ly local I am able to clone with the user credentials whereas in from go it is not allowing me to provide the user name and password for the the git.
I have both git and go in same server both have local user authentication setup. This is small POC I am doing targeting a huge deployment automation in my organization. Your help could get me to the point where I can say Go is the solution that I can recommend.
Thanks
Praveen
Please sign in to leave a comment.