Material 'HG" clone error

182 views
Skip to first unread message

Shafi ulla

unread,
Jun 4, 2014, 11:08:31 AM6/4/14
to go...@googlegroups.com
2014-06-04 09:41:08,718  WARN [88@MessageListener for MaterialUpdateListener] MaterialDatabaseUpdater:117 - [Material Update] Modification check failed for material: URL: 
java.lang.RuntimeException: Failed to run hg clone command ERROR: hg clone: option -b not recognized
        at com.thoughtworks.go.util.ExceptionUtils.bomb(ExceptionUtils.java:40)
        at com.thoughtworks.go.config.materials.mercurial.HgMaterial.getHg(HgMaterial.java:123)
        at com.thoughtworks.go.config.materials.mercurial.HgMaterial.latestModification(HgMaterial.java:93)
        at com.thoughtworks.go.server.service.materials.HgPoller.latestModification(HgPoller.java:31)
        at com.thoughtworks.go.server.service.materials.HgPoller.latestModification(HgPoller.java:27)
        at com.thoughtworks.go.server.service.MaterialService.latestModification(MaterialService.java:107)
        at com.thoughtworks.go.server.materials.LegacyMaterialChecker.findLatestModification(LegacyMaterialChecker.java:49)
        at com.thoughtworks.go.server.materials.ScmMaterialUpdater.insertLatestOrNewModifications(ScmMaterialUpdater.java:52)
        at com.thoughtworks.go.server.materials.ScmMaterialUpdater.addNewMaterialWithModifications(ScmMaterialUpdater.java:72)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.addNewMaterialWithModifications(MaterialDatabaseUpdater.java:171)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.initializeMaterialWithLatestRevision(MaterialDatabaseUpdater.java:130)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.access$000(MaterialDatabaseUpdater.java:46)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater$1.doInTransaction(MaterialDatabaseUpdater.java:92)
        at com.thoughtworks.go.server.transaction.TransactionCallback.doWithExceptionHandling(TransactionCallback.java:24)
        at com.thoughtworks.go.server.transaction.TransactionTemplate$3.doInTransaction(TransactionTemplate.java:53)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at com.thoughtworks.go.server.transaction.TransactionTemplate.executeWithExceptionHandling(TransactionTemplate.java:49)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.updateMaterial(MaterialDatabaseUpdater.java:89)
        at com.thoughtworks.go.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:48)
        at com.thoughtworks.go.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:29)
        at com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.runImpl(JMSMessageListenerAdapter.java:65)
        at com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.run(JMSMessageListenerAdapter.java:50)
        at java.lang.Thread.run(Thread.java:701)
Caused by: java.lang.Exception: Failed to run hg clone command
        at com.thoughtworks.go.util.ExceptionUtils.bombIfFailedToRunCommandLine(ExceptionUtils.java:50)
        at com.thoughtworks.go.config.materials.mercurial.HgMaterial.hg(HgMaterial.java:215)
        at com.thoughtworks.go.config.materials.mercurial.HgMaterial.getHg(HgMaterial.java:121)
        ... 21 more


Any idea how debug this error ?

Regards,
Shafi

srinivas upadhya

unread,
Jun 4, 2014, 12:31:21 PM6/4/14
to Shafi ulla, go...@googlegroups.com
What version of Mercurial are you using? Seems like upgrading should fix the issue.

Shafi ulla

unread,
Jun 4, 2014, 12:36:25 PM6/4/14
to srinivas upadhya, go...@googlegroups.com
Current version in server is Mercurial Distributed SCM (version 1.3.1)

Will try updating the same & let you know.


Shafi ulla

unread,
Jun 4, 2014, 1:13:43 PM6/4/14
to go...@googlegroups.com, srinivas...@gmail.com
New error regarding authorization this time after update.

Is there a way to bypass the certification check when clone a secured repository ?

