Elasticsearch is not getting started and throwing same ‘operation not permitted’ error

We are deploying the Elasticsearch on containerized env. with multi cluster facing the below issue.

“/home/jboss/gpp/profiles/GPPE_EG_EUS_HV06/config/esserver11/elasticsearch.keystore.tmp” operation not permitted

Please check the screenshot attached here.

Any resolution you think here like I need to update the permissions - in this way?

sudo chmod g+w /etc/elasticsearch

sudo bash -c 'printf "topsecret" | /usr/share/elasticsearch/bin/elasticsearch-keystore add "bootstrap.password"'

Reference

The most likely explanation is that this is due to two reasons:

  1. You are bind mounting files directly into the container (rather than directories)
  2. Your keystore format is out of date.

Because of (2) Elasticsearch tries to rewrite the keystore into a new format, but because of (1) it cannot because it doesn't have a writeable directory.

You should be able to fix this be either

  1. bind mounting a writeable config/ directory into the container
  2. Upgrading your keystore format from outside the container (using elasticsearch-keystore upgrade)

Hi @TimV

The issue with directory permission Elasticsearch started working fine.

Thanks for your time and Efforts TimV