Error while starting elasticsearch v8.9.1

Whenever I start up ES by running ES .bat file on Windows, I receive this error:

[ERROR][o.e.b.Elasticsearch ] [node-1] fatal exception while booting Elasticsearchorg.elasticsearch.ElasticsearchSecurityException: invalid configuration for xpack.security.transport.ssl - [xpack.security.transport.ssl.enabled] is not set, but the following settings have been configured in elasticsearch.yml : [xpack.security.transport.ssl.keystore.secure_password,xpack.security.transport.ssl.truststore.secure_password] at org.elasticsearch.xcore@8.9.1/org.elasticsearch.xpack.core.ssl.SSLService.validateServerConfiguration(SSLService.java:650) at org.elasticsearch.xcore@8.9.1/org.elasticsearch.xpack.core.ssl.SSLService.loadSslConfigurations(SSLService.java:624) at org.elasticsearch.xcore@8.9.1/org.elasticsearch.xpack.core.ssl.SSLService.(SSLService.java:159) at org.elasticsearch.xcore@8.9.1/org.elasticsearch.xpack.core.XPackPlugin.createSSLService(XPackPlugin.java:495) at org.elasticsearch.xcore@8.9.1/org.elasticsearch.xpack.core.XPackPlugin.createComponents(XPackPlugin.java:324)

How can I resolve this?

Hi @sanyam,

Can you try setting the xpack.security.transport.ssl.enabled option in your configuration?

I tried, but still the same error continues.

Ok, can you share your configuration please?

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