Failed to set monitoring pipeline

I am deploying ES v7.16.3 in Docker. I have been deploying ES with this version without mapping /usr/share/elasticsearch/data and haven't been getting errors, but when I have done the mapping I keep getting this errors:

{"type": "server", "timestamp": "2022-07-11T18:14:07,000+02:00", "level": "WARN", "component": "o.e.c.s.MasterService", "cluster.name": "es-cluster", "node.name": "master1", "message": "failing [elected-as-master ([1] nodes joined)[{master1}{ld8MjUG8Sia-hfIoUWO19w}{6XFdaNQTTNWBkhKn2raUKg}{10.0.3.33}{10.0.3.33:9300}{m} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_]]: failed to commit cluster state version [46]",
 "stacktrace": ["org.elasticsearch.cluster.coordination.FailedToCommitClusterStateException: node is no longer master for term 15 while handling publication",
 "at org.elasticsearch.cluster.coordination.Coordinator.publish(Coordinator.java:1328) ~[elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.cluster.service.MasterService.publish(MasterService.java:305) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:287) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.cluster.service.MasterService.access$100(MasterService.java:63) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:170) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:146) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:202) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:262) [elasticsearch-7.16.3.jar:7.16.3]",
 "at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:225) [elasticsearch-7.16.3.jar:7.16.3]",
 "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]",
 "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]",
 "at java.lang.Thread.run(Thread.java:833) [?:?]"] }
{"type": "server", "timestamp": "2022-07-11T18:14:39,861+02:00", "level": "ERROR", "component": "o.e.x.m.e.l.LocalExporter", "cluster.name": "es-cluster", "node.name": "master1", "message": "failed to set monitoring pipeline [xpack_monitoring_7]", "cluster.uuid": "3uBV7vyzTo6fOoTAvORFvg", "node.id": "ld8MjUG8Sia-hfIoUWO19w" , ,
"stacktrace": ["org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (put-pipeline-xpack_monitoring_7) within 30s",,
"at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$0(MasterService.java:158) [elasticsearch-7.16.3.jar:7.16.3]",,
"at java.util.ArrayList.forEach(ArrayList.java:1511) [?:?]",,
"at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$1(MasterService.java:157) [elasticsearch-7.16.3.jar:7.16.3]",,
"at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.16.3.jar:7.16.3]",,
"at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]",,
"at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]",,
"at java.lang.Thread.run(Thread.java:833) [?:?]"] },
{"type": "server", "timestamp": "2022-07-11T18:14:42,838+02:00", "level": "ERROR", "component": "o.e.x.m.e.l.LocalExporter", "cluster.name": "es-cluster", "node.name": "master1", "message": "failed to set monitoring pipeline [xpack_monitoring_6]", "cluster.uuid": "3uBV7vyzTo6fOoTAvORFvg", "node.id": "ld8MjUG8Sia-hfIoUWO19w" , ,
"stacktrace": ["org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (put-pipeline-xpack_monitoring_6) within 30s"

Although ES ends up working and the data nodes end up connecting to the masters, I would appreciate some help in narrowing this error as it doesn't say much to me.

Thanks in advance!

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