Failing license installation

Elasticsearch version:
7.17.9
Server OS version:
CentOS Linux release 8.5.2111
Search Guard version:
53.6.0

When trying to install the license using sgadmin, it fails with:
FAIL: Expected 7 config types for node XXXX but got 0 () due to: Invalid license: java.lang.IllegalArgumentException: No enum constant com.floragunn.searchguard.configuration.SearchGuardLicense.Type.SME-1

And in the logs:

[2023-03-31T12:42:22,898][ERROR][c.f.s.a.c.TransportConfigUpdateAction] [enclave] Invalid license
java.lang.IllegalArgumentException: No enum constant com.floragunn.searchguard.configuration.SearchGuardLicense.Type.SME-1
at java.lang.Enum.valueOf(Enum.java:274) ~[?:?]
at com.floragunn.searchguard.configuration.SearchGuardLicense$Type.valueOf(SearchGuardLicense.java:287) ~[search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at com.floragunn.searchguard.configuration.SearchGuardLicense.(SearchGuardLicense.java:124) ~[search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at com.floragunn.searchguard.action.configupdate.TransportConfigUpdateAction.nodeOperation(TransportConfigUpdateAction.java:122) [search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at com.floragunn.searchguard.action.configupdate.TransportConfigUpdateAction.nodeOperation(TransportConfigUpdateAction.java:49) [search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at org.elasticsearch.action.support.nodes.TransportNodesAction.nodeOperation(TransportNodesAction.java:192) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:333) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:327) [elasticsearch-7.17.9.jar:7.17.9]
at com.floragunn.searchguard.ssl.transport.SearchGuardSSLRequestHandler.messageReceivedDecorate(SearchGuardSSLRequestHandler.java:164) [search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at com.floragunn.searchguard.transport.SearchGuardRequestHandler.messageReceivedDecorate(SearchGuardRequestHandler.java:150) [search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at com.floragunn.searchguard.ssl.transport.SearchGuardSSLRequestHandler.messageReceived(SearchGuardSSLRequestHandler.java:86) [search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at com.floragunn.searchguard.SearchGuardPlugin$7.lambda$interceptHandler$0(SearchGuardPlugin.java:690) [search-guard-suite-security-7.17.9-53.6.0.jar:7.17.9-53.6.0]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:67) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:1045) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:777) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-7.17.9.jar:7.17.9]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) [?:?]
at java.lang.Thread.run(Thread.java:1589) [?:?]

@fbacchella Have you tried to upload the license using Kibana UI?

If you purchased Search Guard support services with the license, you could try to open the case in the SG support portal.

Same result.

Hi @fbacchella we’ll review your license key - please see (and reply to) my recent DM

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.