Error adding watcher index lifecycle policy request was not acknowledged – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7-7.1

Briefly, this error occurs when Elasticsearch fails to acknowledge the addition of a new index lifecycle policy, possibly due to a network issue, insufficient permissions, or a problem with the policy itself. To resolve this, ensure that the Elasticsearch cluster is reachable and functioning properly. Check if the user has the necessary permissions to add a lifecycle policy. Lastly, validate the lifecycle policy to ensure it’s correctly formatted and doesn’t contain any errors.

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

Log Context

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

                new ActionListener() {
                    @Override
                    public void onResponse(PutLifecycleAction.Response response) {
                        creationCheck.set(false);
                        if (response.isAcknowledged() == false) {
                            logger.error("error adding watcher index lifecycle policy [{}]; request was not acknowledged";
                                policy.getName());
                        }
                    }

                    @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?