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

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"

    systemctl status elasticsearch -l
    ● elasticsearch.service - Elasticsearch
    Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Tue 2017-03-07 13:24:57 AEDT; 3min 23s ago
    Docs: http://www.elastic.co
    Main PID: 963 (code=exited, status=1/FAILURE)

    Mar 07 13:24:56 elk01 systemd[1]: Starting Elasticsearch...
    Mar 07 13:24:57 elk01 systemd[1]: Started Elasticsearch.
    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
    Mar 07 13:24:57 elk01 systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
    Mar 07 13:24:57 elk01 systemd[1]: Unit elasticsearch.service entered failed state.
    Mar 07 13:24:57 elk01 systemd[1]: elasticsearch.service failed.

Drawing a blank here :frowning:

Any help will be greatly appreciated!

Thanks.

It states the problem there :slight_smile:

Ahh yes fixed that :slight_smile:

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.

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