root@d-gp2-es46-1:~# service elasticsearch start
Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
root@d-gp2-es46-1:~# service elasticsearch status
Nov 30 17:09:48 d-gp2-es46-1 systemd[1]: Starting Elasticsearch...
Nov 30 17:09:48 d-gp2-es46-1 systemd[1]: elasticsearch.service: Control process exited, code=exited status=203
Nov 30 17:09:48 d-gp2-es46-1 systemd[1]: Failed to start Elasticsearch.
Nov 30 17:09:48 d-gp2-es46-1 systemd[1]: elasticsearch.service: Unit entered failed state.
Nov 30 17:09:48 d-gp2-es46-1 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
-- vi /usr/lib/systemd/system/elasticsearch.service ... make the below changes for it to startup.
[Service]
LimitMEMLOCK=infinity
Environment=ES_HOME=/usr/share/elasticsearch
Environment=CONF_DIR=/etc/elasticsearch
Environment=DATA_DIR=/data/elasticsearch
Environment=LOG_DIR=/var/log/elasticsearch
Environment=PID_DIR=/var/run/elasticsearch
EnvironmentFile=-/etc/default/elasticsearch
#ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
ExecStart=/usr/share/elasticsearch/bin/elasticsearch
-p ${PID_DIR}/elasticsearch.pid
--quiet
-Epath.logs=${LOG_DIR}
-Epath.data=${DATA_DIR}
This file exists in 5.6.1 but after installing 6.0.0 on Ubuntu 16.04 .... it does not exist anymore.
That is correct. We no longer use this file in 6.0.0.
The core issue you have is that your elasticsearch.service file still refers to it (although you've since resolved that).
It is likely that you edited that elasticsearch.service at some point in the past, so when you upgraded your elasticsearch install, the package manager was unable to reconcile the changes in the .deb with your local installation.
Even though you have worked around this issue, you should check the logs from your upgrade because it is possible that you have missed other installation steps that could be important.
The only change I made was the following that is documented on elasticsearch's website. Is there another way to be able to set "bootstrap.memory_lock: true" in the config file and have it start up?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.