Error after setting up xpack security , elasticsearch is not starting after anbaling xpack

tail -30 /var/log/elasticsearch/elkstack.log ---- LOg Error

    at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:227) ~[                                                                                        elasticsearch-7.10.0.jar:7.10.0]
    at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227) ~[ela                                                                                        sticsearch-7.10.0.jar:7.10.0]
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) [elast                                                                                        icsearch-7.10.0.jar:7.10.0]
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170                                                                                        ) [elasticsearch-7.10.0.jar:7.10.0]
    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:                                                                                        161) [elasticsearch-7.10.0.jar:7.10.0]
    at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwar                                                                                        eCommand.java:86) [elasticsearch-7.10.0.jar:7.10.0]
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1                                                                                        27) [elasticsearch-cli-7.10.0.jar:7.10.0]
    at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cl                                                                                        i-7.10.0.jar:7.10.0]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126                                                                                        ) [elasticsearch-7.10.0.jar:7.10.0]
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)                                                                                         [elasticsearch-7.10.0.jar:7.10.0]

[2020-11-25T17:22:28,021][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [e lk-wms01] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException : setting [cluster.initial_master_nodes] is not allowed when [discovery.type] is set to [single-node]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:174 ) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java: 161) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwar eCommand.java:86) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1 27) ~[elasticsearch-cli-7.10.0.jar:7.10.0]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-c li-7.10.0.jar:7.10.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126 ) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.10.0.jar:7.10.0]
Caused by: java.lang.IllegalArgumentException: setting [cluster.initial_master_n odes] is not allowed when [discovery.type] is set to [single-node]
at org.elasticsearch.cluster.coordination.ClusterBootstrapService. (ClusterBootstrapService.java:86) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.cluster.coordination.Coordinator.(Coordinator .java:203) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.discovery.DiscoveryModule.(DiscoveryModule.ja va:157) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.node.Node.(Node.java:615) ~[elasticsearch-7.1 0.0.jar:7.10.0]
at org.elasticsearch.node.Node.(Node.java:289) ~[elasticsearch-7.1 0.0.jar:7.10.0]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:227) ~[ elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227) ~[ela sticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) ~[elas ticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170 ) ~[elasticsearch-7.10.0.jar:7.10.0]

Welcome to our community! :smiley:
Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you.
If you've changed settings, then including what you have is also very helpful.

That seems pretty relevant to me.

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