hg extension "loadsubstatescommandpy" loading error while a mercurial repository project initializes

 

I'm absolutely new to Upsource and am trying to create new project.

But initializing a mercurial repository project fails.

My environment is:

  • OS:  ubuntu 18.04
  • project repository VCS:   mercurial (ver. 4.6)
  • Upsource build version:  2018.1.357

 

I checked upsource-front's all.log and there was an error as bellow:

--------------------------------------------------------------------------------------------------

[2018-06-22 10:23:07,457] WARN VcsService-6 hgrepo-test jetbrains.buildServer.VCS - Error output produced by: hg --debug --config extensions.loadsubstatescommandpy=/usr/local/share/cul8er/upsource-2018.1.357/temp/upsource-frontend/hg1/load-substates-command.py load-substates /usr/local/share/cul8er/upsource-2018.1.357/temp/upsource-frontend/hg1/result 
[2018-06-22 10:23:07,457] WARN VcsService-6 hgrepo-test jetbrains.buildServer.VCS - ** 非同梱のエクステンション loadsubstatescommandpy に起因する例外が発生しました。
** 当該エクステンションのサポート対象 Mercurial の版: 4.2
** エクステンション loadsubstatescommandpy を無効化してから、再度同じ処理を実行してください。
** 問題が改善された場合、 障害の発生を upsource-support@jetbrains.com に報告してください。
** Python 2.7.15 (default, Jun 10 2018, 01:38:15) [GCC 7.3.0]
Mercurial - 分散構成管理ツール (バージョン 4.6.1)
** Extensions loaded: loadsubstatescommandpy
Traceback (most recent call last):
File "/home/cul8er/usr/bin/hg", line 41, in <module>
dispatch.run()
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 90, in run
status = (dispatch(req) or 0)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 210, in dispatch
ret = _runcatch(req)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 351, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 359, in _callcatch
return scmutil.callcatch(ui, func)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/scmutil.py", line 160, in callcatch
return func()
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 341, in _runcatchfunc
return _dispatch(req)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 932, in _dispatch
intents=func.intents)
AttributeError: 'function' object has no attribute 'intents'

----------------------------------------------------------------------------------------------------------

 

However, I neither installed any hg extensions by myself, nor knew an extention named "loadsubstatescommandpy".

It is not a hg's built-in extension too.

I updated both hgrc, one is my home directory's and another is the project repository's

------------------------

[extensions]

loadsubstatescommandpy = !

------------------------

But there seems no effect.

How can I avoid this problem?

 

Thanks.

 

The following is all.log  as it was while the project initializing.

----------------------------------------------------------------------------------------------------------

