# Elasticsearch 7.5.1 RPM update prevents restart of service

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636>\
**Category:** Elasticsearch\
**Created:** [January 2, 2020, 11:21pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636 "2020-01-02T23:21:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erempel](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@erempel](https://discuss.elastic.co/u/erempel)\
**Post date:** [January 2, 2020, 11:21pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636/1 "2020-01-02T23:21:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![William\_Brafford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/william_brafford/32/51559_2.png) [@William\_Brafford](https://discuss.elastic.co/u/William_Brafford)\
**Post date:** [January 3, 2020, 8:36pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636/2 "2020-01-03T20:36:11Z")

</div>

This looks like something that should have a bug report on the [Elasticsearch Github](https://github.com/elastic/elasticsearch/), if there's not one already. Our packages are supposed to handle these keystore operations automatically, according to [our documents](https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html#keystore-upgrade) and [our issue tracker](https://github.com/elastic/elasticsearch/pull/41755).

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

---

<div class="post-metadata">

**Author:** ![erempel](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@erempel](https://discuss.elastic.co/u/erempel)\
**Post date:** [January 4, 2020, 8:59pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636/3 "2020-01-04T20:59:46Z")

</div>

Issue raised in github

> <https://github.com/elastic/elasticsearch/issues/50631>
>
> Platform: Redhat EL 7.7 (systemd)
> Previous ES package: elasticsearch-7.4.2-1.x86\_64
> Upgraded ES package: elasticsearch-7.5.1-1.x86\_64
> ES forum post at
> https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636
> made me look into things more.
> After the upgrade...

---

<div class="post-metadata">

**Author:** ![William\_Brafford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/william_brafford/32/51559_2.png) [@William\_Brafford](https://discuss.elastic.co/u/William_Brafford)\
**Post date:** [January 6, 2020, 10:17pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636/4 "2020-01-06T22:17:44Z")

</div>

Thank you very much for the bug report!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 3, 2020, 10:17pm UTC](https://discuss.elastic.co/t/elasticsearch-7-5-1-rpm-update-prevents-restart-of-service/213636/5 "2020-02-03T22:17:50Z")

</div>

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