Error adding composable 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 composable template. This could be due to a variety of reasons such as incorrect template syntax, insufficient permissions, or network issues. To resolve this, ensure that the template syntax is correct and that the user has the necessary permissions to add templates. Also, check the network connection between the client and the Elasticsearch server. If the problem persists, consider checking the Elasticsearch logs for more detailed error information.

This guide will help you check for common problems that cause the log ” error adding composable 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 composable 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 composable 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?