Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elasticsearch.yml.j2 config error #1

Closed
ghost opened this issue Apr 25, 2023 · 0 comments · Fixed by #2
Closed

elasticsearch.yml.j2 config error #1

ghost opened this issue Apr 25, 2023 · 0 comments · Fixed by #2

Comments

@ghost
Copy link

ghost commented Apr 25, 2023

Following error appears when elasticsearch_https_enabled: no:

[2023-04-25T10:49:30,358][ERROR][o.e.b.Elasticsearch      ] [es-0] fatal exception while booting Elasticsearch
org.elasticsearch.ElasticsearchSecurityException: invalid configuration for xpack.security.http.ssl - [xpack.security.http.ssl.enabled] is not set, but the following settings have been configured in elasticsearch.yml : [xpack.security.http.ssl.keystore.secure_password]

Possible fix for elasticsearch.yml.j2:

...
{% if elasticsearch_https_enabled %}
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: {{ elasticsearch_certs_dir }}/http.p12
{% else %}
xpack.security.http.ssl.enabled: false
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants