Cant start elasticsearch after update from 6.6.2 to 7.6.2

Hi,
I want to do full elk stack upgrade from 6.6.2 to 7.6.2. Started with elasticsearch. I did snapshot backup. Followed this guide https://www.elastic.co/guide/en/elasticsearch/reference/7.6/restart-upgrade.html

Downloaded package using:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-x86_64.rpm

Installed using:
yum localinstall "package"

Then when I want to start elastic using: service elasticsearch start it gives me error:

May  5 18:15:43 prd systemd: Starting Elasticsearch...
May  5 18:15:44 prd elasticsearch: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
May  5 18:15:44 prd elasticsearch: OpenJDK 64-Bit Server VM warning: UseAVX=2 is not supported on this CPU, setting it to UseAVX=1
May  5 18:15:45 prd elasticsearch: ERROR: Temporary file directory [${ES_TMPDIR}] does not exist or is not accessible
May  5 18:15:45 prd systemd: elasticsearch.service: main process exited, code=exited, status=78/n/a
May  5 18:15:45 prd systemd: Failed to start Elasticsearch.
May  5 18:15:45 prd systemd: Unit elasticsearch.service entered failed state.
May  5 18:15:45 prd systemd: elasticsearch.service failed.

Please can you help me?

Looks like you have a config issue?

Where can I define this variable?

Usually in /etc/defaults/elasticsearch

I dont have such a file in /etc/default , so I created one and put inside:

ES_TMPDIR=/tmp/elasticsearch

Im still getting same error.

You can give this a try and see if that works..

sudo mkdir /usr/share/elasticsearch/tmp && sudo chmod 777 -R /usr/share/elasticsearch/tmp

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