cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.2 Elastic search - Service failed or Denied

Magento 2.4.2 Elastic search - Service failed or Denied

Hi,
I am a new member of the Magento community. I am trying to install Elastic search in my Hostgator VPS server with the below commands. 

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch 


Create an elasticsearch.repo file in /etc/yum.repos.d/ using Nano, VIM, or Emacs:

nano /etc/yum.repos.d/elasticsearch.repo

Add the following to the file:
[elasticsearch]name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md


Save changes.



Now install Elasticsearch:


sudo yum install --enablerepo=elasticsearch elasticsearch 


Open port 9200 in your firewall: Firewalld, UFW, CSF, etc. Or if you need to use another port, edit the Elasticsearch YAML file.


Check that Elasticsearch is running on an open port:

curl –X GET localhost:9200


Installing works fine I think. When I try to run "service elasticsearch start", getting below error.

Starting elasticsearch (via systemctl): Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details. 

Tried as many different solutions on the internet. Nothing works. Hostgator admin saying it's elastic search-related issue. Not sure how to solve this issue. Mine is running "Ubuntu" server.


Thanks


1 REPLY 1

Re: Magento 2.4.2 Elastic search - Service failed or Denied

Pleased to see your issue as I think I have the same problem, I am also confused and in need of light on this same issue. Need help.

 

mcdvoice