Hello,
summary
We are running a trial on SonarQube Developer Edition and we are running SonarQube in a Docker container. We are however having our SonarQube crashing with these lines below as the last logs.
versions used (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube 7.4.0.18908 Developer Edition
Postgres 9.6.8
error observed (wrap logs/code around triple quote ``` for proper formatting)
Instance crashing with:
...
2019.01.31 18:08:03 INFO web[][com.sonarsource.C.H] Loaded virtual plugin License for SonarLint
2019.01.31 18:08:03 INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2019.01.31 18:08:03 INFO web[][o.s.s.s.RegisterPlugins] Register plugins
2019.01.31 18:08:03 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
2019.01.31 18:08:04 INFO web[][o.s.s.r.RegisterRules] Register rules
2019.01.31 18:08:17 INFO web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2019.01.31 18:08:17 INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2019.01.31 18:08:17 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalArgumentException: Duplicate key cpp/Sonar way
at org.sonar.core.util.stream.MoreCollectors.putAndFailOnDuplicateKey(MoreCollectors.java:295)
at org.sonar.core.util.stream.MoreCollectors.lambda$uniqueIndex$9(MoreCollectors.java:256)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.sonar.server.qualityprofile.RegisterQualityProfiles.loadPersistedProfiles(RegisterQualityProfiles.java:111)
at org.sonar.server.qualityprofile.RegisterQualityProfiles.start(RegisterQualityProfiles.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:46)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:82)
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:46)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:79)
at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:196)
at org.sonar.server.platform.Platform.access$400(Platform.java:46)
at org.sonar.server.platform.Platform$1.lambda$doRun$1(Platform.java:121)
at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371)
at org.sonar.server.platform.Platform$1.doRun(Platform.java:121)
at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355)
at java.lang.Thread.run(Thread.java:748)
2019.01.31 18:08:18 INFO web[][o.s.p.StopWatcher] Stopping process
2019.01.31 18:08:20 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped
2019.01.31 18:08:20 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2019.01.31 18:08:20 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2019.01.31 18:08:20 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
steps to reproduce
Install SonarQube 7.4.0.18908, watch logs.