In Active Master node. we keep having the logs of below example. This happens to all indices and all files in /var/lib/elasticsearch/nodes/0/indices/...
We are using local disk.
Disk usage is not full.
We tried to use the user "elasticsearch" and we are able to have write permission in /var/lib/elasticsearch
We tried to switch to another Master node, these WARNING logs will then continue to show up in that active Master node.
We tried to check the number of open files, it's lesser than 1000 so will be fine.
We tried to reboot the Master node but it doesn't help.
The cluster is still running fine as of now, it's still able to do the indexing of new data and able to query old data as well. The only impact is that the status of all indices shown in Monitoring page, will show as "Unknown".
Does anyone of you encounter similar problem before? The problem started 2 days ago, although it causes not much of harm but the Elasticsearch logs keep growing (~100GB a day) and we are not able to check the indices status in Monitoring page.
[2018-02-28T08:28:56,372][WARN ][o.e.c.a.s.ShardStateAction] [irlpe-logs-02] [filebeat-varnish-prod-2018.02.27][0] received shard failed for shard id [[filebeat-varnish-prod-2018.02.27][0]], allocation id [QTvqMg5tRginaZfQ6hFbQQ], primary term [0], message [failed to create shard], failure [FileSystemException[/var/lib/elasticsearch/nodes/0/indices/sXlcl4-LT569YnALj5KCxA: Read-only file system]]
java.nio.file.FileSystemException: /var/lib/elasticsearch/nodes/0/indices/sXlcl4-LT569YnALj5KCxA: Read-only file system
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[?:?]
at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_131]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_131]
at java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_131]
at org.elasticsearch.index.store.FsDirectoryService.newDirectory(FsDirectoryService.java:89) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.index.store.Store.(Store.java:159) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.index.IndexService.createShard(IndexService.java:346) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.indices.IndicesService.createShard(IndicesService.java:500) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.indices.IndicesService.createShard(IndicesService.java:148) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createShard(IndicesClusterStateService.java:542) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.indices.cluster.IndicesClusterStateService.createOrUpdateShards(IndicesClusterStateService.java:519) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyClusterState(IndicesClusterStateService.java:204) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cluster.service.ClusterService.callClusterStateAppliers(ClusterService.java:814) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cluster.service.ClusterService.publishAndApplyChanges(ClusterService.java:768) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cluster.service.ClusterService.runTasks(ClusterService.java:587) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cluster.service.ClusterService$ClusterServiceTaskBatcher.run(ClusterService.java:263) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:247) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:210) ~[elasticsearch-5.5.1.jar:5.5.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_131]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Looks like you got a Permission Issue on your Indices folder
Elastic couldn't write into the folder mentioned java.nio.file.FileSystemException: /var/lib/elasticsearch/nodes/0/indices/sXlcl4-LT569YnALj5KCxA: Read-only file system
Could you show me the result of :
"ls -la" or "ls -l" or "ll" for the folder /var/lib/elasticsearch/nodes
and maybe subfolder
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.