We are using Sonarqube Developer Edition deployed on Docker.
And each time we run a PR revision we get a fail status with the error Fail to execute es requestES refresh request on indices ‘issues’.
Here I leave both es and ce.log files. And the docker-compose Im using when setting everything up. I already tried some solutions that saw in the community for similar errors but this ones doesn’t look like the same issue.
2025.04.24 19:37:36 WARN es[][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [AYDmnB1ATcGQVYeEKOXaCg][sonarqube][/opt/sonarqube/data/es8] free: 728.6mb[7.3%], 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
2025.04.24 19:39:06 WARN es[][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [AYDmnB1ATcGQVYeEKOXaCg][sonarqube][/opt/sonarqube/data/es8] free: 728.5mb[7.3%], 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
2025.04.24 19:40:06 WARN es[][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [AYDmnB1ATcGQVYeEKOXaCg][sonarqube][/opt/sonarqube/data/es8] free: 728.5mb[7.3%], 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
2025.04.24 19:41:06 WARN es[][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [AYDmnB1ATcGQVYeEKOXaCg][sonarqube][/opt/sonarqube/data/es8] free: 721.3mb[7.3%], 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
Hi Ann. It was because we had few disk space left. But I already added more space and we don’t have that warning anymore, but the ElasticSearch error keeps happening.
Now looks like we have a new error from yesterday but nothing at the moment of the code inspection (a few minutes ago)
On ce.log is possible to see the error org.sonar.server.es.ElasticsearchException: Fail to execute es requestES refresh request on indices 'issues'
Your es.log indicates that Elasticsearch isn’t running. The log you posted starts with errors. What comes before that? Are you still getting the “low disk watermark” logging?
es.log (565.1 KB)
Here it’s the full log file.
No more low disk watermark after I resized the disk from the VM where the container is running.
Runs keep failing with the same error on ce.log but no new logs showing up on es.log for the last 4 days.
Yes I had to restart the VM so the resizing made effect. I just built the docker image again and now I cant see any error or warning in es.log but the error is still the same in ce.log: ce.log (20.1 KB) es.log (11.4 KB)
Any suggestion of what we can do? Thanks for all the help
These two logs don’t match in terms of timestamps. es.log ends at 2025.04.28 14:14:44 INFO, while your ce.log errors don’t start until 6 minutes later: 2025.04.28 14:20:09 ERROR.
ce starts with 2025.04.28 14:13:17 INFO ce[][o.s.p.ProcessEntryPoint] Gracefully stopping process
and es starts with 2025.04.28 14:13:18 INFO es[][o.e.n.Node] stopping ...
The difference between both is only 1 second.
The es file I sent is up to date. It ends with the log:
2025.04.28 14:14:44 INFO es[][o.e.c.r.a.AllocationService] current.health="GREEN" message="Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]]])." previous.health="RED" reason="shards started [[metadatas][0]]"
And nothing else was logged after that, not even during the Execution of task (14:20 as you said).
Both files were downloaded from the folder: docker exec -t sonarqube cat /opt/sonarqube/logs/es.log
Everything looks normal except from one log on web.log today at 7:44. We weren’t using the instance at that moment so I suppose is something from the image.
Looks like that. What would you recommend doing? Going to a previos version of the docker sonarqube:developer image?
I looked at all the issues here in the community regarding elastic search indexes error and didn’t found anything like my problem