[2018-06-22 10:22:57,016] INFO r-2 @coroutine#17368 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] resetProject:{"projectId":"hgrepo-test"}, Users:{admin}
[2018-06-22 10:22:57,024] INFO r-2 @coroutine#17368 erver.comments.ReviewIdsHolder - Next review ID reset for hgrepo-test
[2018-06-22 10:22:57,024] INFO r-2 @coroutine#17368 hgrepo-test i.global.MonitorActiveProjects - Project 'hgrepo-test' changed: null
[2018-06-22 10:22:57,053] WARN r-2 @coroutine#17368 ering.StaticCqlBufferedStorage - Unable to wipe the 'smallcontent' table because it's not possible to apply restrictions to all its partition keys.
[2018-06-22 10:22:57,063] WARN r-2 @coroutine#17368 ering.StaticCqlBufferedStorage - Unable to wipe the 'largecontent' table because it's not possible to apply restrictions to all its partition keys.
[2018-06-22 10:22:57,065] INFO r-1 @coroutine#17381 si.broker.DatabaseTaskRunnable - Executing db command: getProjectConfiguration:{"projectId":"hgrepo-test"}
[2018-06-22 10:22:57,075] INFO r-2 @coroutine#17384 si.broker.DatabaseTaskRunnable - Executing db command: getProjectState:{"projectId":"hgrepo-test"}
[2018-06-22 10:22:57,112] WARN r-2 @coroutine#17368 ring.DynamicCqlBufferedStorage - Unable to wipe the 'filetree' table because wiping of multi-partition tables is not yet implemented.
[2018-06-22 10:22:57,115] WARN r-2 @coroutine#17368 ring.DynamicCqlBufferedStorage - Unable to wipe the 'filechangehistory' table because wiping of multi-partition tables is not yet implemented.
[2018-06-22 10:22:57,133] WARN r-2 @coroutine#17368 ring.DynamicCqlBufferedStorage - Unable to wipe the 'revisionchangehistory' table because wiping of multi-partition tables is not yet implemented.
[2018-06-22 10:22:57,133] WARN r-2 @coroutine#17368 ring.DynamicCqlBufferedStorage - Unable to wipe the 'uniqueidhistory' table because wiping of multi-partition tables is not yet implemented.
[2018-06-22 10:22:57,133] WARN r-2 @coroutine#17368 ring.DynamicCqlBufferedStorage - Unable to wipe the 'uniqueidbyshortname' table because wiping of multi-partition tables is not yet implemented.
[2018-06-22 10:22:57,138] WARN r-2 @coroutine#17368 ering.StaticCqlBufferedStorage - Unable to wipe the 'revisioninfo' table because it's not possible to apply restrictions to all its partition keys.
[2018-06-22 10:22:57,167] WARN r-2 @coroutine#17368 ring.DynamicCqlBufferedStorage - Unable to wipe the 'deltafiletree' table because wiping of multi-partition tables is not yet implemented.
[2018-06-22 10:22:57,183] WARN r-2 @coroutine#17368 ering.StaticCqlBufferedStorage - Unable to wipe the 'filepathcontinuation' table because it's not possible to apply restrictions to all its partition keys.
[2018-06-22 10:22:57,183] WARN r-2 @coroutine#17368 ering.StaticCqlBufferedStorage - Unable to wipe the 'filepathrevisions' table because it's not possible to apply restrictions to all its partition keys.
[2018-06-22 10:22:57,219] WARN r-2 @coroutine#17368 ering.StaticCqlBufferedStorage - Unable to wipe the 'externalinspections' table because it's not possible to apply restrictions to all its partition keys.
[2018-06-22 10:22:57,252] INFO r-2 @coroutine#17368 hgrepo-test i.global.MonitorActiveProjects - Project 'hgrepo-test' changed: ProjectStateRecord{Uuid=6, Status=None}
[2018-06-22 10:22:57,264] INFO r-4 @coroutine#17416 pc.impl.server.RpcTaskRunnable - Executing RPC command: restoreSingleProjectAfterReset:{"projectId":"hgrepo-test"}
[2018-06-22 10:22:57,266] INFO r-3 @coroutine#17419 pc.impl.server.RpcTaskRunnable - Executing RPC command: resetProjectReviewIds:{"projectId":"hgrepo-test"}
[2018-06-22 10:22:57,266] INFO r-3 @coroutine#17419 erver.comments.ReviewIdsHolder - Next review ID reset for hgrepo-test
[2018-06-22 10:22:57,268] INFO r-2 @coroutine#17368 ojectModificationsNotifierImpl - Resetting project hgrepo-test: Successfully finished. Do not restart Upsource while the project is initializing.
[2018-06-22 10:22:57,276] INFO r-3 @coroutine#17421 si.broker.DatabaseTaskRunnable - Executing db command: getProjectConfiguration:{"projectId":"hgrepo-test"}
[2018-06-22 10:22:57,276] INFO r-4 @coroutine#17423 si.broker.DatabaseTaskRunnable - Executing db command: getProjectState:{"projectId":"hgrepo-test"}
[2018-06-22 10:22:57,342] INFO r-3 @coroutine#17425 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getProjectsAnalyzerState:{}, Users:{admin}
[2018-06-22 10:22:57,435] INFO -10 @coroutine#17429 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getSystemMessages:{}, Users:{admin}
[2018-06-22 10:23:00,011] WARN jects-indexer-sync-1 toring.MultiProjectMonitorImpl - Project 6 was quickly re-created. Terminating analyzers for project hgrepo-test (uuid=5)...
[2018-06-22 10:23:00,014] WARN jects-indexer-sync-1 ckend.cli.multi.ProjectContext - Dispose of ProjectContext{hgrepo-test, uuid: 5} is started
[2018-06-22 10:23:00,014] INFO jects-indexer-sync-1 i.global.MonitorActiveProjects - Detected ProjectContext{hgrepo-test, uuid: 6}
[2018-06-22 10:23:00,077] INFO lyzer:INIT_CLUSTER-2 hgrepo-test i.global.MonitorActiveProjects - Project 'hgrepo-test' changed: ProjectStateRecord{Uuid=6, Status=Started}
[2018-06-22 10:23:00,077] INFO lyzer:INIT_CLUSTER-2 hgrepo-test driver.InitGlobalDriverWrapper - Finished: 'init-start' for project 'hgrepo-test' in 14ms
[2018-06-22 10:23:01,122] INFO lyzer:INIT_CLUSTER-2 hgrepo-test mportProjectFromVcsCommitsImpl - No heads in project hgrepo-test found: importing graph metadata
[2018-06-22 10:23:02,277] INFO r-9 @coroutine#17477 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getProjectsAnalyzerState:{}, Users:{admin}
[2018-06-22 10:23:02,294] INFO r-2 @coroutine#17481 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 2] getSystemMessages:{}, Users:{admin}
[2018-06-22 10:23:04,539] INFO VcsService-6 hgrepo-test ce.LoggingFetchServiceCallback - Fetching hgrepo-test/: started
[2018-06-22 10:23:04,539] INFO VcsService-6 hgrepo-test ce.LoggingFetchServiceCallback - Fetching hgrepo-test/: Fetching repository...
[2018-06-22 10:23:05,546] INFO VcsService-6 hgrepo-test ce.LoggingFetchServiceCallback - Fetching hgrepo-test/: Loading commits graph...
[2018-06-22 10:23:05,547] INFO VcsService-6 hgrepo-test ntal.CachingCommitGraphFactory - Force reload is required for hgrepo-test:
[2018-06-22 10:23:07,457] WARN VcsService-6 hgrepo-test jetbrains.buildServer.VCS - Error output produced by: hg --debug --config extensions.loadsubstatescommandpy=/usr/local/share/cul8er/upsource-2018.1.357/temp/upsource-frontend/hg1/load-substates-command.py load-substates /usr/local/share/cul8er/upsource-2018.1.357/temp/upsource-frontend/hg1/result
[2018-06-22 10:23:07,457] WARN VcsService-6 hgrepo-test jetbrains.buildServer.VCS - ** 非同梱のエクステンション loadsubstatescommandpy に起因する例外が発生しました。
** 当該エクステンションのサポート対象 Mercurial の版: 4.2
** エクステンション loadsubstatescommandpy を無効化してから、再度同じ処理を実行してください。
** 問題が改善された場合、 障害の発生を upsource-support@jetbrains.com に報告してください。
** Python 2.7.15 (default, Jun 10 2018, 01:38:15) [GCC 7.3.0]
Mercurial - 分散構成管理ツール (バージョン 4.6.1)
** Extensions loaded: loadsubstatescommandpy
Traceback (most recent call last):
File "/home/cul8er/usr/bin/hg", line 41, in <module>
dispatch.run()
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 90, in run
status = (dispatch(req) or 0)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 210, in dispatch
ret = _runcatch(req)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 351, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 359, in _callcatch
return scmutil.callcatch(ui, func)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/scmutil.py", line 160, in callcatch
return func()
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 341, in _runcatchfunc
return _dispatch(req)
File "/home/cul8er/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 932, in _dispatch
intents=func.intents)
AttributeError: 'function' object has no attribute 'intents'

