Elasticsearch 7.5.1 RPM update prevents restart of service

Updating an existing install of elasticsearch 7.x with the RPM package provided for ES 7.5.1-1 removes the group permissions on /etc/elasticsearch which results in an error when trying to start elasticsearch.

rpm -qlv elasticsearch | fgrep '/etc/elasticsearch'

drwxr-s--- 2 root elastics 0 Dec 16 15:10 /etc/elasticsearch

without the ability to write in this location the startup results in the error
Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: org.elasticsearch.cli.UserException: unable to create temporary keystore at [/etc/elasticsearch/elasticsearch.keystore.tmp], write permissions required for [/etc/elasticsearch] or run [elasticsearch-keystore upgrade]

It is easy to change the permission to permit write, however, an RPM update should be seamless.

Comments from the packagers?

This looks like something that should have a bug report on the Elasticsearch Github, if there's not one already. Our packages are supposed to handle these keystore operations automatically, according to our documents and our issue tracker.

If you'd like to create the issue, please include the version of Elasticsearch you were upgrading from and the type of system you were running on (e.g., centos 9). Alternately, you can provide that information here and I can try to reproduce your issue for a bug report.

-William

Issue raised in github

1 Like

Thank you very much for the bug report!

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