SonarQube v7.7(MS -SQL DB) stopping in few seconds

Hello Team,

I am using SonarQube v7.7 and link is up for a while and stop working in just few seconds. here are the logs-

2021.01.21 19:32:17 INFO web[][o.s.s.p.d.m.c.MssqlCharsetHandler] Verify that database collation is case-sensitive and accent-sensitive

2021.01.21 19:32:17 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter [org.sonar.server.ws.WebServiceFilter@45862ca4](mailto:org.sonar.server.ws.WebServiceFilter@45862ca4) [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/properties*, ...]}]

2021.01.21 19:32:17 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000

2021.01.21 19:32:19 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (HTTP proxy: 127.0.0.1:9001:9000)

2021.01.21 19:32:20 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube

org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
    at org.elasticsearch.cluster.block.ClusterBlocks.indexBlockedException(ClusterBlocks.java:183)
    at org.elasticsearch.action.support.replication.TransportReplicationAction.blockExceptions(TransportReplicationAction.java:255)

Hi,

SonarQube 7.7 is past EOL. You should upgrade immediately. Your upgrade path is:

7.9.5 (current LTS) → 8.6 (this step optional)

Beyond that, it appears that you have some sort of permissions issue:

blocked by: [FORBIDDEN/12/index read-only

I would make sure there isn’t some “helpful” background process locking random files that SonarQube needs full access to.

 
HTH,
Ann