I'm trying to create a cluster on AWS but cannot start the service


#1

I was creating a ES 5.4 cluster on AWS. But the service cannot start with no useful error message:
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-05-26 16:23:04 -08; 8s ago
Docs: http://www.elastic.co
Process: 10500 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
Process: 10498 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 10500 (code=exited, status=1/FAILURE)

May 26 16:23:04 ip-172-31-35-134.localdomain systemd[1]: Starting Elasticsearch...
May 26 16:23:04 ip-172-31-35-134.localdomain systemd[1]: Started Elasticsearch.
May 26 16:23:04 ip-172-31-35-134.localdomain systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
May 26 16:23:04 ip-172-31-35-134.localdomain systemd[1]: Unit elasticsearch.service entered failed state.
May 26 16:23:04 ip-172-31-35-134.localdomain systemd[1]: elasticsearch.service failed.
Checking jexec statusnetconsole module not loaded

I took a look at the "/data/elasticlog" folder which i set for logs. There is no log.
And I copied the config files from /etc/elasticsearch to /usr/share/elasticsearch/config and try to run elasticsearch from /bin directly. It works!

Any idea about this issue or where i can find the error log for the service will be very appreciated.
Thanks!


(Mark Walkom) #2

How did you install ES?


#3

Update. Some configuration are not supported in ES5.0 like the ES_HEAP_SIZE. I followed an old document to configure the system so it doesn't work.


(system) #4

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