Docs say elasticsearch-keystore must be run as the elasticsearch user but that fails because of permissions #66133
Labels
>bug
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
>docs
General docs changes
Team:Delivery
Meta label for Delivery team
Team:Docs
Meta label for docs team
Elasticsearch version (
bin/elasticsearch --version
):Plugins installed: []
JVM version (
java -version
):OS version (
uname -a
if on a Unix-like system):Description of the problem including expected versus actual behavior:
The default install permissions on /etc/elasticsearch is that it's owned by root:elasticsearch but group elasticsearch cannot add files.
It's mentioned in issues like #44624 the keystore is created if it does not exist:
But the elasticsearch service cannot auto create it because of directory permissions --
journalctl -u elasticsearch
will showSeems the only way this works is to make
elasticsearch
the owner of/etc/elasticsearch
, but that is not documented.Steps to reproduce:
I don't understand why docs say to only run
elasticsearch-keystore
as theelasticsearch
userhttps://www.elastic.co/guide/en/elasticsearch/reference/current/elasticsearch-keystore.html
when that does not work:
(
elasticsearch-keystore upgrade
did not report an error but it didn't help)Provide logs (if relevant):
example provided above
This seems related to:
#26309
#64207
The text was updated successfully, but these errors were encountered: