# Failed to set monitoring pipeline

**URL:** <https://discuss.elastic.co/t/failed-to-set-monitoring-pipeline/309346>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, docker\
**Created:** [July 11, 2022, 4:28pm UTC](https://discuss.elastic.co/t/failed-to-set-monitoring-pipeline/309346 "2022-07-11T16:28:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pabloochoa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pabloochoa/32/101377_2.png) [@pabloochoa](https://discuss.elastic.co/u/pabloochoa)\
**Post date:** [July 11, 2022, 4:28pm UTC](https://discuss.elastic.co/t/failed-to-set-monitoring-pipeline/309346/1 "2022-07-11T16:28:05Z")

</div>

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:

```auto
{"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) [?:?]"] }

```

```auto
{"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!

---

<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:** [August 8, 2022, 4:28pm UTC](https://discuss.elastic.co/t/failed-to-set-monitoring-pipeline/309346/2 "2022-08-08T16:28:11Z")

</div>

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