Is no longer supported elasticsearch yml must be placed in the config directory and cannot be renamed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when the Elasticsearch configuration file (elasticsearch.yml) is either not located in the correct directory or has been renamed. Elasticsearch requires this file to be in the config directory and retain its original name for proper functioning. To resolve this issue, ensure that the elasticsearch.yml file is placed in the config directory and has not been renamed. If the file is missing, you may need to reinstall Elasticsearch or restore the file from a backup.

This guide will help you check for common problems that cause the log ” {} is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: bootstrap.

Log Context

Log “{} is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed.” classname is Bootstrap.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

}

    private static void checkUnsetAndMaybeExit(String confFileSetting; String settingName) {
        if (confFileSetting != null && confFileSetting.isEmpty() == false) {
            ESLogger logger = Loggers.getLogger(Bootstrap.class);
            logger.info("{} is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed."; settingName);
            exit(1);
        }
    }

    
SuppressForbidden(reason = "Allowed to exit explicitly in bootstrap phase")

 

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?