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

[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]

Welcome to our community! :smiley:

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 :slight_smile:

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?

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

1 Like

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

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