Mercurial repository requires features unknown to this Mercurial: largefiles!

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

この記事はアトラシアンのサーバー製品にのみ適用されます。クラウドとサーバー製品の違いについてはこちらをご確認ください。

問題

Adding a Mercurial repository with Large Files extension enabled makes the Fisheye index fail:

The following appears in the atlassian-fisheye-yyyy-MM-dd.log:

2017-08-03 14:07:36,671 DEBUG [InitPing1 Large_FIles_Test ] fisheye RepositoryStatus-setEngineError - Engine Error Set [Large_FIles_Test]: Unable to pull from remote repository: file:///data/crucible/fecru_data/mercurial_large_1
     - [abort: repository requires features unknown to this Mercurial: largefiles!, (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)]
2017-08-03 14:07:36,671 WARN  [InitPing1 Large_FIles_Test ] fisheye IndexingPingRequest-doRequest - Exception during FishEye One-off Indexing of Large_FIles_Test: com.cenqua.fisheye.config.ConfigException: Unable to pull from remote repository: file:///data/crucible/fecru_data/mercurial_large_1
     - [abort: repository requires features unknown to this Mercurial: largefiles!, (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)]
2017-08-03 14:07:36,671 DEBUG [InitPing1 Large_FIles_Test ] fisheye IndexingPingRequest-doRequest - Exception during FishEye One-off Indexing of Large_FIles_Test: com.cenqua.fisheye.config.ConfigException: Unable to pull from remote repository: file:///data/crucible/fecru_data/mercurial_large_1
     - [abort: repository requires features unknown to this Mercurial: largefiles!, (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)]
com.cenqua.fisheye.config.ConfigException: Unable to pull from remote repository: file:///data/crucible/fecru_data/mercurial_large_1
     - [abort: repository requires features unknown to this Mercurial: largefiles!, (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)]
    at com.atlassian.fisheye.hg.HgScanner.fetchLatest(HgScanner.java:164) [fisheye.jar:?]
    at com.atlassian.fisheye.hg.HgScanner.performClone(HgScanner.java:123) [fisheye.jar:?]
    at com.atlassian.fisheye.dvcs.DvcsScanner.cloneRepo(DvcsScanner.java:165) [fisheye.jar:?]
    at com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoClone(DvcsScanner.java:137) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:69) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:415) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:27) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:18) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55) [fisheye.jar:?]
    at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:216) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:58) [fisheye.jar:?]
    at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:172) [fisheye.jar:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45-internal]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45-internal]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45-internal]
Caused by: com.atlassian.utils.process.ProcessException: While executing: "/usr/bin/hg --config ui.verbose=false pull file:///data/crucible/fecru_data/mercurial_large_1" in [/atlassian/data/fisheye/var/cache/Large_FIles_Test/clone]
    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:263) [fisheye.jar:?]
    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:235) [fisheye.jar:?]
    at com.atlassian.fisheye.hg.HgScanner.fetchLatest(HgScanner.java:158) [fisheye.jar:?]
    ... 17 more
Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 255
    at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) [atlassian-processutils-1.5.14.jar:?]
    at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:509) [atlassian-processutils-1.5.14.jar:?]
    at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:423) [atlassian-processutils-1.5.14.jar:?]
    at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:378) [atlassian-processutils-1.5.14.jar:?]
    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:250) [fisheye.jar:?]
    ... 19 more
2017-08-03 14:07:36,672 DEBUG [InitPing1 Large_FIles_Test ] fisheye RepositoryHandle-release - release engine on Large_FIles_Test, count=0 waited 0 ms to release
2017-08-03 14:07:36,672 DEBUG [InitPing1 Large_FIles_Test ] fisheye RepositoryHandle-acquire - acquire engine on Large_FIles_Test, count=1, waited 0 ms to acquire.
2017-08-03 14:07:36,672 DEBUG [InitPing1 Large_FIles_Test ] fisheye RepositoryHandle-release - release engine on Large_FIles_Test, count=0 waited 0 ms to release

 

原因

The repository has Large Files extension enabled and the same is not enabled in Fisheye server.

回避策

Enable the extension in the Fisheye server by adding the following line in /home/<fisheye_user>/.hgrc (in Linux) or in %USERPROFILE%\.hgrc (in Windows):

[extensions]
largefiles =

 

In Fisheye, go to the repository options and on the Maintenance tab hit :

 

 

Wait for the repository to be indexed.

 

The indexed repository will not show content for the large files in the diff or source panels but only the hash for the large file:

 

 

最終更新日 2018 年 7 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.