docdoku / docdoku-plm-docker

Docker configuration files for creating DocDokuPLM images
10 stars 12 forks source link

ElasticSearch container faild #1

Closed sah4ez closed 7 years ago

sah4ez commented 7 years ago

When I run docker-compose my container docdokuplmdocker_es_1 failed with such as log file:

user@pc:~/docdoku-plm-docker$ docker logs docdokuplmdocker_es_1 
[2017-06-30T19:59:12,850][INFO ][o.e.n.Node               ] [] initializing ...
[2017-06-30T19:59:13,284][INFO ][o.e.e.NodeEnvironment    ] [4UfoEra] using [1] data paths, mounts [[/ (none)]], net usable_space [20.3gb], net total_space [27.3gb], spins? [possibly], types [aufs]
[2017-06-30T19:59:13,284][INFO ][o.e.e.NodeEnvironment    ] [4UfoEra] heap size [494.9mb], compressed ordinary object pointers [true]
[2017-06-30T19:59:13,286][INFO ][o.e.n.Node               ] node name [4UfoEra] derived from node ID [4UfoEraYRs-Its4Utl86KA]; set [node.name] to override
[2017-06-30T19:59:13,286][INFO ][o.e.n.Node               ] version[5.4.0], pid[1], build[780f8c4/2017-04-28T17:43:27.229Z], OS[Linux/4.8.0-58-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_131/25.131-b12]
[2017-06-30T19:59:16,765][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [aggs-matrix-stats]
[2017-06-30T19:59:16,765][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [ingest-common]
[2017-06-30T19:59:16,765][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-expression]
[2017-06-30T19:59:16,765][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-groovy]
[2017-06-30T19:59:16,767][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-mustache]
[2017-06-30T19:59:16,767][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-painless]
[2017-06-30T19:59:16,767][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [percolator]
[2017-06-30T19:59:16,767][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [reindex]
[2017-06-30T19:59:16,767][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [transport-netty3]
[2017-06-30T19:59:16,767][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [transport-netty4]
[2017-06-30T19:59:16,768][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded plugin [ingest-geoip]
[2017-06-30T19:59:16,768][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded plugin [ingest-user-agent]
[2017-06-30T19:59:16,768][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded plugin [x-pack]
[2017-06-30T19:59:20,504][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/55] [Main.cc@128] controller (64 bit): Version 5.4.0 (Build 120b96fa7f6fa7) Copyright (c) 2017 Elasticsearch BV
[2017-06-30T19:59:20,586][INFO ][o.e.d.DiscoveryModule    ] [4UfoEra] using discovery type [zen]
[2017-06-30T19:59:21,987][INFO ][o.e.n.Node               ] initialized
[2017-06-30T19:59:21,988][INFO ][o.e.n.Node               ] [4UfoEra] starting ...
[2017-06-30T19:59:23,654][INFO ][o.e.t.TransportService   ] [4UfoEra] publish_address {172.18.0.2:9300}, bound_addresses {0.0.0.0:9300}
[2017-06-30T19:59:23,793][INFO ][o.e.b.BootstrapChecks    ] [4UfoEra] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2017-06-30T19:59:23,809][INFO ][o.e.n.Node               ] [4UfoEra] stopping ...
[2017-06-30T19:59:23,813][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started
[2017-06-30T19:59:23,882][INFO ][o.e.n.Node               ] [4UfoEra] stopped
[2017-06-30T19:59:23,882][INFO ][o.e.n.Node               ] [4UfoEra] closing ...
[2017-06-30T19:59:23,892][INFO ][o.e.n.Node               ] [4UfoEra] closed
[2017-07-01T10:11:27,617][INFO ][o.e.n.Node               ] [] initializing ...
[2017-07-01T10:11:27,997][INFO ][o.e.e.NodeEnvironment    ] [4UfoEra] using [1] data paths, mounts [[/ (none)]], net usable_space [20.1gb], net total_space [27.3gb], spins? [possibly], types [aufs]
[2017-07-01T10:11:27,997][INFO ][o.e.e.NodeEnvironment    ] [4UfoEra] heap size [494.9mb], compressed ordinary object pointers [true]
[2017-07-01T10:11:27,999][INFO ][o.e.n.Node               ] node name [4UfoEra] derived from node ID [4UfoEraYRs-Its4Utl86KA]; set [node.name] to override
[2017-07-01T10:11:27,999][INFO ][o.e.n.Node               ] version[5.4.0], pid[1], build[780f8c4/2017-04-28T17:43:27.229Z], OS[Linux/4.8.0-58-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_131/25.131-b12]
[2017-07-01T10:11:33,404][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [aggs-matrix-stats]
[2017-07-01T10:11:33,404][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [ingest-common]
[2017-07-01T10:11:33,404][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-expression]
[2017-07-01T10:11:33,405][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-groovy]
[2017-07-01T10:11:33,405][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-mustache]
[2017-07-01T10:11:33,405][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [lang-painless]
[2017-07-01T10:11:33,405][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [percolator]
[2017-07-01T10:11:33,405][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [reindex]
[2017-07-01T10:11:33,405][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [transport-netty3]
[2017-07-01T10:11:33,405][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded module [transport-netty4]
[2017-07-01T10:11:33,406][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded plugin [ingest-geoip]
[2017-07-01T10:11:33,406][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded plugin [ingest-user-agent]
[2017-07-01T10:11:33,406][INFO ][o.e.p.PluginsService     ] [4UfoEra] loaded plugin [x-pack]
[2017-07-01T10:11:39,023][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/55] [Main.cc@128] controller (64 bit): Version 5.4.0 (Build 120b96fa7f6fa7) Copyright (c) 2017 Elasticsearch BV
[2017-07-01T10:11:39,134][INFO ][o.e.d.DiscoveryModule    ] [4UfoEra] using discovery type [zen]
[2017-07-01T10:11:40,290][INFO ][o.e.n.Node               ] initialized
[2017-07-01T10:11:40,290][INFO ][o.e.n.Node               ] [4UfoEra] starting ...
[2017-07-01T10:11:40,962][INFO ][o.e.t.TransportService   ] [4UfoEra] publish_address {172.18.0.3:9300}, bound_addresses {0.0.0.0:9300}
[2017-07-01T10:11:40,969][INFO ][o.e.b.BootstrapChecks    ] [4UfoEra] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2017-07-01T10:11:40,988][INFO ][o.e.n.Node               ] [4UfoEra] stopping ...
[2017-07-01T10:11:40,993][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started
[2017-07-01T10:11:41,081][INFO ][o.e.n.Node               ] [4UfoEra] stopped
[2017-07-01T10:11:41,082][INFO ][o.e.n.Node               ] [4UfoEra] closing ...
[2017-07-01T10:11:41,111][INFO ][o.e.n.Node               ] [4UfoEra] closed
sah4ez commented 7 years ago

Typed this command: sudo sysctl -w vm.max_map_count=262144 and all works.