Briefly, this error occurs when you’re using an older version of Elasticsearch that still has an expiration date for basic licenses. From version 6.3.0 onwards, basic licenses in Elasticsearch do not expire. To resolve this issue, you can either upgrade your Elasticsearch to a version that supports non-expiring basic licenses or you can renew your basic license if you prefer to stick with your current version. Please note that upgrading is the recommended solution as it comes with additional features and improvements.
This guide will help you check for common problems that cause the log ” Existing basic license has an expiration. Basic licenses no longer expire. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: license, plugin.
Log Context
Log “Existing basic license has an expiration. Basic licenses no longer expire.” classname is StartupSelfGeneratedLicenseTask.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
private ClusterState extendBasic(ClusterState currentState; LicensesMetadata currentLicenseMetadata) { License license = currentLicenseMetadata.getLicense(); Metadata.Builder mdBuilder = Metadata.builder(currentState.metadata()); LicensesMetadata newLicenseMetadata = createBasicLicenseFromExistingLicense(currentLicenseMetadata); mdBuilder.putCustom(LicensesMetadata.TYPE; newLicenseMetadata); logger.info("Existing basic license has an expiration. Basic licenses no longer expire." + "Regenerating license.\n\nOld license:\n {}\n\n New license:\n{}"; license; newLicenseMetadata.getLicense()); return ClusterState.builder(currentState).metadata(mdBuilder).build(); } private LicensesMetadata createBasicLicenseFromExistingLicense(LicensesMetadata currentLicenseMetadata) {
[ratemypost]