Upgrading ElasticSeaarch 7.6 to 7.9

Hi Craig, hi community,

Could you please let me know what is the right approach to upgrade elastic search?

I’ve just upgraded my Magento from 2.4.1 to 2.4.2, also upgraded composer to v 2, and not I would like to upgrade ES from 7.6 to 7.9.x.

Could I just stop the ES with:
sudo systemctl stop elasticsearch.service

then install and start my new version with the following:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-amd64.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-amd64.deb.sha512
shasum -a 512 -c elasticsearch-7.9.3-amd64.deb.sha512
sudo dpkg -i elasticsearch-7.9.3-amd64.deb

sudo systemctl start elasticsearch.service

Thank you.

Pawel

1 Like

Good Evening!

Did it work for you?

I followed your steps and got an error on “sudo systemctl start elasticsearch.service” and “sudo systemctl daemon-reload” on the last step.

I you got is solved it would be very helpful to add it cause there isn’t a guide to update to 7.9

Hi George,

I didn’t toutch it yet as I don’t want to mess things up on the server.
I thought that Craig will respond and give me a tip on how to do it.

When you work things out please update the post.
Thank you.

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