Elasticsearch not starting after upgrading to 6.5

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.

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

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

I am starting the es service as root user.

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