I have installed "elasticsearch" 7.12 version on Ubuntu 18.04 machine.
when trying to start the "elasticsearch" service getting below error:
(base) extramarks@extramarks-Latitude-3400:~/Downloads$ systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-03-25 11:54:39 IST; 4h 58min ago
Docs: https://www.elastic.co
Main PID: 16441 (code=exited, status=1/FAILURE)
Mar 25 11:54:39 extramarks-Latitude-3400 systemd-entrypoint[16441]: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.ja
Mar 25 11:54:39 extramarks-Latitude-3400 systemd-entrypoint[16441]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch
Mar 25 11:54:39 extramarks-Latitude-3400 systemd-entrypoint[16441]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(Environme
Mar 25 11:54:39 extramarks-Latitude-3400 systemd-entrypoint[16441]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.
Mar 25 11:54:39 extramarks-Latitude-3400 systemd-entrypoint[16441]: at org.elasticsearch.cli.Command.main(Command.java:79)
Mar 25 11:54:39 extramarks-Latitude-3400 systemd-entrypoint[16441]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.ja
Mar 25 11:54:39 extramarks-Latitude-3400 systemd-entrypoint[16441]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.ja
Mar 25 11:54:39 extramarks-Latitude-3400 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Mar 25 11:54:39 extramarks-Latitude-3400 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Mar 25 11:54:39 extramarks-Latitude-3400 systemd[1]: Failed to start Elasticsearch.
(base) extramarks@extramarks-Latitude-3400:~/Downloads$ systemctl start elasticsearch.service
Job for elasticsearch.service failed because a timeout was exceeded.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
(base) extramarks@extramarks-Latitude-3400:~/Downloads$
(base) extramarks@extramarks-Latitude-3400:~/Downloads$ journalctl -xe
Mar 25 16:56:02 extramarks-Latitude-3400 sudo[29336]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 25 16:56:02 extramarks-Latitude-3400 systemd[1]: Reloading.
Mar 25 16:56:03 extramarks-Latitude-3400 sudo[29336]: pam_unix(sudo:session): session closed for user root
Mar 25 16:56:16 extramarks-Latitude-3400 sudo[29357]: extramarks : TTY=pts/0 ; PWD=/home/extramarks/Downloads ; USER=root ; COMMAND=/bin/syste
Mar 25 16:56:16 extramarks-Latitude-3400 sudo[29357]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 25 16:56:16 extramarks-Latitude-3400 systemd[1]: Reloading.
Mar 25 16:56:17 extramarks-Latitude-3400 systemd[1]: Reloading.
Mar 25 16:56:17 extramarks-Latitude-3400 systemd[1]: Reloading.
Mar 25 16:56:17 extramarks-Latitude-3400 sudo[29357]: pam_unix(sudo:session): session closed for user root
Mar 25 16:56:33 extramarks-Latitude-3400 polkitd(authority=local)[2490]: Registered Authentication Agent for unix-process:29469:2597141 (syste
Mar 25 16:56:36 extramarks-Latitude-3400 polkitd(authority=local)[2490]: Operator of unix-session:2 successfully authenticated as unix-user:ex
Mar 25 16:56:36 extramarks-Latitude-3400 systemd[1]: Starting Elasticsearch...
-- Subject: Unit elasticsearch.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- Unit elasticsearch.service has begun starting up.
Mar 25 16:56:44 extramarks-Latitude-3400 rtkit-daemon[3099]: The canary thread is apparently starving. Taking action.
Mar 25 16:56:44 extramarks-Latitude-3400 rtkit-daemon[3099]: Demoting known real-time threads.
Mar 25 16:56:44 extramarks-Latitude-3400 rtkit-daemon[3099]: Successfully demoted thread 3576 of process 3574 (n/a).
Mar 25 16:56:44 extramarks-Latitude-3400 rtkit-daemon[3099]: Successfully demoted thread 3575 of process 3574 (n/a).
Mar 25 16:56:44 extramarks-Latitude-3400 rtkit-daemon[3099]: Successfully demoted thread 3574 of process 3574 (n/a).
Mar 25 16:56:44 extramarks-Latitude-3400 rtkit-daemon[3099]: Demoted 3 threads.
Mar 25 16:57:52 extramarks-Latitude-3400 systemd[1]: elasticsearch.service: Start operation timed out. Terminating.
Mar 25 16:57:53 extramarks-Latitude-3400 gnome-shell[3552]: pushModal: invocation of begin_modal failed
Mar 25 16:57:59 extramarks-Latitude-3400 polkitd(authority=local)[2490]: Unregistered Authentication Agent for unix-process:29469:2597141 (sys
Mar 25 16:57:56 extramarks-Latitude-3400 systemd[1]: elasticsearch.service: Failed with result 'timeout'.
Mar 25 16:57:56 extramarks-Latitude-3400 systemd[1]: Failed to start Elasticsearch.
-- Subject: Unit elasticsearch.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- Unit elasticsearch.service has failed.
-- The result is RESULT.
Mar 25 16:58:15 extramarks-Latitude-3400 /usr/lib/gdm3/gdm-x-session[3423]: (II) event17 - DELL08BC:00 04F3:30CA Touchpad: SYN_DROPPED event -
Mar 25 16:58:17 extramarks-Latitude-3400 /usr/lib/gdm3/gdm-x-session[3423]: (II) event17 - DELL08BC:00 04F3:30CA Touchpad: SYN_DROPPED event -
please find below the system information:
(base) extramarks@extramarks-Latitude-3400:~/Downloads$ uname -a
Linux extramarks-Latitude-3400 5.4.0-70-generic #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
kindly help me with this