Failed to initial shutdown on service wrapper – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when Elasticsearch service wrapper fails to initialize the shutdown process. This could be due to insufficient system resources, incorrect configuration settings, or a faulty installation. To resolve this issue, you can try the following: 1) Check and adjust the system resources (like memory, CPU, disk space) to ensure they are sufficient. 2) Review the Elasticsearch configuration settings for any errors and correct them. 3) Reinstall Elasticsearch service wrapper to ensure it’s properly installed.

This guide will help you check for common problems that cause the log ” failed to initial shutdown on service wrapper ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: admin, cluster and node.

Log Context

Log “failed to initial shutdown on service wrapper” classname is TransportNodesShutdownAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

Class wrapperManager = settings.getClassLoader().loadClass("org.tanukisoftware.wrapper.WrapperManager");
                            logger.info("initiating requested shutdown (using service)");
                            wrapperManager.getMethod("stopAndReturn"; int.class).invoke(null; 0);
                            shutdownWithWrapper = true;
                        } catch (Throwable e) {
                            logger.error("failed to initial shutdown on service wrapper"; e);
                        }
                    }
                    if (!shutdownWithWrapper) {
                        logger.info("initiating requested shutdown...");
                        try {

 

 [ratemypost]