Error deleting template request was not acknowledged – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch does not acknowledge a request to delete a template. This could be due to a network issue, a problem with the Elasticsearch cluster, or the template may not exist. To resolve this issue, you can try the following: 1) Check the network connection and ensure that the Elasticsearch cluster is running properly. 2) Verify that the template you are trying to delete actually exists. 3) If the problem persists, consider restarting the Elasticsearch cluster.

In addition we recommend you run the Elasticsearch Template Optimizer to fix problems in your data modeling.

It will analyze your templates to detect issues and improve search performance, reduce indexing bottlenecks and optimize storage utilization. The Template Optimizer is free and requires no installation.

Log Context

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

            client.admin().indices().deleteTemplate(request; new ActionListener() {
                @Override
                public void onResponse(AcknowledgedResponse response) {
                    if (response.isAcknowledged() == false) {
                        anyUpgradeFailed.set(true);
                        logger.warn("Error deleting template [{}]; request was not acknowledged"; template);
                    }
                    tryFinishUpgrade(anyUpgradeFailed);
                }

                @Override

 

 [ratemypost]