Failed to start Elasticsearch 8.2 on CentOSs

[2022-05-18T12:41:58,264][INFO ][o.e.e.NodeEnvironment    ] [elastic-centos] heap size [7.7gb], compressed ordinary object pointers [true]
[2022-05-18T12:41:58,351][INFO ][o.e.n.Node               ] [elastic-centos] node name [elastic-centos], node ID [ucAJuc9PS7uH5Dp-kPAj5w], cluster name [elasticsearch], roles [ingest, data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold]
[2022-05-18T12:42:04,901][ERROR][o.e.b.Bootstrap          ] [elastic-centos] Exception
org.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]

It's strange that this error occurs, none of these are present in the yml file.

Steps to replicate this issue: Install Elasticsearch with RPM | Elasticsearch Guide [8.2] | Elastic

  1. Repo creation-> elasticsearch.repo in the /etc/yum.repos.d/ directory
  2. rpm import -> rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
  3. sudo yum install --enablerepo=Elasticsearch Elasticsearch
  4. no change in default elasticsesrch.yml file
  5. sudo systemctl start Elasticsearch

content of Elasticsearch-keystore

[azureuser@elastic-centos ~]$ sudo /usr/share/elasticsearch/bin/elasticsearch-keystore list
autoconfiguration.password_hash
keystore.seed
xpack.security.http.ssl.keystore.secure_password
xpack.security.transport.ssl.keystore.secure_password
xpack.security.transport.ssl.truststore.secure_password

Hi,

have you done the below step,



echo "keystore_password" > /path/to/my_pwd_file.tmp
chmod 600 /path/to/my_pwd_file.tmp
sudo systemctl set-environment ES_KEYSTORE_PASSPHRASE_FILE=/path/to/my_pwd_file.tmp
sudo systemctl start elasticsearch.service


Welcome to our community! :smiley:

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

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