Creating a new initialized Mercurial repo leads to an error. The webpage states “unknown error”. I’m running a new instance of SCM-Manager 3.3.0 on Windows 10
This is what the scm-manager logs gives me
2024-12-13 16:18:26.664 [qtp1274370218-19] [B5UWsxrKa4b] INFO sonia.scm.repository.DefaultRepositoryManager - create repository scmadmin/test2 (BZUWsxrKaC) of type hg
2024-12-13 16:18:26.680 [qtp1274370218-19] [B5UWsxrKa4b] INFO sonia.scm.io.DefaultFileSystem - create directory C:\Windows\system32\config\systemprofile\AppData\Roaming\SCM-Manager\repositories\BZUWsxrKaC
2024-12-13 16:18:27.195 [qtp1274370218-19] [B5UWsxrKa4b] INFO sonia.scm.security.DefaultAuthorizationCollector - invalidate cache, because of a received authorization event
2024-12-13 16:18:27.211 [qtp1274370218-19] [B5UWsxrKa4b] INFO sonia.scm.security.DefaultAuthorizationCollector - invalidate cache, because of a received authorization event
2024-12-13 16:18:28.727 [HgHookWorker-2] [B5UWsxrKa4b] ERROR sonia.scm.repository.spi.HgHookChangesetProvider - could not retrieve changesets
org.javahg.commands.ExecutionException: unknown revision '12b3c59749bfe097d822258092f6138451679d39'
The web page gives me Error Code CHRM7IQzo1
Hey @chen.ryan thank you for your post. We will have a look at it
I had forgotten to mention that this is running on a PC that is not connected to the internet.
Hi @chen.ryan ,
could you do us a favour and run this once more with trace log enabled? This can be easily done by
- installing the support plugin,
- going to Administration - Support,
- clicking on the “Start” button,
- try to create another Mercurial repo,
- going back to the support page
- press the “Stop and Collect” button.
You should get a zipped file containing the trace log for the period and some metadata about your installation like the installed plugins.
Thanks a lot!
This is what prints out to scm-manager.log when I attempt to initialize a mercurial repo through scm-manager
2024-12-19 15:03:10.153 [qtp1274370218-21] [44UXRk3uA36] INFO sonia.scm.repository.DefaultRepositoryManager - create repository scmadmin/test2 (AuUXRk3uDL) of type hg
2024-12-19 15:03:10.162 [qtp1274370218-21] [44UXRk3uA36] INFO sonia.scm.io.DefaultFileSystem - create directory C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\SCM-Manager\repositories\AuUXRk3uDL
2024-12-19 15:03:10.353 [qtp1274370218-21] [44UXRk3uA36] INFO sonia.scm.security.DefaultAuthorizationCollector - invalidate cache, because of a received authorization event
2024-12-19 15:03:10.358 [ScmEventBus-1-2] [ ] INFO sonia.scm.security.DefaultAuthorizationCollector - invalidate cache, because of a received authorization event
2024-12-19 15:03:10.366 [qtp1274370218-21] [44UXRk3uA36] INFO sonia.scm.security.DefaultAuthorizationCollector - invalidate cache, because of a received authorization event
2024-12-19 15:03:11.157 [HgHookWorker-1] [44UXRk3uA36] ERROR sonia.scm.repository.spi.HgHookChangesetProvider - could not retrieve changesets
org.javahg.commands.ExecutionException: unknown revision '4cae3216085f54c2a86aad5f3f77fa264ba6cee2'
at org.javahg.internals.AbstractCommand.handleReturnCode(AbstractCommand.java:388)
at org.javahg.internals.OutputChannelInputStream.findNextOutputChannelBlock(OutputChannelInputStream.java:173)
at org.javahg.internals.OutputChannelInputStream.<init>(OutputChannelInputStream.java:74)
at org.javahg.internals.Server.runCommand(Server.java:410)
at org.javahg.internals.AbstractCommand.launchStream(AbstractCommand.java:181)
at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.getHgInputStream(HgLogChangesetCommand.java:73)
at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.execute(HgLogChangesetCommand.java:55)
at sonia.scm.repository.spi.HgHookChangesetProvider.handleRequest(HgHookChangesetProvider.java:60)
at sonia.scm.repository.api.HgHookBranchProvider.changesets(HgHookBranchProvider.java:95)
at sonia.scm.repository.api.HgHookBranchProvider.collect(HgHookBranchProvider.java:105)
at sonia.scm.repository.api.HgHookBranchProvider.getDeletedOrClosed(HgHookBranchProvider.java:70)
at sonia.scm.repository.DefaultBranchDeleteProtection.protectDefaultBranch(DefaultBranchDeleteProtection.java:49)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.github.legman.InvocationContext.invoke(InvocationContext.java:108)
at com.github.legman.InvocationContext.proceed(InvocationContext.java:101)
at com.github.legman.micrometer.MicrometerInvocationInterceptor.invoke(MicrometerInvocationInterceptor.java:47)
at com.github.legman.InvocationContext.proceed(InvocationContext.java:99)
at com.github.legman.EventHandler.handleEvent(EventHandler.java:103)
at com.github.legman.EventBus$2.run(EventBus.java:396)
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
at com.github.legman.EventBus.dispatch(EventBus.java:473)
at com.github.legman.EventBus.dispatchSynchronousQueuedEvents(EventBus.java:448)
at com.github.legman.EventBus.post(EventBus.java:345)
at sonia.scm.event.LegmanScmEventBus.post(LegmanScmEventBus.java:78)
at sonia.scm.repository.AbstractRepositoryManager.fireHookEvent(AbstractRepositoryManager.java:47)
at sonia.scm.repository.spi.HookEventFacade$HookEventHandler.fireHookEvent(HookEventFacade.java:105)
at sonia.scm.repository.hooks.DefaultHookHandler.fireHook(DefaultHookHandler.java:111)
at sonia.scm.repository.hooks.DefaultHookHandler.handleHookRequest(DefaultHookHandler.java:97)
at sonia.scm.repository.hooks.DefaultHookHandler.handleHookRequest(DefaultHookHandler.java:82)
at sonia.scm.repository.hooks.DefaultHookHandler.run(DefaultHookHandler.java:69)
at sonia.scm.repository.hooks.HookServer.lambda$associateSecurityManager$1(HookServer.java:95)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
2024-12-19 15:03:11.180 [HgHookWorker-1] [44UXRk3uA36] WARN sonia.scm.repository.hooks.DefaultHookHandler - unknown error on hook occurred
java.lang.NullPointerException: Cannot invoke "sonia.scm.repository.spi.HookChangesetResponse.getChangesets()" because the return value of "sonia.scm.repository.api.HookChangesetProvider.handleRequest(sonia.scm.repository.spi.HookChangesetRequest)" is null
at sonia.scm.repository.api.HgHookBranchProvider.changesets(HgHookBranchProvider.java:95)
at sonia.scm.repository.api.HgHookBranchProvider.collect(HgHookBranchProvider.java:105)
at sonia.scm.repository.api.HgHookBranchProvider.getDeletedOrClosed(HgHookBranchProvider.java:70)
at sonia.scm.repository.DefaultBranchDeleteProtection.protectDefaultBranch(DefaultBranchDeleteProtection.java:49)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.github.legman.InvocationContext.invoke(InvocationContext.java:108)
at com.github.legman.InvocationContext.proceed(InvocationContext.java:101)
at com.github.legman.micrometer.MicrometerInvocationInterceptor.invoke(MicrometerInvocationInterceptor.java:47)
at com.github.legman.InvocationContext.proceed(InvocationContext.java:99)
at com.github.legman.EventHandler.handleEvent(EventHandler.java:103)
at com.github.legman.EventBus$2.run(EventBus.java:396)
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
at com.github.legman.EventBus.dispatch(EventBus.java:473)
at com.github.legman.EventBus.dispatchSynchronousQueuedEvents(EventBus.java:448)
at com.github.legman.EventBus.post(EventBus.java:345)
at sonia.scm.event.LegmanScmEventBus.post(LegmanScmEventBus.java:78)
at sonia.scm.repository.AbstractRepositoryManager.fireHookEvent(AbstractRepositoryManager.java:47)
at sonia.scm.repository.spi.HookEventFacade$HookEventHandler.fireHookEvent(HookEventFacade.java:105)
at sonia.scm.repository.hooks.DefaultHookHandler.fireHook(DefaultHookHandler.java:111)
at sonia.scm.repository.hooks.DefaultHookHandler.handleHookRequest(DefaultHookHandler.java:97)
at sonia.scm.repository.hooks.DefaultHookHandler.handleHookRequest(DefaultHookHandler.java:82)
at sonia.scm.repository.hooks.DefaultHookHandler.run(DefaultHookHandler.java:69)
at sonia.scm.repository.hooks.HookServer.lambda$associateSecurityManager$1(HookServer.java:95)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
Thanks! This should not happen (as you might have expected…)
May I ask what version of Mercurial you are using (the binary you will find under Administration - Settings - Mercurial)?