Error on sudo systemctl enable --now elasticsearch

Hi, I am new here.
I am trying to install elasticsearch on my Centos 7.8 to support Magento 2.4]
I followed all instruction but on enabling it with command

sudo systemctl enable --now elasticsearch

I have this error

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

Then searching on journalctl -xe

Firewall: TCP_IN Blocked IN=enp2s0f0 OUT= MAC=ac:1f:6b:81:37:10:60:9c:9f:bd:2c:90:08:00 SRC=79.124.62.34 DST=134.119.190.175 LEN=40 TOS=0x00 PREC=0x00 TTL=246 ID=54398 PROTO=TCP S

Which ports do I have to open on Firewall if this is the problem? Opening port I have this other error:

ott 15 14:06:41  systemd[1]: Unit elasticsearch.service entered failed state.
ott 15 14:06:41  systemd[1]: elasticsearch.service failed.
ott 15 14:06:41  polkitd[885]: Unregistered Authentication Agent for unix-process:5706:7660871 (system bus name :1.19303, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale it_IT.UTF-8) (disconnected from bus)
ott 15 14:06:41  sudo[5704]: pam_unix(sudo:session): session closed for user root

Do you have any idea of how to proceed?
Thanks

I don't know if it's the problem but at least if your node needs to communicate with other nodes, open 9300.
Or with another machine where the application is running, open 9200.

Could you share the full elasticsearch logs?

Hi, here it is:
Il risultato è failed.

ott 23 09:19:11 xxxxxxxxxxxxxx.com systemd[1]: Unit elasticsearch.service entered failed state.

ott 23 09:19:11 xxxxxxxxxxxxxx.com systemd[1]: elasticsearch.service failed.

ott 23 09:19:11 xxxxxxxxxxxxxx.com polkitd[885]: Unregistered Authentication Agent for unix-process:8678:75056179 (system bus name :1.188968, object path /org/freedeskt

ott 23 09:19:11 xxxxxxxxxxxxxx.com sudo[8674]: pam_unix(sudo:session): session closed for user root

ott 23 09:19:12 xxxxxxxxxxxxxx.com dovecot[12639]: pop3-login: Login: user=xxxxxxxxxxxxxx@xxxxxxxxxxxxxx.it, method=PLAIN, rip=209.85.219.9, lip=134.119.190.175, mpid=9071, sessio

ott 23 09:19:12 xxxxxxxxxxxxxx.com kernel: Firewall: TCP_IN Blocked IN=enp2s0f0 OUT= MAC=ac:1f:6b:81:37:10:60:9c:9f:bd:2c:90:08:00 SRC=195.211.253.86 DST=134.119.190.

ott 23 09:19:12 xxxxxxxxxxxxxx.com dovecot[12639]: pop3(ordini@xxxxxxxxxxxxxx.it)<9071>: Disconnected: Logged out top=0/0, retr=0/0, del=0/2, size=64212, b

ott 23 09:19:20 xxxxxxxxxxxxxx.com kernel: Firewall: TCP_IN Blocked IN=enp2s0f0 OUT= MAC=ac:1f:6b:81:37:10:60:9c:9f:bd:2c:90:08:00 SRC=79.124.62.34 DST=134.119.190.17

ott 23 09:19:20 xxxxxxxxxxxxxx.com dovecot[12639]: pop3-login: Login: user=info@xxxxxxxxxxxxxx.it, method=PLAIN, rip=209.85.222.140, lip=134.119.190.175, mpid=9073, sessio

lines 2401-2467/2467 (END)

This is not elasticsearch logs. Could you go to the elasticsearch logs dir and share the logs please?

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