Issues starting elastic search

I'm currently attempting to install and run Elasticsearch on CloudLinux, but I'm encountering some difficulties. The main issue is the absence of a .log file in the directory:

/var/log/elasticsearch

Despite the log path being properly defined in:

/etc/elasticsearch/elasticsearch.yml

The only types of files present are:

-rw-r--r-- 1 elasticsearch elasticsearch  4489 May 15 18:30 gc.log
-rw-r--r-- 1 elasticsearch elasticsearch   131 May 15 17:59 gc.log.00
-rw-r--r-- 1 elasticsearch elasticsearch   131 May 15 18:00 gc.log.01
-rw-r--r-- 1 elasticsearch elasticsearch  2136 May 15 18:16 gc.log.02
-rw-r--r-- 1 elasticsearch elasticsearch  2874 May 15 18:16 gc.log.03
-rw-r--r-- 1 elasticsearch elasticsearch  2136 May 15 18:26 gc.log.04
-rw-r--r-- 1 elasticsearch elasticsearch  4082 May 15 18:26 gc.log.05
-rw-r--r-- 1 elasticsearch elasticsearch  2136 May 15 18:29 gc.log.06
-rw-r--r-- 1 elasticsearch elasticsearch  5297 May 15 18:29 gc.log.07
-rw-r--r-- 1 elasticsearch elasticsearch  2136 May 15 18:30 gc.log.08
-rw-r--r-- 1 elasticsearch elasticsearch 22926 May 15 17:59 hs_err_pid929569.log
-rw-r--r-- 1 elasticsearch elasticsearch 22926 May 15 18:00 hs_err_pid929948.log

SystemCTL log:

May 15 18:30:41 techtree.mysticnet.com systemd-entrypoint[938900]:         at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.j>
May 15 18:30:41 techtree.mysticnet.com systemd-entrypoint[938900]:         at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearc>
May 15 18:30:41 techtree.mysticnet.com systemd-entrypoint[938900]:         at org.elasticsearch.cli.EnvironmentAwareCommand.execute(Environm>
May 15 18:30:41 techtree.mysticnet.com systemd-entrypoint[938900]:         at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command>
May 15 18:30:41 techtree.mysticnet.com systemd-entrypoint[938900]:         at org.elasticsearch.cli.Command.main(Command.java:77)
May 15 18:30:41 techtree.mysticnet.com systemd-entrypoint[938900]:         at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.j>
May 15 18:30:41 techtree.mysticnet.com systemd-entrypoint[938900]:         at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.j>
May 15 18:30:41 techtree.mysticnet.com systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
May 15 18:30:41 techtree.mysticnet.com systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
May 15 18:30:41 techtree.mysticnet.com systemd[1]: Failed to start Elasticsearch.

How can I debug this further is there anywhere else a file in which I need to take a look in order to find any logs?

Hi @tanchev,

Can you share your yml configuration? Can you also check if that's the full log error. It looks like a partial stack trace to me with the top cut off, but it looks like Elasticsearch is struggling to start.

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