-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
Elasticsearch version (bin/elasticsearch --version): 5.6
Plugins installed: none
JVM version (java -version): 1.8.0_144
OS version (uname -a if on a Unix-like system): Debian 4.9.30-2+deb9u3
Description of the problem including expected versus actual behavior:
When upgrading from Elasticsearch 5.5.x to 5.6 using the deb repository, I noticed that limitMEMLOCK setting had disappeared from /usr/lib/systemd/system/elasticsearch.service while LimitAS and LimitFSIZE had appeared. I though the latter replaced the former. But when I started elasticsearch, there was an error :
[2017-09-14T10:11:33,055][ERROR][o.e.b.Bootstrap ] [ISC-LAB-ES011] node validation exception
[1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked
[2017-09-14T10:11:33,062][INFO ][o.e.n.Node ] [ISC-LAB-ES011] stopping ...
[2017-09-14T10:11:33,133][INFO ][o.e.n.Node ] [ISC-LAB-ES011] stopped
[2017-09-14T10:11:33,133][INFO ][o.e.n.Node ] [ISC-LAB-ES011] closing ...
[2017-09-14T10:11:33,151][INFO ][o.e.n.Node ] [ISC-LAB-ES011] closed
To fix it, I simply added back the LimitMEMLOCK setting.
Steps to reproduce:
- Install Elasticsearch 5.6 from deb repository
- Start it.
Provide logs (if relevant):