Hi, I am new to Elastic search. I just installed made my first installation on a CentOS 7 and it was working, then I tried to config the tried to configure Elasticsearch to start automatically when the system boots up as explained here and restarted the server. Now I can't start ElasticSearch.
When I try to run it, I get this error:
Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
When I run the systemctl status elasticsearch.service I get this:
@Coinology I am sorry, I read it a couple of time but I'm not sure what I am supposed to do.
I ran mount -o remount,noexec /tmp but still getting the error: Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
@justaniceguy If I am correct, the problem stems from /tmp being mounted with the noexec option. You will want to mount it without this option.
Try to do mount -o remount,exec /tmp - I would think that should work. To prevent this type of behavior on startup, I believe you would want to edit /etc/fstab and remove noexec.
If you prefer, you can also change the location of the JNA temporary directory using the -Djna.tmpdir=<path> JVM option.
@coinology Thanks, the mount -o remount,exec /tmp command works like a charm.
Now I am trying to remove noexec from /etc/fstab but I couldn't find it there. This is the content of the file:
#
# /etc/fstab
# Created by anaconda on Wed Aug 21 11:03:58 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/vda1 / xfs defaults,uquota 0 0
/usr/swpDSK swap swap defaults 0 0
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0
As I couldn't find it there, I restarted the server to see If I would need to remove noexe again, and I needed it.
I am very happy to to be able to run Elasticsearch again. I how you can help me with this too.
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.