Mercurial Failed to set label

I have had a few issues with TeamCity and Mercurial tagging, but those were related to running out of TeamCity Temp space on our TeamCity Server.  I am now experiencing a similar problem, except that I get no useful information from the debug log (set to debug-all).  Could this be related to the size of my repository (About 1.6GB)?

[2015-01-09 19:43:09,761]  DEBUG [cal executor 10] -      jetbrains.buildServer.VCS - [E:\TeamCityData\system\caches\mercurial\hg_-4048197814400385121] hg version --quiet
[2015-01-09 19:43:10,198]   WARN [rmal executor 4] -      jetbrains.buildServer.VCS - Failed to set label '10.0.158'
jetbrains.buildServer.vcs.VcsException: 'hg --config ui.interactive=False push --config* --config --config****** --config " https" http://dss-scm.stp.ime.*******.com/pubs' command failed.
    at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.throwVcsException(
    at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.logAndThrowError(
    at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.checkFailure(
    at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandUtil.runCommand(
    at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.VcsRootCommand.runCommand(
    at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.label(
    at jetbrains.buildServer.vcs.impl.VcsLabeler.doSetLabel(
    at jetbrains.buildServer.vcs.impl.VcsLabeler.access$500(
    at jetbrains.buildServer.vcs.impl.VcsLabeler$2$
    at java.util.concurrent.Executors$ Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$ Source)
    at Source)

Comment actions Permalink

Typo - The current size of the repository is 6.5 GB.

Comment actions Permalink

Hi Jerry,

Could you please attach full teamcity-vcs.log in debug mode? Also please point out which TeamCity version you use.

Comment actions Permalink
We're using TeamCity Professional 8.0.5 (build 27692).

Comment actions Permalink

It seems that the push command fails because of lack of permissions. Are you able to run the same command on agent via console under the same user that the agent is running? We need the full teamcity-vcs.log in debug mode to investigate this issue.

BTW, we would recommend to upgrade to the latest TeamCity version (9.0.1 as of now).


Please sign in to leave a comment.