# Getting NodeClosedException while running the ES 6.8.14 through the systemctl start elasticsearch.service custom made for the zip installable ES

**URL:** <https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399>\
**Category:** Elasticsearch\
**Created:** [April 7, 2021, 4:37am UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399 "2021-04-07T04:37:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_raj\_khurdhara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amit_raj_khurdhara/32/86671_2.png) [@Amit\_raj\_khurdhara](https://discuss.elastic.co/u/Amit_raj_khurdhara)\
**Post date:** [April 7, 2021, 4:37am UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399/1 "2021-04-07T04:37:43Z")

</div>

[2021-04-06T17:45:52,825][WARN][o.e.x.m.e.l.LocalExporter] [FN06jOJ] unexpected error while indexing monitoring document  
org.elasticsearch.xpack.monitoring.exporter.ExportException: NodeClosedException[node closed {FN06jOJ}{FN06jOJuTemYyrzI3gKYSw}{0LzyBJzMSem-GlfTMgkAww}{127.0.0.1}{127.0.0.1:9300}{ml.machine\_memory=16826740736, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}]  
at org.elasticsearch.xpack.monitoring.exporter.local.LocalBulk.lambda$throwExportException$2(LocalBulk.java:125) ~[?:?]  
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0\_201]  
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0\_201]  
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0\_201]  
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0\_201]  
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0\_201]  
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0\_201]  
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0\_201]  
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0\_201]  
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0\_201]  
at org.elasticsearch.xpack.monitoring.exporter.local.LocalBulk.throwExportException(LocalBulk.java:126) ~[?:?]  
at org.elasticsearch.xpack.monitoring.exporter.local.LocalBulk.lambda$doFlush$0(LocalBulk.java:108) ~[?:?]  
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:62) ~[elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:43) ~[elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:85) ~[elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:81) ~[elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.bulk.TransportBulkAction$BulkRequestModifier.lambda$wrapActionListenerIfNeeded$0(TransportBulkAction.java:666) ~[elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:62) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.finishHim(TransportBulkAction.java:471) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation$1.onFailure(TransportBulkAction.java:466) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.support.TransportAction$1.onFailure(TransportAction.java:91) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.finishAsFailed(TransportReplicationAction.java:954) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onClusterServiceClose(TransportReplicationAction.java:939) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onClusterServiceClose(ClusterStateObserver.java:315) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onClose(ClusterStateObserver.java:234) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.cluster.service.ClusterApplierService.doStop(ClusterApplierService.java:173) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.common.component.AbstractLifecycleComponent.stop(AbstractLifecycleComponent.java:91) [elasticsearch-6.8.14.jar:6.8.14]  
at org.elasticsearch.cluster.service.ClusterService.doStop(ClusterService.java:123) [elasticsearch-6.8.14.jar:6.8.14]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 7, 2021, 5:06am UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399/2 "2021-04-07T05:06:02Z")

</div>

Welcome to our community! 😃

It's not clear what you are after here. Posting an unformatted log entry doesn't automatically describe what problem you are trying to solve 🙂

---

<div class="post-metadata">

**Author:** ![Amit\_raj\_khurdhara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amit_raj_khurdhara/32/86671_2.png) [@Amit\_raj\_khurdhara](https://discuss.elastic.co/u/Amit_raj_khurdhara)\
**Post date:** [April 7, 2021, 5:10am UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399/3 "2021-04-07T05:10:53Z")

</div>

OKAY Yeah thanks for correcting me. Actually what is happening is like i want to start my elastic search as soon as the Machine got reboot or restart due to any reason. But i have not installed it through the Debian instead i have done so using the zip.

So for this i have create the es.service file and placed it under /etc/systemd/system/ directory and also made a .sh file whilch contains the start command to ES.

But now when i run the .sh file it works fine , but if i do run the same using the systemctl start es.service is gives me above error. not sure why?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 7, 2021, 8:14am UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399/4 "2021-04-07T08:14:44Z")

</div>

Is there a reason you aren't using the package with all of this built in for you?

---

<div class="post-metadata">

**Author:** ![Amit\_raj\_khurdhara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amit_raj_khurdhara/32/86671_2.png) [@Amit\_raj\_khurdhara](https://discuss.elastic.co/u/Amit_raj_khurdhara)\
**Post date:** [April 7, 2021, 10:42am UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399/5 "2021-04-07T10:42:57Z")

</div>

no just sake of our own control on each and every configuration in a single place.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 7, 2021, 9:01pm UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399/6 "2021-04-07T21:01:35Z")

</div>

The above error is not related to anything to do with systemctl.

---

<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:** [May 5, 2021, 9:01pm UTC](https://discuss.elastic.co/t/getting-nodeclosedexception-while-running-the-es-6-8-14-through-the-systemctl-start-elasticsearch-service-custom-made-for-the-zip-installable-es/269399/7 "2021-05-05T21:01:55Z")

</div>

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