# Elastic Search Failure over EC2 AWS

**URL:** <https://discuss.elastic.co/t/elastic-search-failure-over-ec2-aws/241130>\
**Category:** Elasticsearch\
**Created:** [July 14, 2020, 12:20pm UTC](https://discuss.elastic.co/t/elastic-search-failure-over-ec2-aws/241130 "2020-07-14T12:20:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BabarKhan](https://avatars.discourse-cdn.com/v4/letter/b/a6a055/32.png) [@BabarKhan](https://discuss.elastic.co/u/BabarKhan)\
**Post date:** [July 14, 2020, 12:20pm UTC](https://discuss.elastic.co/t/elastic-search-failure-over-ec2-aws/241130/1 "2020-07-14T12:20:28Z")

</div>

I was trying to install Magento over Amazon EC2 instance and it requires ElasticSearch as prerequisite. I followed available methods to install it through Archive and the other method. But none of them worked for me.

When I run "sudo service elasticsearch start", it fails and the snapshot of "journalctl -xe" is attached. Can someone help me what is wrong here and what is my mistake. It is currently installed in /etc/share/elasticsearch. I also reduced to half the memory in java.options file due to few errors in start.

 ![Screenshot 2020-07-13 at 10.37.28 PM](https://us1.discourse-cdn.com/elastic/original/3X/4/8/486312e59c79067591b72981dd8034a5396e6a01.jpeg)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 15, 2020, 1:53am UTC](https://discuss.elastic.co/t/elastic-search-failure-over-ec2-aws/241130/2 "2020-07-15T01:53:59Z")

</div>

Welcome to our community! 😃

Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them.

---

<div class="post-metadata">

**Author:** ![Vinayak\_Sapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinayak_sapre/32/45939_2.png) [@Vinayak\_Sapre](https://discuss.elastic.co/u/Vinayak_Sapre)\
**Post date:** [July 15, 2020, 2:53am UTC](https://discuss.elastic.co/t/elastic-search-failure-over-ec2-aws/241130/3 "2020-07-15T02:53:49Z")

</div>

Log clearly says access denied /var/run/elasticsearch.

Check permission on this directory. Should be writable to the user running elasticsearch process.

---

<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:** [August 12, 2020, 2:53am UTC](https://discuss.elastic.co/t/elastic-search-failure-over-ec2-aws/241130/4 "2020-08-12T02:53:55Z")

</div>

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