# Trying to do an upgrade from 2.3.4 to 5.2.2 on Oracle Linux 7.x but no luck

**URL:** <https://discuss.elastic.co/t/trying-to-do-an-upgrade-from-2-3-4-to-5-2-2-on-oracle-linux-7-x-but-no-luck/77589>\
**Category:** Elasticsearch\
**Created:** [March 7, 2017, 2:42am UTC](https://discuss.elastic.co/t/trying-to-do-an-upgrade-from-2-3-4-to-5-2-2-on-oracle-linux-7-x-but-no-luck/77589 "2017-03-07T02:42:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![somerandomguy](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@somerandomguy](https://discuss.elastic.co/u/somerandomguy)\
**Post date:** [March 7, 2017, 2:42am UTC](https://discuss.elastic.co/t/trying-to-do-an-upgrade-from-2-3-4-to-5-2-2-on-oracle-linux-7-x-but-no-luck/77589/1 "2017-03-07T02:42:04Z")

</div>

Hi.  
Starting to upgrade my System from 2.3.4 to 5.2.2 but now it won't start..  
I get these error messages when I try to start it from the command 'sudo systemctl start elasticsearch':

It worked perfectly when I was on 2.3.4.  
Procedure I took was

1. Stop ES

2. Removed all my plugins (license, marvel-agent, kopf and head)

3. Unloaded it and stopped the service.  
I ran the update by d/loading the RPM and then running it. "wget [https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.rpm](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.rpm)"

Drawing a blank here ☹

Any help will be greatly appreciated!

Thanks.

---

<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:** [March 7, 2017, 5:46am UTC](https://discuss.elastic.co/t/trying-to-do-an-upgrade-from-2-3-4-to-5-2-2-on-oracle-linux-7-x-but-no-luck/77589/2 "2017-03-07T05:46:11Z")

</div>

> [@somerandomguy](#):
>
> Mar 07 13:24:57 elk01 elasticsearch[963]: Error: encountered environment variables that are no longer supported  
> Mar 07 13:24:57 elk01 elasticsearch[963]: Use jvm.options or ES\_JAVA\_OPTS to configure the JVM  
> Mar 07 13:24:57 elk01 elasticsearch[963]: ES\_HEAP\_SIZE=4g: set -Xms4g and -Xmx4g in jvm.options or add "-Xms4g -Xmx4g" to ES\_JAVA\_OPTS

It states the problem there 🙂

---

<div class="post-metadata">

**Author:** ![somerandomguy](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@somerandomguy](https://discuss.elastic.co/u/somerandomguy)\
**Post date:** [March 9, 2017, 5:17am UTC](https://discuss.elastic.co/t/trying-to-do-an-upgrade-from-2-3-4-to-5-2-2-on-oracle-linux-7-x-but-no-luck/77589/3 "2017-03-09T05:17:15Z")

</div>

Ahh yes fixed that 🙂

good now...

I have successfully upgraded ES from 2.3.4 to 5.2! yai!

I also had a problem where I did my initial install as root (yes bad bad) and that was causing me some problems.

---

<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:** [April 6, 2017, 5:17am UTC](https://discuss.elastic.co/t/trying-to-do-an-upgrade-from-2-3-4-to-5-2-2-on-oracle-linux-7-x-but-no-luck/77589/4 "2017-04-06T05:17:22Z")

</div>

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