Elasticsearch problem when installing Magento

SYSTEM INFORMATION
OS type and version Ubuntu 22.04.3
Webmin version newest
Virtualmin version newest
Related packages Elasticsearch 7.17.15

Hi
I’m trying to install Magento with “install scripts” in Virtualmin.
I’ve have a brand new clean server. Done all steps in How To Install and Configure Elasticsearch on Ubuntu 22.04 | DigitalOcean.

But everytime I try to install something new is wrong.
Elasticsearch not found,
Is there a guide how to install Magento in Virtualmin?

I just went through this issue, and the only way I managed to get elasticsearch to run was to edit the elasticsearch.yml file and add xpack.ml.enabled: false to the bottom of the file. Apparently it disables the machine learning.

Elasticsearch is running, but now I have a Magento issue. Not sure if it will still work with Magento this way, but at least now it starts.

FYI:

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.3
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.9.0 Pro
Theme version 21.09.5
Package updates All installed packages are up to date

When I say just I mean 2024/01/03 @ 5:08 EST

Hope this helps.

Do you get a response if you run:

curl http://localhost:9200

Note if you’re using ES > 7, you’ll need to pass a username in:

curl -u elastic http://localhost:9200

Alternatively, you could try using OpenSearch (which is a fork of ES 7)

Once you have a response from curl, you can run the magento setup guide:

That doesn’t seem to work out of the box, unless an elastic user is configured manually. The easiest work-around would be to edit /etc/elasticsearch/elasticsearch.yml and set xpack.security.enabled to false and restart elasticsearch.service.

1 Like

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