Upgrade Elasticsearch from 6.1 - 6.3 failed


(Kenneth Mroz) #1

We recently tried to upgrade Elasticsearch from 6.1-6.3 and we ran into an issue starting the service.

We got the error " Starting elasticsearch: /usr/share/elasticsearch/bin/elasticsearch-env: line 70: /etc/sysconfig/elasticsearch: Permission denied
[FAILED]"

It seems from some research that this was a common issue but there seems to be no fix for this. Any idea what can be causing this. We had to revert the upgrade since we were unable to to start the service. Any help would be greatly appreciated.


(Kenneth Mroz) #2

This seems to be an issue of bad init.d scripts with versions. The 6.3 script is broken. If you use the 6.1 it works correctly.


(Mark Walkom) #3

Is there more to the log that you can share?


(Kenneth Mroz) #4

the issue lied in the elasticsearch-env bash script under /usr/share/elasticsearch/bin/ .... The script contaned source /etc/sysconfig/elasticsearch rather than do an " if " statement like it was in 6.1. We changed this to match 6.1 and it started no problem.


(Mark Walkom) #5

This was added in 6.2 as per https://github.com/elastic/elasticsearch/commit/e767662bedb9b2ff281862dd9c4af74d88de9c4c.

Did you change anything related to the default install at all?


(system) #6

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