I got following error while installing Elasticsearch 5.4.0 from .deb file:
dpkg -i elasticsearch-5.4.0.deb
Selecting previously unselected package elasticsearch.
(Reading database ... 54562 files and directories currently installed.)
Preparing to unpack elasticsearch-5.4.0.deb ...
Unpacking elasticsearch (5.4.0) ...
Setting up elasticsearch (5.4.0) ...
Couldn't write '262144' to 'vm/max_map_count', ignoring: Permission denied
Couldn't write '1' to 'kernel/yama/ptrace_scope', ignoring: No such file or directory
Couldn't write '1' to 'kernel/kptr_restrict', ignoring: Permission denied
Couldn't write '1' to 'fs/protected_hardlinks', ignoring: No such file or directory
Couldn't write '176' to 'kernel/sysrq', ignoring: Permission denied
Couldn't write '1' to 'fs/protected_symlinks', ignoring: No such file or directory
dpkg: error processing package elasticsearch (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu17) ...
Errors were encountered while processing:
elasticsearch
May 24 05:52:37 kibana systemd[1]: Starting Elasticsearch...
May 24 05:52:37 kibana systemd[1]: Started Elasticsearch.
May 24 05:52:41 kibana systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
May 24 05:52:41 kibana systemd[1]: elasticsearch.service: Unit entered failed state.
May 24 05:52:41 kibana systemd[1]: elasticsearch.service: Failed with result 'signal'.
After increasing RAM to 4G I now see logs. It says:
bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
I have inserted following to elasticsearch.yml
bootstrap.system_call_filter: false
but not working. After this I changed network.host to localhost instead of public ip, then it worked. But the actual problem is related with OpenVZ and vm.max_map_count size. This discussion is all over the github and didnt find any solution which worked.
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.