Third party plugin causes Mercurial repository configuration to get corrupted
Symptoms
Saving Source Repository configuration for a Mercurial repository clears the configuration upon save, and Bamboo logs this type of errors:
2012-03-23 10:43:27,198 INFO [1-BAM::Default
Agent::Agent:pool-5-thread-1] [DefaultErrorHandler] Recording an error:
Error occurred while executing the build for PA-PA-JOB1-1 : PA-PA-JOB1 :
command [C:\Program Files\Mercurial\hg.exe, id, -i, --debug, --rev,
default, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o
BatchMode=yes, ] failed. Working directory was `C:\Documents and
Settings\bamboo-home\xml-data\build-dir\PA-PA-JOB1'. stderr: abort:
there is no Mercurial repository here (.hg not found)
stdout:
2012-03-23
10:43:27,213 WARN [1-BAM::Default Agent::Agent:pool-5-thread-1]
[BuildAgentControllerImpl] Error occurred while executing the build for
PA-PA-JOB1-1
com.atlassian.bamboo.plugins.hg.HgCommandException:
command [C:\Program Files\Mercurial\hg.exe, id, -i, --debug, --rev,
default, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o
BatchMode=yes, ] failed. Working directory was `C:\Documents and
Settings\bamboo-home\xml-data\build-dir\PA-PA-JOB1'. stderr: abort:
there is no Mercurial repository here (.hg not found)
stdout:
at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:358)
at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.extractTipHash(HgCommandProcessor.java:419)
at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.getRemoteTipForBranch(HgCommandProcessor.java:255)
at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.getLatestRemoteRevisionHash(HgRepositoryAccessImpl.java:203)
at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.retrieveSourceCode(HgRepositoryAccessImpl.java:113)
at com.atlassian.bamboo.plugins.hg.HgRepository.retrieveSourceCode(HgRepository.java:234)
at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.doCall(CheckoutUpdateForBuild.java:136)
.....
Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: -1
at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:66)
at com.atlassian.utils.process.ExternalProcess.finish(ExternalProcess.java:224)
at com.atlassian.utils.process.ExternalProcess.execute(ExternalProcess.java:267)
at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:353)
... 23 more
Cause
The issue is caused due to incompatible third party plugins. If you go to Administration -> System Configuration menu of your Bamboo server, you should see a plugin for which the vendor is not Atlassian (in this case - rPath, Inc.).
...
Vendor: Atlassian Software Systems Pty Ltd
System Event Listeners - 1.0
Vendor: Atlassian Software Systems
System Notifications - 1.0
Vendor: Atlassian Software Systems Pty Ltd
System Repositories - 1.0
Vendor: Atlassian Software Systems Pty Ltd
System Web Panels and Renderers - 1.0
Vendor: Atlassian Software Systems Pty Ltd
System Web Resources - 1.0
Vendor: Atlassian Software Systems Pty Ltd
Trigger Reasons - 1.0
Vendor: Atlassian Software Systems Pty Ltd
VCS Version Collector - 1.0
Vendor: Atlassian Software Systems Pty Ltd
hg - 2.6.2-SNAPSHOT
Vendor: rPath, Inc.
Resolution
Atlassian doesn't support third party plugins, and doesn't guarantee that it will work properly with Bamboo.
Disable third party plugins by deleting them from WEB-INF/lib directory or removing them from Bamboo's classpath and restart Bamboo.
If you really need/want to use any third party products with Bamboo, please contact the author of that product. In addition, feel free to use Atlassian Answers or contact our partners for help.