I'm new to Elasticsearch, and I'm trying to install and run Elasticsearch on a CentOS 8 server in AWS. Currently it is a small server (1GB memory, 15GB SSD, 1 CPU)
I have installed the software, but when trying to run the service it times out.
[ec2-user@ip-172-31-43-130 etc]$ sudo systemctl start elasticsearch.service
Job for elasticsearch.service failed because a timeout was exceeded.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
[ec2-user@ip-172-31-43-130 etc]$ journalctl -xe
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal NetworkManager[677]: <info> [1638212899.3863] dhcp4 (eth0)>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal NetworkManager[677]: <info> [1638212899.3874] dhcp4 (eth0)>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal NetworkManager[677]: <info> [1638212899.3874] dhcp4 (eth0)>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal NetworkManager[677]: <info> [1638212899.3874] dhcp4 (eth0)>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal NetworkManager[677]: <info> [1638212899.3874] dhcp4 (eth0)>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal NetworkManager[677]: <info> [1638212899.3874] dhcp4 (eth0)>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal NetworkManager[677]: <info> [1638212899.3874] dhcp4 (eth0)>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal dbus-daemon[478]: [system] Activating via systemd: service >
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: Starting Network Manager Script Dispatcher Serv>
-- Subject: Unit NetworkManager-dispatcher.service has begun start-up
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- Unit NetworkManager-dispatcher.service has begun starting up.
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal dbus-daemon[478]: [system] Successfully activated service '>
Nov 29 19:08:19 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: Started Network Manager Script Dispatcher Servi>
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
Nov 29 19:08:29 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: NetworkManager-dispatcher.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- The unit NetworkManager-dispatcher.service has successfully entered the 'dead' state.
[ec2-user@ip-172-31-43-130 etc]$ sudo systemctl start elasticsearch.service
Job for elasticsearch.service failed because a timeout was exceeded.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
[ec2-user@ip-172-31-43-130 etc]$ journalctl -xe
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- Unit elasticsearch.service has begun starting up.
Nov 29 19:15:40 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: A terminally deprecated >
Nov 29 19:15:40 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:15:40 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: Please consider reportin>
Nov 29 19:15:40 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: A terminally deprecated >
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: Please consider reportin>
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:16:31 ip-172-31-43-130.us-west-2.compute.internal sshd[2332]: error: kex_exchange_identification: Connection >
Nov 29 19:16:51 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: elasticsearch.service: start operation timed ou>
Nov 29 19:17:29 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: elasticsearch.service: Failed with result 'time>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- The unit elasticsearch.service has entered the 'failed' state with result 'timeout'.
Nov 29 19:17:29 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: Failed to start Elasticsearch.
-- Subject: Unit elasticsearch.service has failed
-- Defined-By: systemd
-- Support: https://support.oracle.com
--
-- Unit elasticsearch.service has failed.
--
-- The result is failed.
Nov 29 19:17:30 ip-172-31-43-130.us-west-2.compute.internal sudo[2157]: pam_unix(sudo:session): session closed for user
[ec2-user@ip-172-31-43-130 etc]$ systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Mon 2021-11-29 19:17:29 GMT; 8min ago
Docs: https://www.elastic.co
Process: 2160 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code>
Main PID: 2160 (code=exited, status=143)
Nov 29 19:15:40 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:15:40 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: Please consider reportin>
Nov 29 19:15:40 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: A terminally deprecated >
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: Please consider reportin>
Nov 29 19:15:44 ip-172-31-43-130.us-west-2.compute.internal systemd-entrypoint[2160]: WARNING: System::setSecurityManag>
Nov 29 19:16:51 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: elasticsearch.service: start operation timed ou>
Nov 29 19:17:29 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: elasticsearch.service: Failed with result 'time>
Nov 29 19:17:29 ip-172-31-43-130.us-west-2.compute.internal systemd[1]: Failed to start Elasticsearch.
googling for solutions has so far left me without any concrete answers. I may just not be googling for the right terms.