# Error on cluster downsizing if the master node is stopped

**URL:** <https://discuss.elastic.co/t/error-on-cluster-downsizing-if-the-master-node-is-stopped/195766>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [August 19, 2019, 3:29pm UTC](https://discuss.elastic.co/t/error-on-cluster-downsizing-if-the-master-node-is-stopped/195766 "2019-08-19T15:29:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gboanea](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@gboanea](https://discuss.elastic.co/u/gboanea)\
**Post date:** [August 19, 2019, 3:29pm UTC](https://discuss.elastic.co/t/error-on-cluster-downsizing-if-the-master-node-is-stopped/195766/1 "2019-08-19T15:29:58Z")

</div>

Hi,

I am using the quickstart steps from: [https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html).

I am using EKS 1.13.

If I upgrade to 3 nodes and then go back to 2 nodes, if the node that is shut down the master node is, then I can see the following error:

{"type": "server", "timestamp": "2019-08-19T14:24:40,552+0000", "level": "ERROR", "component": "o.e.x.s.a.TokenService", "cluster.name": "quickstart", "node.name": "quickstart-es-bsdgq9mjrx", "cluster.uuid": "IpkatT\_qTaqok3H0pIiqRQ", "node.id": "EppdBoAFT2ajg5hrLwba5g", "message": "unable to install token metadata" ,  
"stacktrace": ["org.elasticsearch.cluster.NotMasterException: no longer master. source: [install-token-metadata]"] }

In the tab where 'kubectl port-forward service/quickstart-es-http 9200' is started:

E0819 17:15:44.177539 84646 portforward.go:362] error creating forwarding stream for port 9200 -\> 9200: Timeout occured  
Handling connection for 9200

The curl commands end with:  
curl: (35) LibreSSL SSL\_connect: SSL\_ERROR\_SYSCALL in connection to localhost:9200

The problem occurs only if the master node is shut down at resizing.

If I restart 'kubectl port-forward service/quickstart-es-http 9200' everything works again.

Is this a problem on my side?

Thank you,  
Georgeta

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [September 12, 2019, 12:51pm UTC](https://discuss.elastic.co/t/error-on-cluster-downsizing-if-the-master-node-is-stopped/195766/2 "2019-09-12T12:51:25Z")

</div>

Hi Georgeta,

> [@gboanea](#):
>
> If I restart 'kubectl port-forward service/quickstart-es-http 9200' everything works again.

This is indeed kubectl port-forward behaviour: it binds to a pod, if that pods goes down, you need to restart the port-forward command.

Does your cluster go back to a healthy state after a few seconds? Killing the master node on Elasticsearch v6.X may lead to longer unavailability, compared to Elasticsearch 7.X.

---

<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:** [November 4, 2022, 7:21am UTC](https://discuss.elastic.co/t/error-on-cluster-downsizing-if-the-master-node-is-stopped/195766/3 "2022-11-04T07:21:55Z")

</div>


