InfoSecInnovations / concierge

Repo for Concierge AI dev work
Apache License 2.0
149 stars 28 forks source link

OpenSearch Red/Not Starting #34

Open gig-e opened 2 weeks ago

gig-e commented 2 weeks ago

After initial install with no errors, OpenSearch shows as Red on the dashboard. Docker logs states: OpenSearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/opensearch/data/nodes];

Accessing the container via bash shows that /usr/share/opensearch/data belongs to root:root and only root has write permissions.

After changing ownership of data to opensearch:opensearch, and restarting, it continuously crashes with the following error and restarts: ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

After setting my vm.max_map_count=262144 in /etc/sysctl.conf on the host, everything started working.

sebovzeoueb commented 2 weeks ago

Thanks for the report, I had thought that setting vm.max_map_count was optional but I may have been incorrect about that, I will update the README to highlight that people probably need to change this setting.