Elasticsearch will not start

I am having an issue with Elasticsearch starting on Ubuntu 20.04 while trying to start the service doing the following:

systemctl restart elasticsearch
Job for elasticsearch.service failed because a fatal signal was delivered to the control process.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

Here is a copy of my YML file:

#node.attr.rack: r1

----------------------------------- Paths ------------------------------------

Path to directory where to store the data (separate multiple locations by comma):

path.data: /var/lib/elasticsearch

Path to log files:

path.logs: /var/log/elasticsearch

----------------------------------- Memory -----------------------------------

Lock the memory on startup:

#bootstrap.memory_lock: true

Make sure that the heap size is set to about half the memory available

on the system and that the owner of the process is allowed to use this

limit.

Elasticsearch performs poorly when the system is swapping the memory.

---------------------------------- Network -----------------------------------

Set the bind address to a specific IP (IPv4 or IPv6):

network.host: localhost

Set a custom port for HTTP:

#http.port: 9200

Here a copy of the Journalctl:
root@Ubuntu-ELK:/etc/elasticsearch# journalctl -u elasticse arch.service
-- Logs begin at Wed 2020-10-21 14:14:06 UTC, end at Thu 2>
Oct 21 14:38:56 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 21 14:39:23 Ubuntu-ELK systemd[1]: Started Elasticsear>
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.servi>
-- Reboot --
Oct 21 15:47:44 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: Failed to start Ela>
Oct 21 20:04:59 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 21 20:05:25 Ubuntu-ELK systemd[1]: Started Elasticsear>
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 20:13:28 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Stopped Elasticsear>
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR>
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: [1]: >
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR>
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: Failed to start Ela>
Oct 21 20:39:10 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 21 20:46:45 Ubuntu-ELK systemd[1]: Started Elasticsear>
Oct 21 20:49:02 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 21 20:49:02 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 22 13:39:16 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: Failed to start Ela>
Oct 22 14:42:37 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: Failed to start Ela>
Oct 22 15:07:56 Ubuntu-ELK systemd[1]: Starting Elasticsea>
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: elasticsearch.servi>
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: Failed to start Ela>
lines 1-40...skipping...
-- Logs begin at Wed 2020-10-21 14:14:06 UTC, end at Thu 2020-10-22 15:52:31 UTC. --
Oct 21 14:38:56 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 14:39:23 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
-- Reboot --
Oct 21 15:47:44 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 21 20:04:59 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:05:25 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 21 20:13:28 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Succeeded.
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Stopped Elasticsearch.
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR: [1] bootstrap checks failed
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hos>
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsearch/elasticsearch.log
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=exited, status=78/CONFIG
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 21 20:39:10 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:46:45 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 20:49:02 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 20:49:02 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 13:39:16 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 22 14:42:37 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 22 15:07:56 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 22 15:08:40 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 15:08:44 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
ESCOD
-- Logs begin at Wed 2020-10-21 14:14:06 UTC, end at Thu 2020-10-22 15:52:31 UTC. --
Oct 21 14:38:56 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 14:39:23 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
-- Reboot --
Oct 21 15:47:44 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 21 20:04:59 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:05:25 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 21 20:13:28 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Succeeded.
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Stopped Elasticsearch.
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR: [1] bootstrap checks failed
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hos>
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsearch/elasticsearch.log
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=exited, status=78/CONFIG
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 21 20:39:10 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:46:45 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 20:49:02 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 20:49:02 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 13:39:16 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 13:39:19 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 22 14:42:37 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 14:42:40 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 22 15:07:56 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 22 15:07:59 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 22 15:08:40 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 22 15:08:44 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
ESCOD
-- Logs begin at Wed 2020-10-21 14:14:06 UTC, end at Thu 2020-10-22 15:52:31 UTC. --
Oct 21 14:38:56 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 14:39:23 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 14:57:45 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
-- Reboot --
Oct 21 15:47:44 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 21 15:47:54 Ubuntu-ELK systemd[1]: Failed to start Elasticsearch.
Oct 21 20:04:59 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:05:25 Ubuntu-ELK systemd[1]: Started Elasticsearch.
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Oct 21 20:06:00 Ubuntu-ELK systemd[1]: elasticsearch.service: Failed with result 'signal'.
Oct 21 20:13:28 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: elasticsearch.service: Succeeded.
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Stopped Elasticsearch.
Oct 21 20:20:54 Ubuntu-ELK systemd[1]: Starting Elasticsearch...
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR: [1] bootstrap checks failed
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hos>
Oct 21 20:24:30 Ubuntu-ELK systemd-entrypoint[5809]: ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsearch/elasticsearch.log
Oct 21 20:24:56 Ubuntu-ELK systemd[1]: elasticsearch.service: Main process exited, code=exited, status=78/CONFIG

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