Docker Image not starting up properly
See original GitHub issueI am unable to start the standard crate container:
> docker run -p 4200:4200 -p 4300:4300 -p 5432:5432 crate crate -Cnetwork.host=_site_
[2017-09-14T11:04:26,025][INFO ][o.e.n.Node ] [Hirscheck] initializing ...
[2017-09-14T11:04:26,115][INFO ][o.e.e.NodeEnvironment ] [Hirscheck] using [1] data paths, mounts [[/data (/dev/sda2)]], net usable_space [1.2tb], net total_space [1.9tb], spins? [possibly], types [xfs]
[2017-09-14T11:04:26,115][INFO ][o.e.e.NodeEnvironment ] [Hirscheck] heap size [7.3gb], compressed ordinary object pointers [true]
[2017-09-14T11:04:26,465][INFO ][i.c.plugin ] [Hirscheck] plugins loaded: [jmx-monitoring, lang-js]
[2017-09-14T11:04:27,896][INFO ][o.e.p.PluginsService ] [Hirscheck] no modules loaded
[2017-09-14T11:04:27,898][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [crate-azure-discovery]
[2017-09-14T11:04:27,898][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [es-repository-hdfs]
[2017-09-14T11:04:27,898][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [io.crate.plugin.BlobPlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [io.crate.plugin.CrateCorePlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [io.crate.plugin.HttpTransportPlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [io.crate.plugin.PluginLoaderPlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [io.crate.plugin.SrvPlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [io.crate.udc.plugin.UDCPlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [org.elasticsearch.discovery.ec2.Ec2DiscoveryPlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [org.elasticsearch.repositories.s3.S3RepositoryPlugin]
[2017-09-14T11:04:27,899][INFO ][o.e.p.PluginsService ] [Hirscheck] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
[2017-09-14T11:04:27,923][INFO ][o.e.n.Node ] [Hirscheck] node name [Hirscheck], node ID [s23OqJ6bTNaWJHfGoa8nxg]
[2017-09-14T11:04:27,961][INFO ][o.e.n.Node ] [Hirscheck] CrateDB version[2.1.6], pid[1], build[ef717e0/2017-08-29T11:08:06Z], OS[Linux/4.12.5-300.fc26.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_121/25.121-b13]
[2017-09-14T11:04:28,829][INFO ][i.c.module ] [Hirscheck] CrateDB Enterprise features are active. Please request a license before deploying in production or deactivate the Enterprise features. https://crate.io/enterprise
[2017-09-14T11:04:29,776][INFO ][o.e.d.DiscoveryModule ] [Hirscheck] using discovery type [zen]
[2017-09-14T11:04:32,001][INFO ][o.e.n.Node ] [Hirscheck] initialized
[2017-09-14T11:04:32,002][INFO ][o.e.n.Node ] [Hirscheck] starting ...
[2017-09-14T11:04:32,206][INFO ][psql ] [Hirscheck] publish_address {172.17.0.2:5432}, bound_addresses {172.17.0.2:5432}
[2017-09-14T11:04:32,234][INFO ][i.c.p.h.CrateNettyHttpServerTransport] [Hirscheck] publish_address {172.17.0.2:4200}, bound_addresses {172.17.0.2:4200}
[2017-09-14T11:04:32,252][INFO ][o.e.t.TransportService ] [Hirscheck] publish_address {172.17.0.2:4300}, bound_addresses {172.17.0.2:4300}
[2017-09-14T11:04:32,262][INFO ][o.e.b.BootstrapChecks ] [Hirscheck] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: initial heap size [268435456] not equal to maximum heap size [7906263040]; this can cause resize pauses and prevents mlockall from locking the entire heap
[2017-09-14T11:04:32,270][INFO ][o.e.n.Node ] [Hirscheck] stopping ...
[2017-09-14T11:04:32,437][INFO ][o.e.n.Node ] [Hirscheck] stopped
[2017-09-14T11:04:32,437][INFO ][o.e.n.Node ] [Hirscheck] closing ...
[2017-09-14T11:04:32,453][INFO ][o.e.n.Node ] [Hirscheck] closed
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Docker container not starting (docker start) - Stack Overflow
You are trying to run bash , an interactive shell that requires a tty in order to operate. It doesn't really make sense...
Read more >How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >Debugging docker container that won't start | by suprit shah
Docker exit code 1 indicates there is not enough memory to start a docker container. So the first thing you check is the...
Read more >Why Does My Docker Container Stop? - Tutorial Works
Run a long-lived service inside the container : Most containers run a long-living service, like a database or a web server. · Add...
Read more >What to Do if Docker Desktop for Windows Does Not Start
Remove Docker in “Add or remove programs”; Restart your computer ; Install Docker as Administrator (and not by running the installer directly).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi @zopyx, you need to set CREAT_HEAP_SIZE like documented here: https://crate.io/docs/crate/guide/best_practices/docker.html
following command solved my issue in Debian GNU/Linux 10 (buster) docker run --rm -ti --privileged $CRATEDB_IMAGE sysctl vm.max_map_count=262144