The issue comes from there not being enough disk space available on your machine.
es.log
2024.03.19 17:13:52 WARN es[o.e.c.r.a.DiskThresholdMonitor] flood stage disk watermark [95%] exceeded on [WYF7JC-mT6uch6kXSgp3Bw][sonarqube][/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/data/es8] free: 20.3gb[4.3%], all indices on this node will be marked read-only
You need to free up some disk space, and possibly delete the data/es8 folder before starting up again.
Yes, this can seem a bit ridiculous on large harddrives, but this is Elasticsearch’s requirements, not ours.
had not reduced to 90% but still the same error how much do i need to have space for Elasticsearch’s at the moment free space is
2024.04.04 01:49:16 WARN es[o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [hVoGPtvEQwO86fqGbf2TAg][sonarqube][/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/data/es8] free: 27.6gb[5.9%], 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