As my elasticsearch stop frequently, I decide to reinstall it on my debian jessie.
I did the following commands :
sudo apt-get --purge autoremove elasticsearch
sudo rm -rf /var/lib/elasticsearch/
sudo rm -rf /etc/elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt update && sudo apt install elasticsearch
sudo update-rc.d elasticsearch defaults 95 10
I tried also sudo -i service elasticsearch start
However at the end of installation, my elasticsearch service won't start and I don't know why :
The following is the status log of my Elasticsearch :
systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled)
Active: failed (Result: signal) since mar. 2017-10-24 10:33:41 CEST; 2min 38s ago
Docs: http://www.elastic.co
Process: 24344 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=killed, signal=KILL)
Process: 24341 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 24344 (code=killed, signal=KILL)
oct. 24 10:33:37 vps75137.ovh.net systemd[1]: Started Elasticsearch.
oct. 24 10:33:41 vps75137.ovh.net systemd[1]: elasticsearch.service: main process exited, code=killed, status=9/KILL
oct. 24 10:33:41 vps75137.ovh.net systemd[1]: Unit elasticsearch.service entered failed state.
I don't know why ?
There is nothing in my /var/log/elasticsearch/
Oct 24 10:33:37 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/nfs-common.service: No such file or directory
Oct 24 10:33:37 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/rpcbind.service: No such file or directory
Oct 24 10:33:37 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/systemd-random-seed.service: No such file or directory
Oct 24 10:33:37 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/networking.service: No such file or directory
Oct 24 10:33:37 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/systemd-journald.service: No such file or directory
Oct 24 10:33:37 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/systemd-remount-fs.service: No such file or directory
Oct 24 10:33:37 vps75137 systemd[1]: Started Elasticsearch.
Oct 24 10:33:41 vps75137 systemd[1]: elasticsearch.service: main process exited, code=killed, status=9/KILL
Oct 24 10:33:41 vps75137 systemd[1]: Unit elasticsearch.service entered failed state.
Oct 24 10:39:01 vps75137 CRON[24384]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
You can see a "3" at the end of comment's line. You need to remove it. After that, I reinstall Elasticsearch.
However, same result for Elasticsearch . My new syslog :
Oct 25 14:24:08 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/systemd-tmpfiles-setup.service: No such file or directory
Oct 25 14:24:08 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/nfs-common.service: No such file or directory
Oct 25 14:24:08 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/rpcbind.service: No such file or directory
Oct 25 14:24:08 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/systemd-random-seed.service: No such file or directory
Oct 25 14:24:08 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/networking.service: No such file or directory
Oct 25 14:24:08 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/systemd-journald.service: No such file or directory
Oct 25 14:24:08 vps75137 systemd[1]: Failed to reset devices.list on /system.slice/systemd-remount-fs.service: No such file or directory
Oct 25 14:24:08 vps75137 systemd[1]: Started Elasticsearch.
Oct 25 14:24:12 vps75137 systemd[1]: elasticsearch.service: main process exited, code=killed, status=9/KILL
Oct 25 14:24:12 vps75137 systemd[1]: Unit elasticsearch.service entered failed state.
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.