Elastic search shard - sonarqube stops

after executing start.sh, sonarqube starts for few seconds and stops. I get the webpage with json for few seconds.

es[o.e.c.r.a.AllocationService] current.health=“RED” message=“Cluster health status changed from [YELLOW] to [RED] (reason: [reconcile-desired-balance]).” previous.health=“YELLOW” reason=“reconcile-desired-balance”
2023.09.22 15:46:34 WARN es[o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [jrHC3PxFQgSplMbZWu5ScA][sonarqube][/Users/user1/Documents/sonarqube-10.2.0.77647/data/es8] free: 39.9gb[8.6%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
2023.09.22 15:47:09 INFO es[o.e.c.m.MetadataMappingService] [metadatas/hIv2JSuAQV6sNCDlp5bPxQ] create_mapping
2023.09.22 15:47:34 WARN es[o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [jrHC3PxFQgSplMbZWu5ScA][sonarqube][/Users/user1/Documents/sonarqube-10.2.0.77647/data/es8] free: 39.9gb[8.6%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
2023.09.22 15:47:39 WARN es[r.suppressed] path: /metadatas/_doc/dbVendor, params: {stored_fields=value, index=metadatas, id=dbVendor}

Hey there.

This is about free diskspace on the server hosting SonarQube. And while 39.9 would seem to be plenty of free filespace, unfortunately, this works on percentages. So you’ll need to free up a little more filespace - I think the 10% free mark is what you need to hit. And then restart SonarQube. The indices will automatically be unlocked when you do.