# Elasticsearch not starting after upgrading to 6.5

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-starting-after-upgrading-to-6-5/166109>\
**Category:** Elasticsearch\
**Created:** [January 29, 2019, 8:01am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-after-upgrading-to-6-5/166109 "2019-01-29T08:01:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)\
**Post date:** [January 29, 2019, 8:01am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-after-upgrading-to-6-5/166109/1 "2019-01-29T08:01:45Z")

</div>

I have upgraded ES from 5.5.1 to 6.5.4 in Centos. When I start ES by executing 'service elasticsearch starts' I am getting below errors. Please help.

2019-01-29 11:50:49,795 main ERROR Unable to create file ${sys:es.logs}.log java.io.IOException: Permission denied  
at java.io.UnixFileSystem.createFileExclusively(Native Method)  
at java.io.File.createNewFile(File.java:1012)  
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:628)

I have done chmod -R 755 /var/log/elasticsearch but still same issue.

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [January 29, 2019, 8:49am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-after-upgrading-to-6-5/166109/2 "2019-01-29T08:49:12Z")

</div>

What if you chown the directory? chown -R elasticsearch: \<es.logs\>

---

<div class="post-metadata">

**Author:** ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)\
**Post date:** [January 29, 2019, 8:58am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-after-upgrading-to-6-5/166109/3 "2019-01-29T08:58:04Z")

</div>

It is already like below.  
drwxrwxrwx. 2 elasticsearch elasticsearch 4096 Jan 29 13:15 elasticsearch

I am starting the es service as root user.

---

<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 26, 2019, 8:58am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-after-upgrading-to-6-5/166109/4 "2019-02-26T08:58:05Z")

</div>

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