Hello
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube : 10.0.0.68432, docker image bitnami/sonarqube:10.0.0-debian-11-r0
Scanner : docker image sonarsource/sonar-scanner-cli:latest
(4.8.0 at time of writing)
Orchestration and authentication with gitlab-ce, everything hosted in a kubernetes cluster, deployed with bitnami’s helm chart.
Fresh install (database is postgresql, deployed with helm chart’s depencencies), installed french locals plugin trough admin
- what are you trying to achieve
Just trying to use Sonarqube
- what have you tried so far to achieve this
I have many frontend “server errors”, with backend logs like :
[has_child] no join field has been configured
or
[has_parent] no join field has been configured
When I had the has_child
error, I saw this kind of problems could be resolved by deleting Elasticsearch data and restarting the container. In the case of the bitnami image, folder is /opt/bitnami/sonarqube/data/es8
.
Then I ran successfully a scan, but when I would like to browse result, I had has_parent
errors.
I retried the above workaround (delete + restart), but error is persistent.
The last log line :
Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [http://localhost:9001], URI [/issues/_search?typed_keys=true&max_concurrent_shard_requests=5&search_type=query_then_fetch&batched_reduce_size=512], status line [HTTP/1.1 400 Bad Request]
{"error":{"root_cause":[{"type":"query_shard_exception","reason":"[has_parent] no join field has been configured","index_uuid":"t0nqHJ7_QfqDFsQCpK5Dow","index":"issues"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"issues","node":"hF2s9Je0Tz-KUj1SyOoZ2A","reason":{"type":"query_shard_exception","reason":"[has_parent] no join field has been configured","index_uuid":"t0nqHJ7_QfqDFsQCpK5Dow","index":"issues"}}]},"status":400}
Is there a way to curl to elasticsearch the right index/mapping configuration to fix these errors ?