# Elasticsearch plugin is red - possible master node problem?

**URL:** https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617
**Category:** Elasticsearch
**Created:** [November 29, 2017, 3:20pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617 "2017-11-29T15:20:36Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![zaddsters](https://avatars.discourse-cdn.com/v4/letter/z/b5ac83/32.png) [@zaddsters](https://discuss.elastic.co/u/zaddsters)
#### Post date: [November 29, 2017, 3:20pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/1 "2017-11-29T15:20:37Z")

</div>

I have installed Elasticsearch 5.51 and Kibana 5.51 and I am now getting an Elasticsearch plugin is red error message

screenshot from 2017-11-29 14-37-18

The Elasticsearch logs mention - not enough master nodes discovered, I have 4 nodes and one master --

at java.lang.Thread.run(Thread.java:748) [?:1.8.0\_141]  
[2017-11-29T14:23:41,899][WARN][o.e.d.z.ZenDiscovery] [elasticsearch-logging-0] not enough master nodes discovered during pinging (found [[Candidate{node={elasticsearch-logging-0}{2vy6rZTLR7CZIi6wbRZj0Q}{tUNcsm31SVyMKVoZJc7BTA}{100.96.4.6}{100.96.4.6:9300}{ml.enabled=true}, clusterStateVersion=-1}]], but needed [2]), pinging again  
[2017-11-29T14:23:43,417][WARN][r.suppressed] path: /.reporting-/esqueue/\_search, params: {index=.reporting-, type=esqueue, version=true}  
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.5.1.jar:5.5.1]  
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedRaiseException(ClusterBlocks.java:151) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:255) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:186) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:65) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:170) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:142) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:84) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:535) ~[elasticsearch-5.5.1.jar:5.5.1]  
at org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$1(RestSearchAction.java:78) ~[elasticsearch-5.5.1.jar:5.5.1]

---

<div class="post-metadata">

### Author: ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)
#### Post date: [November 29, 2017, 7:05pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/2 "2017-11-29T19:05:50Z")

</div>

Hi Zaddsters,

Apparently this problem is related with discovered during pinging, that is, node data could not find out node master.  
What is the configuration file of the nodes ?

Ping between nodes responds ?  
Telnet on port 9300 between nodes responds ?

---

<div class="post-metadata">

### Author: ![zaddsters](https://avatars.discourse-cdn.com/v4/letter/z/b5ac83/32.png) [@zaddsters](https://discuss.elastic.co/u/zaddsters)
#### Post date: [November 30, 2017, 12:51pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/3 "2017-11-30T12:51:41Z")

</div>

Thanks for getting back - I am able to log into the master and ping other  
pods. I have also checked that I can ping from pods. However I can not  
telnet to port 9300 or 9200 between nodes.

I have installed Elasticsearch, Fluentd and Kibana - all the resources  
appear to be running. There is a service for Elasticsearch and a  
loadbalancer for kibana.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8ed80b3d879f27cb08334e801a0c1572124b33e2.png)

This is the error I am getting in Kibanna --

 ![Screenshot from 2017-11-30 13-06-28](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9d92e65f61c6a6fd68af122adb1c168466e920f0.png)

---

<div class="post-metadata">

### Author: ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)
#### Post date: [November 30, 2017, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/4 "2017-11-30T13:01:11Z")

</div>

Do you have a standard firewall installed which could be blocking port 9300? I know when I install a fresh node I have to run iptables --flush before it will join the cluster.

---

<div class="post-metadata">

### Author: ![zaddsters](https://avatars.discourse-cdn.com/v4/letter/z/b5ac83/32.png) [@zaddsters](https://discuss.elastic.co/u/zaddsters)
#### Post date: [November 30, 2017, 1:37pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/5 "2017-11-30T13:37:28Z")

</div>

Thanks for getting back - I am running kubernetes on AWS so this would be through security groups. I have current set this to permissive so shouldn't be causing a problem.

---

<div class="post-metadata">

### Author: ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)
#### Post date: [November 30, 2017, 1:39pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/6 "2017-11-30T13:39:57Z")

</div>

Can you post the contents of your elasticsearch.yml file to here please? Redact anything sensitive.

---

<div class="post-metadata">

### Author: ![zaddsters](https://avatars.discourse-cdn.com/v4/letter/z/b5ac83/32.png) [@zaddsters](https://discuss.elastic.co/u/zaddsters)
#### Post date: [November 30, 2017, 1:47pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/7 "2017-11-30T13:47:02Z")

</div>

This is the elasticsearch.yaml

# RBAC authn and authz

## apiVersion: v1 kind: ServiceAccount metadata: name: elasticsearch-logging namespace: kube-system labels: k8s-app: elasticsearch-logging [kubernetes.io/cluster-service:](http://kubernetes.io/cluster-service:) "true" [addonmanager.kubernetes.io/mode:](http://addonmanager.kubernetes.io/mode:) Reconcile

