Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] memory locking requested for opensearch process but memory is not locked #8994

Open
iwikus opened this issue Jul 31, 2023 · 3 comments
Labels
bug Something isn't working Cluster Manager

Comments

@iwikus
Copy link

iwikus commented Jul 31, 2023

Describe the bug
[ERROR][o.o.b.Bootstrap ] [] node validation exception
[1] bootstrap checks failed
[1]: memory locking requested for opensearch process but memory is not locked

To Reproduce
Switch to production usage (bind to non-localhost ip)
Bootstrap checks fails, because systemd unit file is missing

LimitMEMLOCK=infinity

Expected behavior
Service will start without editing systemd unit file.

Plugins
N/A

Screenshots

Host/Environment (please complete the following information):

  • OS: ubuntu
  • Version 20.04

Additional context

@Sir-HatX
Copy link

Whats the work around for this error ?

@adrian-arapiles
Copy link

adrian-arapiles commented May 20, 2024

Whats the work around for this error ?

Until they fix that, if you are using systemd, you can create your own file on (in debian) /etc/systemd/system/opensearch.service.d/whatever.conf
with

LimitMEMLOCK=infinity

to apply additional config to opensearch.service.
Any drop file on /etc/systemd/system/opensearch.service.d is applied after default .service

@pitch-d
Copy link

pitch-d commented Dec 17, 2024

in above override of default .service you should specify that it's a service

[Service]
LimitMEMLOCK=infinity

as default /usr/lib/systemd/system/opensearch.service ends with

[Install]
WantedBy=multi-user.target

and also, don't forget to run systemctl daemon-reload before restarting service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cluster Manager
Projects
Status: 🆕 New
Development

No branches or pull requests

7 participants