Running SonarQube for the First Time - Windows - SQL Server

Hello

I’m trying to run SonarQube for the first time

  • Windows Server 2012 R1
  • Java 17
  • sonarqube-10.3.0.82913

I configured the database username, password and location.

"sonar.jdbc.url=jdbc:sqlserver://192.168.1.162;databaseName=sonar;integratedSecurity=true;encrypt=true;trustServerCertificate=false;
"

I get this when I run StartSonar.bat.

C:\SonarQube\bin\windows-x86-64>StartSonar
Starting SonarQube...
2024.02.06 12:51:31 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp d
irectory C:\SonarQube\temp
2024.02.06 12:51:31 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on
[HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:51424]
2024.02.06 12:51:31 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTI
CSEARCH] from [C:\SonarQube\elasticsearch]: C:\Program Files\Java\jdk-17\bin\jav
a -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticse
arch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\SonarQube\elasticsearch -
Des.path.conf=C:\SonarQube\temp\conf\es -Des.distribution.type=tar -cp C:\SonarQ
ube\elasticsearch\lib\*;C:\SonarQube\elasticsearch\lib\cli-launcher\* org.elasti
csearch.launcher.CliToolLauncher
2024.02.06 12:51:31 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch t
o be up and running
2024.02.06 12:51:55 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2024.02.06 12:51:55 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SE
RVER] from [C:\SonarQube]: C:\Program Files\Java\jdk-17\bin\java -Djava.awt.head
less=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\SonarQube\temp -XX:-OmitStac
kTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.b
ase/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=
java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=
ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun
.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add
-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=
false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=loc
alhost|127.*|[::1] -cp ./lib/sonar-application-10.3.0.82913.jar;C:\SonarQube\lib
\jdbc\mssql\mssql-jdbc-12.4.1.jre11.jar org.sonar.server.app.WebServer C:\SonarQ
ube\temp\sq-process16762123393491312878properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginS
ecurityManager (file:/C:/SonarQube/lib/sonar-application-10.3.0.82913.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.
PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2024.02.06 12:52:00 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stop
ped
2024.02.06 12:52:00 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is s
topped
2024.02.06 12:52:00 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

C:\SonarQube\bin\windows-x86-64>

Any pointer of what is the problem? Is the database access ?

Regards

Hi,

Welcome to the community!

What do your server logs say?

 
Ann