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

magento2_elasticsearch_1 exited with code 78 #190

Closed
asnodj opened this issue Nov 6, 2019 · 7 comments
Closed

magento2_elasticsearch_1 exited with code 78 #190

asnodj opened this issue Nov 6, 2019 · 7 comments
Assignees
Labels

Comments

@asnodj
Copy link

asnodj commented Nov 6, 2019

Description
I'm getting elasticsearch 78 error code.

elasticsearch_1 | ERROR: [1] bootstrap checks failed
elasticsearch_1 | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
elasticsearch_1 | [2019-11-06T15:08:02,344][INFO ][o.e.n.Node ] [W12Dg-4] stopping ...
elasticsearch_1 | [2019-11-06T15:08:02,441][INFO ][o.e.n.Node ] [W12Dg-4] stopped
elasticsearch_1 | [2019-11-06T15:08:02,441][INFO ][o.e.n.Node ] [W12Dg-4] closing ...
elasticsearch_1 | [2019-11-06T15:08:02,452][INFO ][o.e.n.Node ] [W12Dg-4] closed
elasticsearch_1 | [2019-11-06T15:08:02,454][INFO ][o.e.x.m.j.p.NativeController] [W12Dg-4] Native controller process has stopped - no new native processes can be started
magento2_elasticsearch_1 exited with code 78

Steps To Reproduce

  1. docker-compose up

Expected Result
elasticsearch_1 | ERROR: [1] bootstrap checks failed
elasticsearch_1 | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
elasticsearch_1 | [2019-11-06T15:08:02,344][INFO ][o.e.n.Node ] [W12Dg-4] stopping ...
elasticsearch_1 | [2019-11-06T15:08:02,441][INFO ][o.e.n.Node ] [W12Dg-4] stopped
elasticsearch_1 | [2019-11-06T15:08:02,441][INFO ][o.e.n.Node ] [W12Dg-4] closing ...
elasticsearch_1 | [2019-11-06T15:08:02,452][INFO ][o.e.n.Node ] [W12Dg-4] closed
elasticsearch_1 | [2019-11-06T15:08:02,454][INFO ][o.e.x.m.j.p.NativeController] [W12Dg-4] Native controller process has stopped - no new native processes can be started
magento2_elasticsearch_1 exited with code 78

Actual Result
elasticsearch_1 | ERROR: [1] bootstrap checks failed
elasticsearch_1 | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
elasticsearch_1 | [2019-11-06T15:08:02,344][INFO ][o.e.n.Node ] [W12Dg-4] stopping ...
elasticsearch_1 | [2019-11-06T15:08:02,441][INFO ][o.e.n.Node ] [W12Dg-4] stopped
elasticsearch_1 | [2019-11-06T15:08:02,441][INFO ][o.e.n.Node ] [W12Dg-4] closing ...
elasticsearch_1 | [2019-11-06T15:08:02,452][INFO ][o.e.n.Node ] [W12Dg-4] closed
elasticsearch_1 | [2019-11-06T15:08:02,454][INFO ][o.e.x.m.j.p.NativeController] [W12Dg-4] Native controller process has stopped - no new native processes can be started
magento2_elasticsearch_1 exited with code 78

@asnodj asnodj changed the title :08:02,452][INFO ][o.e.n.Node ] [W12Dg-4] closed elasticsearch_1 | [2019-11-06T15:08:02,454][INFO ][o.e.x.m.j.p.NativeController] [W12Dg-4] Native controller process has stopped - no new native processes can be started magento2_elasticsearch_1 exited with code 78 magento2_elasticsearch_1 exited with code 78 Nov 6, 2019
@markshust
Copy link
Owner

need steps to replicate

@dmanners
Copy link
Contributor

dmanners commented Nov 8, 2019

I had the same issue today. After some googling I seem to have found this is related to your host's vm.max_map_count setting.

After running sudo sysctl -w vm.max_map_count=262144 and then bin/restart inside the project dir all the containers started without a problem.

elastic/elasticsearch#21523 (comment)

@markshust
Copy link
Owner

Thanks @dmanners -- I'll try to make this update shortly

@markshust markshust self-assigned this Dec 21, 2019
@markshust markshust added the task label Dec 21, 2019
@markshust
Copy link
Owner

What operating system are you two on? I am unable to replicate on macOS. The vm.max_map_count setting shouldn't have anything to do with the host, since this is a elasicsearch-container-specific setting.

@piotrkwiecinski
Copy link
Contributor

It has to be set up on linux host. An additional reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html

@markshust
Copy link
Owner

Thanks! Added to documentation. Closing this one out

markshust added a commit that referenced this issue Jan 6, 2020
@markshust
Copy link
Owner

@piotrkwiecinski totally missed your PR! hah. I reverted mine and merged your update in, thanks much! #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants