Failed to enable security by setting [xpack.security.enabled] to [true] in the elasticsearch.yml

Hello,

I'm trying to enable security by setting [xpack.security.enabled] to [true] in the elasticsearch.yml but after this action, the elasticsearch service failed to start. have you any idea to rsolve this issue? thanks.

Best Regards,

What is in the Elasticsearch logs? If you have more than a single node you will need to configure TLS and not just change the setting you described.

Hello,

Thank you Christian for your help. I didn't find the location of Elasticsearch logs. could you please help me to find it. Actually i run a cluster of 3 nodes elasticsearch.

Best regards

Location depends on how you installed/are running Elasticsearch.

Hello,

Thank you for your help. actually i didn't see any error in the log.
This is the log:

[2021-02-22T17:47:36,276][INFO ][o.e.n.Node ] [host2] started
[2021-02-22T17:49:37,588][INFO ][o.e.n.Node ] [host2] stopping ...
[2021-02-22T17:49:37,594][INFO ][o.e.x.w.WatcherService ] [host2] stopping watch service, reason [shutdown initiated]
[2021-02-22T17:49:37,595][INFO ][o.e.x.w.WatcherLifeCycleService] [host2] watcher has stopped and shutdown
[2021-02-22T17:49:37,596][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [host2] [controller/8048] [Main.cc@154] ML controller exiting
[2021-02-22T17:49:37,597][INFO ][o.e.x.m.p.NativeController] [host2] Native controller process has stopped - no new native processes can be started
[2021-02-22T17:49:37,688][INFO ][o.e.c.c.Coordinator ] [host2] master node [{hsot3}{3F6-oRPARdCoA5WIWRA0kg}{nWF2KzUiQuGftExJEm6fkw}{x.x.x.x}{x.x.x.x:9300}{cdhilmrstw}{ml.machine_memory=3973660672, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}] failed, restarting discovery
org.elasticsearch.transport.NodeDisconnectedException: [host3][x.x.x.x:9300][disconnected] disconnected
[2021-02-22T17:49:37,814][INFO ][o.e.n.Node ] [host2] stopped
[2021-02-22T17:49:37,815][INFO ][o.e.n.Node ] [host2] closing ...
[2021-02-22T17:49:37,828][INFO ][o.e.n.Node ] [host2] closed

and i run a cluster of 3 nodes elasticsearch .Have you any idea to resolv the issue?

Best Regards,

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