# Upgrade Elasticsearch from 6.1 - 6.3 failed

**URL:** <https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442>\
**Category:** Elasticsearch\
**Created:** [June 26, 2018, 2:01pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442 "2018-06-26T14:01:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [June 26, 2018, 2:01pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442/1 "2018-06-26T14:01:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [June 26, 2018, 6:22pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442/2 "2018-06-26T18:22:12Z")

</div>

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.

---

<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:** [June 26, 2018, 10:57pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442/3 "2018-06-26T22:57:08Z")

</div>

Is there more to the log that you can share?

---

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [June 26, 2018, 11:13pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442/4 "2018-06-26T23:13:04Z")

</div>

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.

---

<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:** [June 27, 2018, 1:51am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442/5 "2018-06-27T01:51:14Z")

</div>

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

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

---

<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:** [July 25, 2018, 1:51am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442/6 "2018-07-25T01:51:20Z")

</div>

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