Initiating requested restart using service – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when Elasticsearch is attempting to restart using a service, possibly due to a configuration change or a system issue. This is not necessarily an error, but an informational message indicating a restart process. However, if the restart is not intentional or is happening frequently, it could indicate a problem. To resolve this, check the Elasticsearch logs for any issues leading to the restart. Ensure that the system has enough resources (CPU, memory, disk space). Also, verify the Elasticsearch configuration settings for any misconfigurations.

This guide will help you check for common problems that cause the log ” Initiating requested restart (using service) ” 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 “Initiating requested restart (using service)” classname is TransportNodesRestartAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

             public void run() {
                boolean restartWithWrapper = false;
                if (System.getProperty("elasticsearch-service") != null) {
                    try {
                        Class wrapperManager = settings.getClassLoader().loadClass("org.tanukisoftware.wrapper.WrapperManager");
                        logger.info("Initiating requested restart (using service)");
                        wrapperManager.getMethod("restartAndReturn").invoke(null);
                        restartWithWrapper = true;
                    } catch (Throwable e) {
                        logger.error("failed to initial restart on service wrapper"; e);
                    }




 

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?