Sonarqube 8.2 and Postgress 12.2 not working

i’ve installed postgres 12.2 and Sonarqube 8.2 and Elasticsearch 7.6.2 at firstime by myself.
I’ve started postgres and i’ve created sonar-db and sonar-user within postgres.
I cann access to my postgres instance with pgAdmin
At the i’ve set this:


Then i’ve installed InstallNTService.bat and StartNTService.bat
and started sonarqube again as administrator.
So got this error

jvm 1    | 2020.04.16 00:09:59 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-\temp
jvm 1    | 2020.04.16 00:09:59 INFO  app[][] Elasticsearch listening on /
jvm 1    | 2020.04.16 00:09:59 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-\elasticsearch]: C:\Program Files\Java\jdk-11.0.2\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\sonarqube-\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Des.enforce.bootstrap.checks=true -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-\elasticsearch -Des.path.conf=C:\sonarqube-\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1    | 2020.04.16 00:09:59 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1    | 2020.04.16 00:09:59 INFO  app[][o.e.p.PluginsService] no modules loaded
jvm 1    | 2020.04.16 00:09:59 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1    | 2020.04.16 00:10:02 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
jvm 1    | 2020.04.16 00:10:02 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1    | 2020.04.16 00:10:02 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1    | 2020.04.16 00:10:02 INFO  app[][o.e.c.t.TransportClientNodesService] failed to get node info for {#transport#-1}{FlaE1HFWSb-e9qDYImIxfg}{}{}, disconnecting...
jvm 1    | java.lang.IllegalStateException: Future got interrupted
jvm 1    |      at org.elasticsearch.common.util.concurrent.FutureUtils.get(
jvm 1    |      at
jvm 1    |      at org.elasticsearch.transport.ConnectionManager.internalOpenConnection(
jvm 1    |      at org.elasticsearch.transport.ConnectionManager.openConnection(
jvm 1    |      at org.elasticsearch.transport.TransportService.openConnection(
jvm 1    |      at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(
jvm 1    |      at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(
jvm 1    |      at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(
jvm 1    |      at org.elasticsearch.client.transport.TransportClient.addTransportAddress(
jvm 1    |      at$MinimalTransportClient.<init>(
jvm 1    |      at
jvm 1    |      at
jvm 1    |      at
jvm 1    |      at org.sonar.application.process.EsManagedProcess.checkStatus(
jvm 1    |      at org.sonar.application.process.EsManagedProcess.checkOperational(
jvm 1    |      at org.sonar.application.process.EsManagedProcess.isOperational(
jvm 1    |      at org.sonar.application.process.ManagedProcessHandler.refreshState(
jvm 1    |      at org.sonar.application.process.ManagedProcessHandler$
jvm 1    | Caused by: java.lang.InterruptedException: null
jvm 1    |      at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(
jvm 1    |      at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(
jvm 1    |      at org.elasticsearch.common.util.concurrent.BaseFuture.get(
jvm 1    |      at org.elasticsearch.common.util.concurrent.FutureUtils.get(
jvm 1    |      ... 17 common frames omitted

What can i check? what can i do?


Welcome to the community!

Start by checking your server logs to see if you see other, more specific (helpful) errors.


Do i need explicity elasticsearch for using sonarcube with postgres?
I get two different error. One is when i start elasticsearch and other one, when i start postgres and sonarcube.


SonarQube starts up and manages an Elasticsearch thread. All SonarQube’s threads depend on and health-check each other. So the thing to so is figure out which one fell down first and brought the rest with it. That’s usually intuit-able from the errors in the logs.

Particularly at startup, the primary suspects are going to be

  1. connecting to the DB - errors found in web.log
  2. ES having enough/proper resources - errors found in es.log

What errors are you seeing in which logs?


Thank you for the right hint. I’am new on sonarcube administration, so i’ve looked for error in sonar.log and not at the web.log.
After that i’ve fixed postgres connectivity-issue

1 Like