2014-06-04 12:09:03,012  WARN [86@MessageListener for MaterialUpdateListener] MaterialDatabaseUpdater:117 - [Material Update] Modification check failed for material: URL: http://<username>:******@<repo-url>
java.lang.RuntimeException: Failed to run hg pull command:
ERROR: warning: source-americas.it.here.com certificate with fingerprint 55:a2:2d:33:aa:63:c9:45:22:0a:65:d8:d0:80:42:62:59:ef:de:dc not verified (check hostfingerprints or web.cacerts config setting)
ERROR: abort: http authorization required for https://<URL>
        at com.thoughtworks.go.util.ExceptionUtils.bomb(ExceptionUtils.java:28)
        at com.thoughtworks.go.util.ExceptionUtils.bombIf(ExceptionUtils.java:67)
        at com.thoughtworks.go.util.ExceptionUtils.bombUnless(ExceptionUtils.java:72)
        at com.thoughtworks.go.domain.materials.mercurial.HgCommand.findRecentModifications(HgCommand.java:118)
        at com.thoughtworks.go.domain.materials.mercurial.HgCommand.latestOneModificationAsModifications(HgCommand.java:100)
        at com.thoughtworks.go.config.materials.mercurial.HgMaterial.latestModification(HgMaterial.java:94)

        at com.thoughtworks.go.server.service.materials.HgPoller.latestModification(HgPoller.java:31)
        at com.thoughtworks.go.server.service.materials.HgPoller.latestModification(HgPoller.java:27)
        at com.thoughtworks.go.server.service.MaterialService.latestModification(MaterialService.java:107)
        at com.thoughtworks.go.server.materials.LegacyMaterialChecker.findLatestModification(LegacyMaterialChecker.java:49)
        at com.thoughtworks.go.server.materials.ScmMaterialUpdater.insertLatestOrNewModifications(ScmMaterialUpdater.java:52)
        at com.thoughtworks.go.server.materials.ScmMaterialUpdater.addNewMaterialWithModifications(ScmMaterialUpdater.java:72)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.addNewMaterialWithModifications(MaterialDatabaseUpdater.java:171)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.initializeMaterialWithLatestRevision(MaterialDatabaseUpdater.java:130)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.access$000(MaterialDatabaseUpdater.java:46)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater$1.doInTransaction(MaterialDatabaseUpdater.java:92)
        at com.thoughtworks.go.server.transaction.TransactionCallback.doWithExceptionHandling(TransactionCallback.java:24)
        at com.thoughtworks.go.server.transaction.TransactionTemplate$3.doInTransaction(TransactionTemplate.java:53)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at com.thoughtworks.go.server.transaction.TransactionTemplate.executeWithExceptionHandling(TransactionTemplate.java:49)
        at com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.updateMaterial(MaterialDatabaseUpdater.java:89)
        at com.thoughtworks.go.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:48)
        at com.thoughtworks.go.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:29)
        at com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.runImpl(JMSMessageListenerAdapter.java:65)
        at com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.run(JMSMessageListenerAdapter.java:50)
        at java.lang.Thread.run(Thread.java:701)
2014-06-04 12:09:03,017 ERROR [58@MessageListener for MaterialUpdateStatusNotifier] BuildCauseProducerService:313 - not scheduling pipeline gaurd after manual-trigger because update of material failed with reason Failed to run hg pull command:
ERROR: warning: <url> certificate with fingerprint 55:a2:2d:33:aa:63:c9:45:22:0a:65:d8:d0:80:42:62:59:ef:de:dc not verified (check hostfingerprints or web.cacerts config setting)
ERROR: abort: http authorization required for <url>

Regards,
Shafi

srinivas upadhya

unread,
Jun 4, 2014, 1:16:16 PM6/4/14
to Shafi ulla, go...@googlegroups.com
Seems like you are hitting #170. Which version of Hg is installed currently?

Shafi ulla

unread,
Jun 4, 2014, 1:50:40 PM6/4/14
to srinivas upadhya, go...@googlegroups.com
Hello Srinivas,

As per this bug i have set up mercurial 1.9 version.

am not able to disable certification check or successfully authorize the repo

URL: http://<user>:<pwd>@<url>

Please guide.

Regards,
Shafi

srinivas upadhya

unread,
Jun 4, 2014, 2:04:53 PM6/4/14
to Shafi ulla, go...@googlegroups.com
Are you able to clone the repo from commandline? i.e. does this work?
hg clone http://<user>:<pwd>@<url> -b default

Shafi ulla

unread,
Jun 4, 2014, 2:33:32 PM6/4/14
to srinivas upadhya, go...@googlegroups.com
It works was able to clone repo with bunch of warning as

warning: <domain> certificate with fingerprint 55:a2:2d:33:aa:63:c9:45:22:0a:65:d8:d0:80:42:62:59:ef:de:dc not verified (check hostfingerprints or web.cacerts config setting)
warning: <domain> certificate with fingerprint 55:a2:2d:33:aa:63:c9:45:22:0a:65:d8:d0:80:42:62:59:ef:de:dc not verified (check hostfingerprints or web.cacerts config setting)
warning: <domain> certificate with fingerprint 55:a2:2d:33:aa:63:c9:45:22:0a:65:d8:d0:80:42:62:59:ef:de:dc not verified (check hostfingerprints or web.cacerts config setting)
 
Shafi

Ketan Padegaonkar

unread,
Jun 5, 2014, 7:09:00 AM6/5/14
to Shafi ulla, srinivas upadhya, go...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages