Upgrade Elasticsearch from 6.1 - 6.3 failed

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.

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.

Is there more to the log that you can share?

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.

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?

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