Sonrqube 8.5.1 starting error

hi All i have just instlled sonarqube 8.5.1 and using MSSQL server and configured my sonar qube . while starting i am getting followign error. Please help.

2020.11.05 19:43:17 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\mine\devopstools\sonarqube-8.5.1.38104
2020.11.05 19:43:17 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is enabled
2020.11.05 19:43:18 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed
java.lang.NullPointerException: Plugin key is missing from manifest
	at java.base/java.util.Objects.requireNonNull(Objects.java:246)
	at org.sonar.core.platform.PluginInfo.<init>(PluginInfo.java:104)
	at org.sonar.server.plugins.ServerPluginInfo.<init>(ServerPluginInfo.java:32)
	at org.sonar.server.plugins.ServerPluginInfo.create(ServerPluginInfo.java:38)
	at org.sonar.server.plugins.PluginJarLoader.lambda$getExternalPluginsMetadata$5(PluginJarLoader.java:201)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at org.sonar.server.plugins.PluginJarLoader.loadPluginsFromDir(PluginJarLoader.java:231)
	at org.sonar.server.plugins.PluginJarLoader.getExternalPluginsMetadata(PluginJarLoader.java:201)
	at org.sonar.server.plugins.PluginJarLoader.loadPlugins(PluginJarLoader.java:92)
	at org.sonar.server.plugins.ServerPluginManager.start(ServerPluginManager.java:64)
	at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40)
	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:136)
	at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
	at org.sonar.server.platform.platformlevel.PlatformLevel2.start(PlatformLevel2.java:112)
	at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:213)
	at org.sonar.server.platform.PlatformImpl.startLevel2Container(PlatformImpl.java:179)
	at org.sonar.server.platform.PlatformImpl.init(PlatformImpl.java:87)
	at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:43)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4689)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5155)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
2020.11.05 19:43:19 WARN  web[][o.a.c.u.SessionIdGeneratorBase] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [328] milliseconds.
2020.11.05 19:43:19 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2020.11.05 19:43:19 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process

es.log (3.5 KB) sonar.log (3.1 KB) web.log (5.1 KB) sonar.txt (20.5 KB)

1 Like

–> Wrapper Started as Console
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2020.11.05 17:54:54 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\mine\devopstools\sonarqube-8.5.1.38104\temp
2020.11.05 17:54:55 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.11.05 17:54:55 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [C:\mine\devopstools\sonarqube-8.5.1.38104\elasticsearch]: C:\mine\devopstools\java11\jdk-11.0.9\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\mine\devopstools\sonarqube-8.5.1.38104\temp -XX:ErrorFile=…/logs/es_hs_err_pid%p.log -Des.enforce.bootstrap.checks=true -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\mine\devopstools\sonarqube-8.5.1.38104\elasticsearch -Des.path.conf=C:\mine\devopstools\sonarqube-8.5.1.38104\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2020.11.05 17:54:55 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.11.05 17:54:56 INFO app[o.e.p.PluginsService] no modules loaded
2020.11.05 17:54:56 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.11.05 17:55:12 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2020.11.05 17:55:12 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [C:\mine\devopstools\sonarqube-8.5.1.38104]: C:\mine\devopstools\java11\jdk-11.0.9\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\mine\devopstools\sonarqube-8.5.1.38104\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -server -Xmx768m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stck=true -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/;C:\mine\devopstools\sonarqube-8.5.1.38104\lib\jdbc\mssql\mssql-jdbc-7.4.1.jre11.jar org.sonar.server.app.WebServer C:\mine\devopstools\sonarqube-8.5.1.38104\temp\sq-process13436124858176629081properties
2020.11.05 17:55:40 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2020.11.05 17:55:40 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2020.11.05 17:55:40 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

Hi @msbhanuprakash and welcome to the community :wave:

i merged the two threads you opened to better understand your current status. could you maybe describe what you already did in order to get to this situation?
From the logs it looks like you are either:

  • developing a sonarqube plugin
  • installed a 3rd party plugin to sonarqube which is broken

if none of this is the case, please try to re download the sonarqube archive and validate that the download has completed (compare hash sums) before starting over

Hi @msbhanuprakash ,
Were you able to resolve this issue ?? If yes please share the steps.

Hi @Tobias_Trabelsi ,
I followed the steps you mentioned , but facing the same issue.
Could you please suggest any workaround ??

Hi @pande ,

sorry for the late reply this is a rather old thread and i was put of office for a week. what measures did you took so far and can you give a little more insight on your setup?