После первого запуска ES в Docker контейнере, ES работает без ошибок:
docker run -d --name elasticsearch -p 9200:9200 -e "bootstrap.system_call_filter=false" \
-e "xpack.security.enabled=false" -e "xpack.graph.enabled=false" -e "xpack.watcher.enabled=false" \
-v /opt/elasticsearch/data/:/usr/share/elasticsearch/data/ \
docker.elastic.co/elasticsearch/elasticsearch:5.3.0
Но после перезапуска ES Docker container, ES выдает ошибки failed to collect data
, IOException
, NoSuchFileException
Связано ли это с тем, что я монтирую директорию /usr/share/elasticsearch/data/
?
[2017-05-19T17:17:39,280][ERROR][o.e.x.m.c.i.IndicesStatsCollector] [hY2F_6j] collector [indices-stats-collector] failed to collect data
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:165) ~[elasticsearch-5.3.0.jar:5.3.0]
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.checkGlobalBlock(TransportIndicesStatsAction.java:70) ~[elasticsearch-5.3.0.jar:5.3.0]
[2017-05-19T17:17:39,583][ERROR][o.e.x.m.c.i.IndexRecoveryCollector] [hY2F_6j] collector [index-recovery-collector] failed to collect data
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:165) ~[elasticsearch-5.3.0.jar:5.3.0]
at org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.checkGlobalBlock(TransportRecoveryAction.java:114) ~[elasticsearch-5.3.0.jar:5.3.0]
[2017-05-19T17:17:44,382][WARN ][r.suppressed ] path: /_xpack/security/_authenticate, params: {index=_xpack, id=_authenticate, type=security}
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:165) ~[elasticsearch-5.3.0.jar:5.3.0]
[2017-05-19T17:18:05,185][WARN ][o.e.g.GatewayAllocator$InternalPrimaryShardAllocator] [hY2F_6j] [packetbeat-2017.05.19][1]: failed to list shard for shard_started on node [hY2F_6j5SvCEfy_mDR-vhg]
org.elasticsearch.action.FailedNodeException: Failed node [hY2F_6j5SvCEfy_mDR-vhg]
at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.onFailure(TransportNodesAction.java:246) [elasticsearch-5.3.0.jar:5.3.0]
Caused by: org.elasticsearch.transport.RemoteTransportException: [hY2F_6j][172.17.0.64:9300][internal:gateway/local/started_shards[n]]
Caused by: org.elasticsearch.ElasticsearchException: failed to load started shards
at org.elasticsearch.gateway.TransportNodesListGatewayStartedShards.nodeOperation(TransportNodesListGatewayStartedShards.java:171) ~[elasticsearch-5.3.0.jar:5.3.0]
Caused by: org.elasticsearch.ElasticsearchException: java.io.IOException: failed to read [id:11, legacy:false, file:/usr/share/elasticsearch/data/nodes/0/indices/Gj09XHKKRFm8-8NXGmUUJg/_state/state-11.st]
at org.elasticsearch.ExceptionsHelper.maybeThrowRuntimeAndSuppress(ExceptionsHelper.java:150) ~[elasticsearch-5.3.0.jar:5.3.0]
Caused by: java.io.IOException: failed to read [id:11, legacy:false, file:/usr/share/elasticsearch/data/nodes/0/indices/Gj09XHKKRFm8-8NXGmUUJg/_state/state-11.st]
at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:327) ~[elasticsearch-5.3.0.jar:5.3.0]
Caused by: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/data/nodes/0/indices/Gj09XHKKRFm8-8NXGmUUJg/_state/state-11.st
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:?]
[2017-05-19T17:19:19,726][WARN ][o.e.x.m.MonitoringService] [hY2F_6j] monitoring execution failed
org.elasticsearch.xpack.monitoring.exporter.ExportException: Exception when closing export bulk
at org.elasticsearch.xpack.monitoring.exporter.ExportBulk$1$1.<init>(ExportBulk.java:106) ~[?:?]