# Can't enable read only mode

**URL:** <https://discuss.elastic.co/t/cant-enable-read-only-mode/297476>\
**Category:** Elastic Search\
**Created:** [February 17, 2022, 10:44am UTC](https://discuss.elastic.co/t/cant-enable-read-only-mode/297476 "2022-02-17T10:44:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![oleksiy-elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oleksiy-elastic/32/49074_2.png) [@oleksiy-elastic](https://discuss.elastic.co/u/oleksiy-elastic)\
**Post date:** [February 17, 2022, 3:19pm UTC](https://discuss.elastic.co/t/cant-enable-read-only-mode/297476/4 "2022-02-17T15:19:31Z")

</div>

Hello, Libor,

Sorry you'e having problems trying to run Enterprise Search.

If you're using some kind of minimal CentOS environment, there may be an issue with the fact that nowadays Java tries to be smart about picking the right locale and, when locales are missing on the underlying OS, it falls back to some defaults that do not work with Enterprise Search. We have seen this in our Docker containers for example. Here is a Github issue discussing that behavior: [Default locale is set to en\_US.UTF-8 but it's missing · Issue #71 · CentOS/sig-cloud-instance-images · GitHub](https://github.com/CentOS/sig-cloud-instance-images/issues/71#issuecomment-538302151) and the Redhat bug for the underlying problem: [1677927 – Unable to invoke localedef to UTF-8: cannot read character map directory `/usr/share/i18n/charmaps'](https://bugzilla.redhat.com/show_bug.cgi?id=1677927#c7).

Anyways, what you can try to fix is is to install (or reinstall) the english locale. Depending on the CentOS version:

For 7.x:

```auto
yum -y reinstall glibc-common
localedef -i en_US -f UTF-8 en_US.UTF-8

```

For 8.x:

```auto
yum -y install glibc-langpack-en

```

I hope this helps.

---

_[View the full topic](https://discuss.elastic.co/t/cant-enable-read-only-mode/297476)._
