hg stderr from mercurial in activity plugin

Issue #676 resolved
Jicheng Li
created an issue

hi, every one. I faced a problem today and didn't found a solution.

scm manger was installed in server A, A has a static internet IP address, so I put the repositories on server B. server B only can be accessed in local area network. The hg store path configuration was set to //serverb/path/to/actul/folder. Then I found there is no activities and 1 warning and 1 error in the log file.

20:51:52.937 [ActivityCacheWarmUp] WARN  sonia.scm.repository.HgHookManager - created url http://localhost:8000/scm/hook/hg/ without request, in some cases this could cause problems
20:51:52.953 [Thread-0] INFO  sonia.scm.repository.HealthChecker - repository customerx/test is healthy
20:51:52.953 [Thread-0] INFO  sonia.scm.repository.DefaultRepositoryManager - modify repository customerx/test of type hg
20:51:52.968 [Thread-0] INFO  sonia.scm.boot.BootstrapFilter - loading GuiceFilter with ScmBootstrapClassLoader
20:51:54.406 [ActivityCacheWarmUp] ERROR com.aragost.javahg.internals.Server - stderr from Mercurial: '\\dataserver\projects$\hg\customerx\test'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

20:51:54.437 [ActivityCacheWarmUp] ERROR sonia.scm.activity.collector.AbstractChangesetCollector - could not retrieve changesets for repository customerx/test
com.aragost.javahg.commands.ExecutionException: no repository found in 'C:\WINDOWS' (.hg not found)!
    at com.aragost.javahg.internals.AbstractCommand.handleReturnCode(AbstractCommand.java:386) ~[javahg-0.7.jar:na]
    at com.aragost.javahg.internals.OutputChannelInputStream.findNextOutputChannelBlock(OutputChannelInputStream.java:179) ~[javahg-0.7.jar:na]
    at com.aragost.javahg.internals.OutputChannelInputStream.<init>(OutputChannelInputStream.java:78) ~[javahg-0.7.jar:na]
    at com.aragost.javahg.internals.Server.runCommand(Server.java:419) ~[javahg-0.7.jar:na]
    at com.aragost.javahg.internals.AbstractCommand.launchStream(AbstractCommand.java:176) ~[javahg-0.7.jar:na]
    at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.loadRevisions(HgLogChangesetCommand.java:143) ~[scm-hg-plugin-1.44.jar:na]
    at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.singleRevision(HgLogChangesetCommand.java:186) ~[scm-hg-plugin-1.44.jar:na]
    at sonia.scm.repository.spi.HgLogCommand.getChangesets(HgLogCommand.java:139) ~[scm-hg-plugin-1.44.jar:na]
    at sonia.scm.repository.api.LogCommandBuilder.getChangesets(LogCommandBuilder.java:261) ~[scm-core-1.44.jar:na]
    at sonia.scm.activity.collector.CombinedBranchCollector.collectChangesets(CombinedBranchCollector.java:77) ~[scm-activity-plugin-1.12.jar:na]
    at sonia.scm.activity.collector.AbstractChangesetCollector.collectChangesets(AbstractChangesetCollector.java:109) ~[scm-activity-plugin-1.12.jar:na]
    at sonia.scm.activity.ActivityManager.appendActivities(ActivityManager.java:276) [scm-activity-plugin-1.12.jar:na]
    at sonia.scm.activity.ActivityManager.getActivities(ActivityManager.java:219) [scm-activity-plugin-1.12.jar:na]
    at sonia.scm.activity.ActivityManager.getLatestActivity(ActivityManager.java:196) [scm-activity-plugin-1.12.jar:na]
    at sonia.scm.activity.CacheWarmUpListener$CacheWarmUpAction$1.run(CacheWarmUpListener.java:163) [scm-activity-plugin-1.12.jar:na]
    at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.2.3.jar:1.2.3]
    at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.2.3.jar:1.2.3]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_71]

If I uninstall activity plugin, there is no warning or error. Is there any one can tell me the reason? Thanks in advance!

Comments (10)

  1. Jicheng Li reporter

    I found svn also has a issue when path set as remote location. I can check in, but can not check out and select menu to see commits and sources.

  2. Jicheng Li reporter

    Thank you for your reply. I tried map the unc path to R:, seems it doesn't work. Does it related to authorization? 23:15:35.562 [qtp26664116-24] INFO sonia.scm.repository.HgHookManager - use http://192.168.1.133/scm/hook/hg/ for mercurial hooks 23:15:35.828 [Thread-13] WARN sonia.scm.web.cgi.DefaultCGIExecutor - Traceback (most recent call last): File "D:\SoftwareTool\scmm\home\lib\python\hgweb.py", line 41, in <module> application = hgweb(repositoryPath) File "D:\SoftwareTool\Python27\lib\site-packages\mercurial\hgweb_init.py", line 26, in hgweb return hgwebdir_mod.hgwebdir(config, baseui=baseui) File "D:\SoftwareTool\Python27\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line 89, in init__ self.refresh() File "D:\SoftwareTool\Python27\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line 105, in refresh raise util.Abort(('config file %s not found!') % self.conf) mercurial.error.Abort: config file R:\hg\test not found!

    23:15:35.828 [qtp26664116-24] WARN sonia.scm.web.HgCGIExceptionHandler - Mercurial/Python process ends with return code 1

  3. Jicheng Li reporter

    Yes, the repos is there. As your recommend, I want to create a new repo, but failed. Anyway, I think this is not a better way to use scm, I will move the server to server B. Thanks for your reply.

  4. Log in to comment