Errors while installing SonarQube -8.7 on Windows Server

While installing SonarQube on our server, facing multiple issues.

Please note: All Perquisite are installed as the document provided.

OS : Windows
MS SQL

Error Log :

2021.03.01 16:28:15 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2021.03.01 16:28:17 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2021.03.01 16:28:18 INFO  web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: enterprise-edition, ce-workers, developer-scanner, developer-server, governance, license, securityreport
2021.03.01 16:28:18 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://127.0.0.1:9005]
2021.03.01 16:28:20 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 8.7.0.41497 / 95518cab3f7fcbf534519de0aad00eee058468ef
2021.03.01 16:28:20 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:sqlserver://172.25.1.132;databaseName=sonar
2021.03.01 16:28:23 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\sonarqube
2021.03.01 16:28:23 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2021.03.01 16:28:23 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed
java.lang.IllegalStateException: Can not check that table schema_migrations exists
	at org.sonar.db.DatabaseUtils.wrapSqlException(DatabaseUtils.java:395)
	at org.sonar.db.DatabaseUtils.doTableExists(DatabaseUtils.java:310)
	at org.sonar.db.DatabaseUtils.tableExists(DatabaseUtils.java:291)
	at org.sonar.server.platform.db.migration.history.MigrationHistoryTableImpl.start(MigrationHistoryTableImpl.java:44)
	at java.base/java.util.Optional.ifPresent(Optional.java:183)
	at org.sonar.server.platform.platformlevel.PlatformLevel2.start(PlatformLevel2.java:105)
	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)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The database name component of the object qualifier must be the name of the current database.
	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:262)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1632)
	at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:602)
	at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:524)
	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7418)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:3274)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:247)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:222)
	at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQueryInternal(SQLServerPreparedStatement.java:460)
	at com.microsoft.sqlserver.jdbc.SQLServerDatabaseMetaData.getResultSetFromStoredProc(SQLServerDatabaseMetaData.java:354)
	at com.microsoft.sqlserver.jdbc.SQLServerDatabaseMetaData.getResultSetWithProvidedColumnNames(SQLServerDatabaseMetaData.java:366)
	at com.microsoft.sqlserver.jdbc.SQLServerDatabaseMetaData.getTables(SQLServerDatabaseMetaData.java:549)
	at org.apache.commons.dbcp2.DelegatingDatabaseMetaData.getTables(DelegatingDatabaseMetaData.java:902)
	at org.apache.commons.dbcp2.DelegatingDatabaseMetaData.getTables(DelegatingDatabaseMetaData.java:902)
	at org.sonar.db.DatabaseUtils.doTableExists(DatabaseUtils.java:301)
	... 17 common frames omitted
2021.03.01 16:28:23 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9004
2021.03.01 16:28:23 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process

Hi,

Welcome to the community!

Your real error is here:

This indicates a problem with your database connection configurations.

 
HTH,
Ann