[2018-06-22 10:23:07,458] INFO VcsService-6 hgrepo-test ce.LoggingFetchServiceCallback - Fetching hgrepo-test/: finished
[2018-06-22 10:23:07,458] WARN VcsService-6 hgrepo-test h.global.CompositeGraphBuilder - Failed to construct mounted graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
jetbrains.vcs.server.api.VcsServiceException: Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.worker.VcsGraphSource.fetchCommits(VcsGraphSource.java:34)
at jetbrains.vcs.server.core.impl.graph.mapping.MappingCommitsGraphFactory.buildGraph(MappingCommitsGraphFactory.java:70)
at jetbrains.vcs.server.core.impl.graph.incremental.CachingCommitGraphFactory.buildGraph(CachingCommitGraphFactory.java:55)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory$1.buildGraph(CompositeGraphFactory.java:85)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.lambda$loadGraphs$0(CompositeGraphBuilder.java:96)
at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$2.call(TrueParallelExecutionImpl.java:84)
at __. project_hgrepo-test .__.call(JavaGeneratorTemplate.java:39)
at com.jetbrains.upsource.common.NamedFrameUtil.withProject(NamedFrameUtil.java:27)
at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceConnections$2.lambda$wrapMappingTask$0(VcsServiceConnections.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$1$1.run(TrueParallelExecutionImpl.java:51)
at java.lang.Thread.run(Thread.java:748)
Caused by: jetbrains.buildServer.vcs.VcsException: Command failed:
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommitsAndMountPointsCommand.callImpl(CommitsAndMountPointsCommand.java:103)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommitsAndMountPointsCommand.call(CommitsAndMountPointsCommand.java:68)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialCommitsInfoBuilderSupport.collectCommits(MercurialCommitsInfoBuilderSupport.java:68)
at jetbrains.vcs.api.services.collectChanges.CommitsInfoServiceProvider$1.collectCommits(CommitsInfoServiceProvider.java:33)
at jetbrains.vcs.server.core.impl.graph.worker.VcsGraphSource.fetchCommits(VcsGraphSource.java:32)
... 13 more
[2018-06-22 10:23:07,459] INFO lyzer:INIT_CLUSTER-2 hgrepo-test h.global.CompositeGraphFactory - Constructed composite graph for hgrepo-test{mappings: 1, mounts: 0} in 2928ms
[2018-06-22 10:23:07,459] WARN lyzer:INIT_CLUSTER-2 hgrepo-test i.multi.vcs.VcsAccessorFactory - Failed to complete Import Commit for hgrepo-test. jetbrains.vcs.server.api.VcsServiceException: Failed to construct commits graph for hgrepo-test{mappings: 1, mounts: 0}. Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
java.lang.Error: jetbrains.vcs.server.api.VcsServiceException: Failed to construct commits graph for hgrepo-test{mappings: 1, mounts: 0}. Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceClient.processNewRevisions(VcsServiceClient.java:78)
at com.jetbrains.upsource.backend.cli.multi.vcs.ImportProjectFromVcsCommitsImpl.a(ImportProjectFromVcsCommitsImpl.kt:145)
at com.jetbrains.upsource.backend.cli.multi.vcs.ImportProjectFromVcsCommitsImpl.executeTask(ImportProjectFromVcsCommitsImpl.kt:68)
at com.jetbrains.upsource.lifetimes.Lifetime.a(Lifetime.java:102)
at com.jetbrains.upsource.lifetimes.Lifetime.nested(Lifetime.java:115)
at com.jetbrains.upsource.lifetimes.Lifetime.runSync(Lifetime.java:102)
at com.jetbrains.upsource.backend.cli.multi.vcs.VcsAccessorFactory$VcsCommitCollectorImpl.collectChanges(VcsAccessorFactory.java:90)
at com.jetbrains.upsource.backend.cli.multi.init.InitCommitsGraphDriver.analyze(InitCommitsGraphDriver.java:87)
at com.jetbrains.upsource.backend.cli.stages.driver.InitGlobalDriverWrapper.analyze(InitGlobalDriverWrapper.java:39)
at com.jetbrains.upsource.backend.cli.multi.init.InitPipeline.a(InitPipeline.java:73)
at __. project_hgrepo-test .__.run(JavaGeneratorTemplate.java:43)
at com.jetbrains.upsource.common.NamedFrameUtil.withProject(NamedFrameUtil.java:21)
at com.jetbrains.upsource.backend.cli.multi.tasks.MultiProjectTaskFactory$TaskExecutor.executeTask(MultiProjectTaskFactory.java:170)
at com.jetbrains.upsource.backend.cli.multi.tasks.MultiProjectTaskFactory$TaskExecutor$1.run(MultiProjectTaskFactory.java:153)
at com.jetbrains.upsource.backend.cli.multi.executor.ProjectSyncExecutor$ProjectTasks$1$1.run(ProjectSyncExecutor.java:199)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
at java.lang.Thread.run(Thread.java:748)
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to construct commits graph for hgrepo-test{mappings: 1, mounts: 0}. Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory.fetchGraph(CompositeGraphFactory.java:103)
at jetbrains.vcs.server.core.impl.graph.GraphServiceImpl.fetchGraph(GraphServiceImpl.java:68)
at jetbrains.vcs.server.core.impl.graph.FetchServiceImpl.fetch(FetchServiceImpl.java:22)
at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceClient.processNewRevisions(VcsServiceClient.java:72)
... 18 more
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.global.MappingCommitsGraphFutures$2.graph(MappingCommitsGraphFutures.java:41)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.includeMappings(CompositeGraphBuilder.java:112)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.loadGraphs(CompositeGraphBuilder.java:82)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.fetchAllGraphs(CompositeGraphBuilder.java:63)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory.fetchGraph(CompositeGraphFactory.java:99)
... 21 more
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.global.MappingCommitsGraphFutures.error(MappingCommitsGraphFutures.java:57)
at jetbrains.vcs.server.core.impl.graph.global.MappingCommitsGraphFutures.errorGraph(MappingCommitsGraphFutures.java:31)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.lambda$loadGraphs$0(CompositeGraphBuilder.java:101)
at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$2.call(TrueParallelExecutionImpl.java:84)
at __. project_hgrepo-test .__.call(JavaGeneratorTemplate.java:39)
at com.jetbrains.upsource.common.NamedFrameUtil.withProject(NamedFrameUtil.java:27)
at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceConnections$2.lambda$wrapMappingTask$0(VcsServiceConnections.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$1$1.run(TrueParallelExecutionImpl.java:51)
... 1 more
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.worker.VcsGraphSource.fetchCommits(VcsGraphSource.java:34)
at jetbrains.vcs.server.core.impl.graph.mapping.MappingCommitsGraphFactory.buildGraph(MappingCommitsGraphFactory.java:70)
at jetbrains.vcs.server.core.impl.graph.incremental.CachingCommitGraphFactory.buildGraph(CachingCommitGraphFactory.java:55)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory$1.buildGraph(CompositeGraphFactory.java:85)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.lambda$loadGraphs$0(CompositeGraphBuilder.java:96)
... 9 more
Caused by: jetbrains.buildServer.vcs.VcsException: Command failed:
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommitsAndMountPointsCommand.callImpl(CommitsAndMountPointsCommand.java:103)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommitsAndMountPointsCommand.call(CommitsAndMountPointsCommand.java:68)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialCommitsInfoBuilderSupport.collectCommits(MercurialCommitsInfoBuilderSupport.java:68)
at jetbrains.vcs.api.services.collectChanges.CommitsInfoServiceProvider$1.collectCommits(CommitsInfoServiceProvider.java:33)
at jetbrains.vcs.server.core.impl.graph.worker.VcsGraphSource.fetchCommits(VcsGraphSource.java:32)
... 13 more
[2018-06-22 10:23:07,470] ERROR lyzer:INIT_CLUSTER-2 hgrepo-test ti.init.InitCommitsGraphDriver - Project hgrepo-test init failed due to unrecoverable VCS problem: Failed to import commits graph: Check for VCS changes completed with errors. jetbrains.vcs.server.api.VcsServiceException: Failed to construct commits graph for hgrepo-test{mappings: 1, mounts: 0}. Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
com.jetbrains.upsource.UpsourceException: Failed to import commits graph: Check for VCS changes completed with errors. jetbrains.vcs.server.api.VcsServiceException: Failed to construct commits graph for hgrepo-test{mappings: 1, mounts: 0}. Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at com.jetbrains.upsource.backend.cli.multi.init.InitCommitsGraphDriver.analyze(InitCommitsGraphDriver.java:90)
at com.jetbrains.upsource.backend.cli.stages.driver.InitGlobalDriverWrapper.analyze(InitGlobalDriverWrapper.java:39)
at com.jetbrains.upsource.backend.cli.multi.init.InitPipeline.a(InitPipeline.java:73)
at __. project_hgrepo-test .__.run(JavaGeneratorTemplate.java:43)
at com.jetbrains.upsource.common.NamedFrameUtil.withProject(NamedFrameUtil.java:21)
at com.jetbrains.upsource.backend.cli.multi.tasks.MultiProjectTaskFactory$TaskExecutor.executeTask(MultiProjectTaskFactory.java:170)
at com.jetbrains.upsource.backend.cli.multi.tasks.MultiProjectTaskFactory$TaskExecutor$1.run(MultiProjectTaskFactory.java:153)
at com.jetbrains.upsource.backend.cli.multi.executor.ProjectSyncExecutor$ProjectTasks$1$1.run(ProjectSyncExecutor.java:199)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Error: jetbrains.vcs.server.api.VcsServiceException: Failed to construct commits graph for hgrepo-test{mappings: 1, mounts: 0}. Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceClient.processNewRevisions(VcsServiceClient.java:78)
at com.jetbrains.upsource.backend.cli.multi.vcs.ImportProjectFromVcsCommitsImpl.a(ImportProjectFromVcsCommitsImpl.kt:145)
at com.jetbrains.upsource.backend.cli.multi.vcs.ImportProjectFromVcsCommitsImpl.executeTask(ImportProjectFromVcsCommitsImpl.kt:68)
at com.jetbrains.upsource.lifetimes.Lifetime.a(Lifetime.java:102)
at com.jetbrains.upsource.lifetimes.Lifetime.nested(Lifetime.java:115)
at com.jetbrains.upsource.lifetimes.Lifetime.runSync(Lifetime.java:102)
at com.jetbrains.upsource.backend.cli.multi.vcs.VcsAccessorFactory$VcsCommitCollectorImpl.collectChanges(VcsAccessorFactory.java:90)
at com.jetbrains.upsource.backend.cli.multi.init.InitCommitsGraphDriver.analyze(InitCommitsGraphDriver.java:87)
... 11 more
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to construct commits graph for hgrepo-test{mappings: 1, mounts: 0}. Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory.fetchGraph(CompositeGraphFactory.java:103)
at jetbrains.vcs.server.core.impl.graph.GraphServiceImpl.fetchGraph(GraphServiceImpl.java:68)
at jetbrains.vcs.server.core.impl.graph.FetchServiceImpl.fetch(FetchServiceImpl.java:22)
at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceClient.processNewRevisions(VcsServiceClient.java:72)
... 18 more
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.global.MappingCommitsGraphFutures$2.graph(MappingCommitsGraphFutures.java:41)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.includeMappings(CompositeGraphBuilder.java:112)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.loadGraphs(CompositeGraphBuilder.java:82)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.fetchAllGraphs(CompositeGraphBuilder.java:63)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory.fetchGraph(CompositeGraphFactory.java:99)
... 21 more
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to construct graph for hgrepo-test:. Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.global.MappingCommitsGraphFutures.error(MappingCommitsGraphFutures.java:57)
at jetbrains.vcs.server.core.impl.graph.global.MappingCommitsGraphFutures.errorGraph(MappingCommitsGraphFutures.java:31)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.lambda$loadGraphs$0(CompositeGraphBuilder.java:101)
at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$2.call(TrueParallelExecutionImpl.java:84)
at __. project_hgrepo-test .__.call(JavaGeneratorTemplate.java:39)
at com.jetbrains.upsource.common.NamedFrameUtil.withProject(NamedFrameUtil.java:27)
at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceConnections$2.lambda$wrapMappingTask$0(VcsServiceConnections.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$1$1.run(TrueParallelExecutionImpl.java:51)
... 1 more
Caused by: jetbrains.vcs.server.api.VcsServiceException: Failed to collect commits graph for hgrepo-test:. Command failed:
at jetbrains.vcs.server.core.impl.graph.worker.VcsGraphSource.fetchCommits(VcsGraphSource.java:34)
at jetbrains.vcs.server.core.impl.graph.mapping.MappingCommitsGraphFactory.buildGraph(MappingCommitsGraphFactory.java:70)
at jetbrains.vcs.server.core.impl.graph.incremental.CachingCommitGraphFactory.buildGraph(CachingCommitGraphFactory.java:55)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory$1.buildGraph(CompositeGraphFactory.java:85)
at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder.lambda$loadGraphs$0(CompositeGraphBuilder.java:96)
... 9 more
Caused by: jetbrains.buildServer.vcs.VcsException: Command failed:
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommitsAndMountPointsCommand.callImpl(CommitsAndMountPointsCommand.java:103)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommitsAndMountPointsCommand.call(CommitsAndMountPointsCommand.java:68)
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialCommitsInfoBuilderSupport.collectCommits(MercurialCommitsInfoBuilderSupport.java:68)
at jetbrains.vcs.api.services.collectChanges.CommitsInfoServiceProvider$1.collectCommits(CommitsInfoServiceProvider.java:33)
at jetbrains.vcs.server.core.impl.graph.worker.VcsGraphSource.fetchCommits(VcsGraphSource.java:32)
... 13 more
[2018-06-22 10:23:07,490] INFO lyzer:INIT_CLUSTER-2 hgrepo-test i.global.MonitorActiveProjects - Project 'hgrepo-test' changed: ProjectStateRecord{Uuid=6, Status=Failed}
[2018-06-22 10:23:07,490] INFO lyzer:INIT_CLUSTER-2 hgrepo-test driver.InitGlobalDriverWrapper - Stopped project analyzer: 'init-commits-graph' (project: hgrepo-test) in 7s 413ms
[2018-06-22 10:23:07,491] WARN lyzer:INIT_CLUSTER-2 hgrepo-test nd.cli.multi.init.InitPipeline - Failed to complete project initialization tasks. Will NOT process the project.
[2018-06-22 10:23:09,160] INFO r-7 @coroutine#17535 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getProjectsAnalyzerState:{}, Users:{admin}
[2018-06-22 10:23:09,193] INFO r-8 @coroutine#17544 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getSystemMessages:{}, Users:{admin}
[2018-06-22 10:23:14,211] INFO r-1 @coroutine#17567 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getProjectsAnalyzerState:{}, Users:{admin}
[2018-06-22 10:23:14,227] INFO r-8 @coroutine#17570 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 2] getSystemMessages:{}, Users:{admin}
[2018-06-22 10:38:57,144] INFO gitlab-sync-2 ion.gitlab.GitlabImportService - Starting GitLab synchronization
[2018-06-22 10:38:57,222] INFO gitlab-sync-2 ion.gitlab.GitlabImportService - Project hgrepo-test is not initialized yet. Postpone
[2018-06-22 10:38:57,517] INFO github-sync-2 ion.github.GithubImportService - Starting GitHub synchronization
[2018-06-22 10:38:57,517] INFO github-sync-2 ion.github.GithubImportService - Project hgrepo-test is not initialized yet. Postpone
[2018-06-22 10:44:15,090] INFO r-3 @coroutine#21733 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getUserSetting:{"key":"ShowDiscussions"}, Users:{admin}
[2018-06-22 10:44:15,142] INFO r-2 @coroutine#21741 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 4] getCurrentUser:{}, Users:{admin}
[2018-06-22 10:44:15,141] INFO r-8 @coroutine#21739 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 3] getUnreadUnlockedUserAchievementsCount:{}, Users:{admin}
[2018-06-22 10:44:15,103] INFO r-4 @coroutine#21735 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 2] validatePlace:{"url":"/administration"}, Users:{admin}
[2018-06-22 10:44:15,571] INFO r-1 @coroutine#21751 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getReadOnlyMode:{}, Users:{admin}
[2018-06-22 10:44:15,586] INFO r-4 @coroutine#21753 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getProjectsAnalyzerState:{}, Users:{admin}
[2018-06-22 10:44:15,598] INFO -10 @coroutine#21763 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getReadOnlyMode:{}, Users:{admin}
[2018-06-22 10:44:15,605] INFO r-7 @coroutine#21759 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getSystemMessages:{}, Users:{admin}
[2018-06-22 10:44:15,615] INFO r-6 @coroutine#21770 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] getUserSetting:{"key":"SendPush"}, Users:{admin}
[2018-06-22 10:44:15,665] INFO r-4 @coroutine#21774 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 2] getUnlockedUserAchievements:{"userId":"f0f8712c-09e3-45e1-915a-a4734355ebe4"}, Users:{admin}
[2018-06-22 10:44:15,727] INFO r-3 @coroutine#21777 .rpc.endPoints.TaskManagerImpl - RPC: [Queued: 1] updateUserTimezone:{"userId":"f0f8712c-09e3-45e1-915a-a4734355ebe4","timezoneOffset":540}, Users:{admin}

----------------------------------------------------------------------

 

 

2
7 comments
Avatar
Permanently deleted user

I do have the same problem.

Any news or suggesions ?

0

I ran into this problem. Then when I used a system with hg 4.5 it worked.

It looks like it's due to a python hg extension that hasn't been upgraded to 4.6 yet. This is a issue with 3rd party hg plugins in general:

https://www.mercurial-scm.org/wiki/WritingExtensions
"""/!\There are NO guarantees that third-party code calling into Mercurial's internals won't break from release to release. If you do use Mercurial's API for published third-party code, we expect you to test your code before each major Mercurial release (see TimeBasedReleasePlan). This will prevent various bug reports from your users when they upgrade their copy of Mercurial.

"""

1
Avatar
Permanently deleted user

@Trissylegs please, do you remember the exact hg version ?

0

It appears my VM gone and died on me but it's probably, hg 4.5.3:
https://packages.ubuntu.com/bionic/mercurial

1
Avatar
Permanently deleted user

I solved the problem following @Trissylegs advice.

I installed Mercurial 4.5.3 and it worked correctly

0

is there any update on support for later version of HG Mercurial ?

I check regularly on the page : http://hg.jetbrains.org/hg/mercurial
I see no updates.

thank you

0

Hi ! 

its been over a month, but in fact its been over 6 month since the compatibility with HG 4.6 and higher broke.

can we obtain an update when we will be able to use UpSource with an upgraded version of both softwares.

we cannot update UpSource, we cannot update Mercurial. We are locked down. And sincerely we feel left out.

can we have a status update, at least, on works to resolve to compatibility issue. please ?

the only status I got is more than 2 months old.

changeset 1005:3da1f4168906

changeset 1007:b29a61718d05

regards,

MAP

0

Please sign in to leave a comment.