Elasticsearch error, after xpack authencation enabled

HI All,
I have enabled the pack for authentication purpose, but error has reported as below.
Cloud you please help in this.

at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:173) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:160) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[elasticsearch-cli-7.17.9.jar:7.17.9]
at org.elasticsearch.cli.Command.main(Command.java:77) ~[elasticsearch-cli-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:125) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ~[elasticsearch-7.17.9.jar:7.17.9]
Caused by: java.lang.IllegalArgumentException: unknown setting [xpack.security.enrollment.enabled] did you mean any of [xpack.security.fips_mode.enabled, xpack.security.dls_fls.enabled, xpack.security.audit.enabled, xpack.security.authc.token.enabled, xpack.security.http.filter.enabled]?
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:561) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:507) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:477) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:447) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:137) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.node.Node.(Node.java:502) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.node.Node.(Node.java:309) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:234) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:169) ~[elasticsearch-7.17.9.jar:7.17.9]
... 6 more

Security autoconfiguration is a feature for version 8.0+. The setting xpack.security.enrollment.enabled is part of it. Since you are using version 7.17.9, it does not understand this setting. You need remove it from the YAML configuration file.

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