org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed in Spring Boot

First of all sorry if i missed something.
Actually i'm new in elasticsearch.
Now comes to the point, I'm working on spring boot project built via jhipster.
In which, I specify index name "Document" with following configuration

@Document(indexName = "document", shards = 1, replicas = 0)

It's working on start but after insert 10-15 data i got the above error. This issue occur lot many time. I'm not able to find out where is the problem or if it's related to size then how to increse size of shard or segment.

Following are snep of error which i got,

In Spring Boot,

020-04-30 16:18:27.458 ERROR 15124 --- [ XNIO-1 task-19] c.g.v.s.jest.mapper.DefaultErrorMapper : Cannot execute jest action , response code : 503 , error : {"root_cause":,"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":} , message : null

java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been exported.
at jdk.management.agent/sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:114)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:394)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:366)
at java.base/java.lang.Thread.run(Thread.java:834)

In Docker log,

[document][0] failed engine [translog trimming failed]
java.nio.file.NoSuchFileException: /usr/share/elasticsearch/data/nodes/0/indices/uThDERJkSBqSv4dFGMJDMQ/0/translog/translog-12.tlog

Translog file is not that location. Why this error occur after this many record inserted.

Docker Image File :

Elasticsearch.yml

version: '2.2'
services:
docy-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.6
container_name: docy-elasticsearch
volumes:
- ../../../../docy_config/ELK_Data/data/:/usr/share/elasticsearch/data/
ports:
- 9200:9200
- 9300:9300
restart: always
environment:
- cluster.name=docker-cluster
- xpack.security.enabled=false
- bootstrap.memory_lock=false
- ES_JAVA_OPTS=-Xms1024m -Xmx1024m
- discovery.type=single-node
- xpack.monitoring.enabled=false
- xpack.monitoring.collection.enabled=false
- xpack.monitoring.elasticsearch.collection.enabled=false
- xpack.ml.enabled=true
- xpack.graph.enabled=true
- xpack.watcher.enabled=true
- number_of_replicas=0
- xpack.monitoring.collection.indices=document, user
- SPRING_DATA_JEST_URI=http://docy-elasticsearch:9200/

Kibana.yml

version: '2'
services:
docy-kibana:
image: docker.elastic.co/kibana/kibana:6.8.6
container_name: docy-kibana
ports:
- 5601:5601
restart: always
environment:
- ELASTICSEARCH_URL=http://docy-elasticsearch:9200/
- xpack.monitoring.enabled=true
- xpack.monitoring.ui.container.elasticsearch.enabled=true
- xpack.monitoring.collection.enabled=true

Can someone please guide me?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.