kind: ClusterRole  
apiVersion: [rbac.authorization.k8s.io/v1beta1](http://rbac.authorization.k8s.io/v1beta1)  
metadata:  
name: elasticsearch-logging  
labels:  
k8s-app: elasticsearch-logging  
[kubernetes.io/cluster-service:](http://kubernetes.io/cluster-service:) "true"  
[addonmanager.kubernetes.io/mode:](http://addonmanager.kubernetes.io/mode:) Reconcile  
rules:

- apiGroups:
  - ""  
resources:
  - "services"
  - "namespaces"
  - "endpoints"  
verbs:
  - "get"

* * *

kind: ClusterRoleBinding  
apiVersion: [rbac.authorization.k8s.io/v1beta1](http://rbac.authorization.k8s.io/v1beta1)  
metadata:  
namespace: kube-system  
name: elasticsearch-logging  
labels:  
k8s-app: elasticsearch-logging  
[kubernetes.io/cluster-service:](http://kubernetes.io/cluster-service:) "true"  
[addonmanager.kubernetes.io/mode:](http://addonmanager.kubernetes.io/mode:) Reconcile  
subjects:

- kind: ServiceAccount  
name: elasticsearch-logging  
namespace: kube-system  
apiGroup: ""  
roleRef:  
kind: ClusterRole  
name: elasticsearch-logging  
apiGroup: ""

* * *

# Elasticsearch deployment itself

apiVersion: apps/v1beta1  
kind: StatefulSet  
metadata:  
name: elasticsearch-logging  
namespace: kube-system  
labels:  
k8s-app: elasticsearch-logging  
version: v5.5.1  
[kubernetes.io/cluster-service:](http://kubernetes.io/cluster-service:) "true"  
[addonmanager.kubernetes.io/mode:](http://addonmanager.kubernetes.io/mode:) Reconcile  
spec:  
serviceName: elasticsearch-logging  
replicas: 1  
selector:  
matchLabels:  
k8s-app: elasticsearch-logging  
version: v5.5.1  
template:  
metadata:  
labels:  
k8s-app: elasticsearch-logging  
version: v5.5.1  
[kubernetes.io/cluster-service:](http://kubernetes.io/cluster-service:) "true"  
spec:  
serviceAccountName: elasticsearch-logging  
containers:  
- image: [gcr.io/google-containers/elasticsearch:v5.5.1-1](http://gcr.io/google-containers/elasticsearch:v5.5.1-1)  
name: elasticsearch-logging  
resources:  
# need more cpu upon initialization, therefore burstable class  
limits:  
cpu: 1000m  
memory: 2.5Gi  
requests:  
memory: 1Gi  
cpu: 100m  
ports:  
- containerPort: 9200  
name: db  
protocol: TCP  
- containerPort: 9300  
name: transport  
protocol: TCP  
volumeMounts:  
- name: es-storage  
mountPath: /data  
env:  
- name: "NAMESPACE"  
valueFrom:  
fieldRef:  
fieldPath: metadata.namespace  
- name: "ES\_JAVA\_OPTS"  
value: "-XX:-AssumeMP"  
# Elasticsearch requires vm.max\_map\_count to be at least 262144.  
# If your OS already sets up this number to a higher value, feel free  
# to remove this init container.  
initContainers:  
- image: alpine:3.6  
command: ["/sbin/sysctl", "-w", "vm.max\_map\_count=262144"]  
name: elasticsearch-logging-init  
securityContext:  
privileged: true  
volumeClaimTemplates:

- metadata:  
name: es-storage  
spec:  
accessModes: ["ReadWriteOnce"]  
storageClassName: standard  
resources:  
requests:  
storage: 8Gi

---

<div class="post-metadata">

### Author: ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)
#### Post date: [November 30, 2017, 2:14pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/9 "2017-11-30T14:14:08Z")

</div>

That looks more like the Kubernetes configuration, rather than the actual configuration for the elasticsearch node running inside it. Elastic search is clearly looking for more than just one master node, although you state you only have one master node built. So you either have to tell elasticsearch to look for just one node (which is defined inside the elasticsearch.yml file), or build a couple more master nodes for this cluster. I'm sorry but I'm not familiar with Kubernetes and how it works, i'm used to just plain old ES running on bare metal servers.

---

<div class="post-metadata">

### Author: ![zaddsters](https://avatars.discourse-cdn.com/v4/letter/z/b5ac83/32.png) [@zaddsters](https://discuss.elastic.co/u/zaddsters)
#### Post date: [November 30, 2017, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/10 "2017-11-30T14:36:25Z")

</div>

Ok - I'll try creating another mater node and hopefully that should solve the problem.

---

<div class="post-metadata">

### Author: ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)
#### Post date: [November 30, 2017, 2:55pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/11 "2017-11-30T14:55:41Z")

</div>

You'll need at least another 2 master nodes, so three in total.

---

<div class="post-metadata">

### Author: ![zaddsters](https://avatars.discourse-cdn.com/v4/letter/z/b5ac83/32.png) [@zaddsters](https://discuss.elastic.co/u/zaddsters)
#### Post date: [November 30, 2017, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/12 "2017-11-30T15:02:39Z")

</div>

Is there a way to change the setting of elasticsearch so that it only looks for 1 master ?

---

<div class="post-metadata">

### Author: ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)
#### Post date: [November 30, 2017, 3:42pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/13 "2017-11-30T15:42:04Z")

</div>

Have a read of this section, it explians how to set the minimum master count. Not sure whether it allows setting to 1 when you have multiple data nodes, but you can try.

[https://www.elastic.co/guide/en/elasticsearch/reference/6.0/important-settings.html#minimum\_master\_nodes](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/important-settings.html#minimum_master_nodes)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 28, 2017, 3:42pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617/14 "2017-12-28T15:42:10Z")

</div>

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