Error adding component template for request was not acknowledged – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.9-7.15

Briefly, this error occurs when Elasticsearch fails to acknowledge the addition of a component template. This could be due to a network issue, a timeout, or an issue with the cluster’s health. To resolve this, you can try increasing the timeout period, ensuring the cluster is healthy, or checking the network connectivity. Additionally, verify the correctness of the component template syntax and ensure that the Elasticsearch version supports the component template feature.

This guide will help you check for common problems that cause the log ” error adding component template [{}] for [{}]; request was not acknowledged ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: template, request, plugin.

Log Context

Log “error adding component template [{}] for [{}]; request was not acknowledged” classname is IndexTemplateRegistry.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                new ActionListener() {
                    @Override
                    public void onResponse(AcknowledgedResponse response) {
                        creationCheck.set(false);
                        if (response.isAcknowledged() == false) {
                            logger.error("error adding component template [{}] for [{}]; request was not acknowledged";
                                templateName; getOrigin());
                        }
                    }

                    @Override

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?