# 'Cannot read ENT\_SEARCH\_CONFIG\_PATH file' error in Enterprise Search

**URL:** <https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588>\
**Category:** Elastic Search\
**Created:** [February 26, 2021, 9:53am UTC](https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588 "2021-02-26T09:53:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![basan4ik](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@basan4ik](https://discuss.elastic.co/u/basan4ik)\
**Post date:** [February 26, 2021, 9:53am UTC](https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588/1 "2021-02-26T09:53:51Z")

</div>

I'm trying to log in Elastic Enterpirse Search:  
`ENT_SEARCH_DEFAULT_PASSWORD=somepassword bin/enterprise-search`

but get this Error:

```auto
Found java executable in PATH
Java version detected: 11.0.10 (major version: 11)
Cannot read ENT_SEARCH_CONFIG_PATH file, it's currently /usr/share/enterprise-search/config/enterprise-search.yml

```

I running it on Ubuntu 20.04 following instructions from here: [Download Elastic Enterprise Search | Elastic](https://www.elastic.co/downloads/enterprise-search)

I installed Elasticsearch following instructions from here: [How To Install Elasticsearch, Logstash, and Kibana (Elastic Stack) on Ubuntu 20.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-20-04#step-1-%E2%80%94-installing-and-configuring-elasticsearch) (installed only elasticsearch, neither kibana nor logstash)

Could you help me?

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 26, 2021, 1:30pm UTC](https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588/2 "2021-02-26T13:30:14Z")

</div>

@basan4ik

Per the error message, it's having trouble finding your config file at `/usr/share/enterprise-search/config/enterprise-search.yml`. Does that file exist? If not, where is that file located? It should be in the `config` directory of your enterprise search install.

---

<div class="post-metadata">

**Author:** ![basan4ik](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@basan4ik](https://discuss.elastic.co/u/basan4ik)\
**Post date:** [February 28, 2021, 11:17am UTC](https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588/3 "2021-02-28T11:17:58Z")

</div>

Yes, this file /usr/share/enterprise-search/config/enterprise-search.yml exists.

By the way, I installed Elasticsearch on a remote server with apt-get on Ubuntu 20.04. And those instructions were kind of perplexed, may be I should have install it just by downloading tar.gz archive? Is this way of installation better or worse? (I know that installing it via zip (both ElasticeSearch and Enterprise Search) is much simpler, I previously installed them this way on my Mac)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 28, 2021, 4:40pm UTC](https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588/4 "2021-02-28T16:40:46Z")

</div>

Just went through some similar with another user check the permissions carefully.

If you installed via package manager the permissions maybe different that the user you are using when you are trying to start manually.

As noted you could try with tar.gz less complexity.

---

<div class="post-metadata">

**Author:** ![basan4ik](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@basan4ik](https://discuss.elastic.co/u/basan4ik)\
**Post date:** [February 28, 2021, 5:57pm UTC](https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588/5 "2021-02-28T17:57:39Z")

</div>

Yep, I think I'll try to reinstall it with tar.gz archive, even though some people think that this approach is just for "to play around with...".

> Installing from zip or tar.gz archive is best if you just want to play around with Elasticsearch for a bit. Installing from either of these options simply makes available the binaries needed for running Elasticsearch. Installing from the deb package fully installs Elasticsearch and starts the server running immediately. This includes installing an init script at `/etc/init.d/elasticsearch` which starts Elasticsearch on boot. If you are only looking to play around with Elasticsearch, I suggest installing from the zip or tar.gz. That way, you can discover Elasticsearch while starting and stopping the server at will.

It's from this old article: [How To Install Elasticsearch on an Ubuntu VPS | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-on-an-ubuntu-vps)

---

<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:** [November 4, 2022, 8:25am UTC](https://discuss.elastic.co/t/cannot-read-ent-search-config-path-file-error-in-enterprise-search/265588/6 "2022-11-04T08:25:10Z")

</div>

Closed on November 4, 2022, 8:25am UTC


