# How to keep EnterpriseSearch running all the time

**URL:** <https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448>\
**Category:** Elastic Search\
**Created:** [May 31, 2021, 4:01am UTC](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448 "2021-05-31T04:01:22Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [July 11, 2021, 9:25pm UTC](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448/21 "2021-07-11T21:25:33Z")

</div>

> [@reka.gay](#):
>
> `Failed to bind to /0.0.0.0:9200`

This means you have configured Enterprise Search to listen on port 9200 and there is something on your server already using that port (I suspect Elasticsearch). I’d recommend checking your configuration file and making sure you didn’t mix up listen host/port and Elasticsearch host/port in enterprise-search.yml.

---

<div class="post-metadata">

**Author:** ![reka.gay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reka.gay/32/91470_2.png) [@reka.gay](https://discuss.elastic.co/u/reka.gay)\
**Post date:** [July 12, 2021, 6:55am UTC](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448/22 "2021-07-12T06:55:29Z")

</div>

@oleksiy-elastic I had to configure it to 9200 and moved elastic to 9201 as we only have 9200 open to our AWS VMs and it takes a long time to get that changed.

That issue has resolved itself after a few restarts (or maybe when I changed the user for the `filebeat` log??) and got replaced by

```auto
NoMethodError: undefined method `join' for nil:NilClass

```

Which I have found some posts for already and it turned out that when AppSearch started up, it killed ElasticSearch - and pretty much the whole VM.

I restarted the VM and it's actually up and running now, but I suspect failures will start again when the log rotates as the owner will be root again instead of the `enterprise-search` user.

Any suggestions on how to resolve that?

---

<div class="post-metadata">

**Author:** ![reka.gay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reka.gay/32/91470_2.png) [@reka.gay](https://discuss.elastic.co/u/reka.gay)\
**Post date:** [July 12, 2021, 9:49am UTC](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448/23 "2021-07-12T09:49:25Z")

</div>

Logs appear to be rotating fine so I'm now a very happy owner of a working setup, thank you!

---

<div class="post-metadata">

**Author:** ![ymoriarty](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@ymoriarty](https://discuss.elastic.co/u/ymoriarty)\
**Post date:** [February 7, 2022, 4:32pm UTC](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448/25 "2022-02-07T16:32:07Z")

</div>

Can you setup Enterprise Search as a service if you did not install from a package? I downloaded the enterprise-search-7.16.2.tar.gz and did a manual install. How can I keep Enterprse Search running all the time?  
env ENT\_SEARCH\_DEFAULT\_PASSWORD=X nohup bin/enterprise-search& doesn't work.

---

<div class="post-metadata">

**Author:** ![cromagnon35](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cromagnon35](https://discuss.elastic.co/u/cromagnon35)\
**Post date:** [February 15, 2022, 1:25pm UTC](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448/26 "2022-02-15T13:25:24Z")

</div>

I had an issue installing from RPM for v.7.16... would run fine from **bin/enterprise-search** , but not from systemctl start. After reading the log in journal, I set permissions to the log directories as:

```
chown -R enterprise-search:enterprise-search /usr/share/enterprise-search/log
chown -R enterprise-search:enterprise-search /var/log/enterprise-search/

```

tail -f /var/log/enterprise-search/app-server.log.

Once done, it ran fine.

---

<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:30am UTC](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448/27 "2022-11-04T08:30:56Z")

</div>



[Previous page](https://discuss.elastic.co/t/how-to-keep-enterprisesearch-running-all-the-time/274448.md?page=1)
