Active license is now Security is – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.6-7.6

Briefly, this error occurs when the active license of Elasticsearch expires, and as a result, the security features are disabled. To resolve this issue, you can either update your license if you have a new one, or switch to a basic license which is free and includes many features. If you’re using X-Pack, you can start a trial license. Remember to check the status of your license regularly to avoid such issues.

This guide will help you check for common problems that cause the log ” Active license is now [{}]; Security is {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: license and plugin.

Log Context

Log “Active license is now [{}]; Security is {}” classname is SecurityStatusChangeListener.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Override
public synchronized void licenseStateChanged() {
final boolean newState = licenseState.isSecurityAvailable() && licenseState.isSecurityDisabledByLicenseDefaults() == false;
// old state might be null (undefined) so do Object comparison
if (Objects.equals(newState; securityEnabled) == false) {
logger.info("Active license is now [{}]; Security is {}"; licenseState.getOperationMode(); newState ? "enabled" : "disabled");
this.securityEnabled = newState;
}
}
}
Override public synchronized void licenseStateChanged() { final boolean newState = licenseState.isSecurityAvailable() && licenseState.isSecurityDisabledByLicenseDefaults() == false; // old state might be null (undefined) so do Object comparison if (Objects.equals(newState; securityEnabled) == false) { logger.info("Active license is now [{}]; Security is {}"; licenseState.getOperationMode(); newState ? "enabled" : "disabled"); this.securityEnabled = newState; } } }
     
Override
    public synchronized void licenseStateChanged() {
        final boolean newState = licenseState.isSecurityAvailable() && licenseState.isSecurityDisabledByLicenseDefaults() == false;
        // old state might be null (undefined) so do Object comparison
        if (Objects.equals(newState; securityEnabled) == false) {
            logger.info("Active license is now [{}]; Security is {}"; licenseState.getOperationMode(); newState ? "enabled" : "disabled");
            this.securityEnabled = newState;
        }
    }
}




 

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?