-
Notifications
You must be signed in to change notification settings - Fork 345
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
Figure out what's up with 5.0 #98
Comments
Wagering a guess, I'm thinking that Docker's seccomp filter is blocking that unimplemented syscall outright instead of returning |
If I run it on Docker 1.9.1 (before seccomp filtering was implemented), it gets past that line and I get errors about missing cluster config instead, so that's pretty good confirmation of my guess. |
Same with |
Here's the next hurdle (which is more one of new functionality than Docker blocking us):
|
|
- `elasticsearch`: remove EOL 1.3, add 5.0.0-alpha1 (has some seccomp issues; see docker-library/elasticsearch#98) - `ghost`: 0.7.9 - `java`: 9~b113-1 - `kibana`: 5.0.0-alpha1 - `logstash`: 5.0.0-alpha1 - `mongo`: 3.2.5 - `tomcat`: 7.0.69
- `elasticsearch`: remove EOL 1.3, add 5.0.0-alpha1 (has some seccomp issues; see docker-library/elasticsearch#98) - `ghost`: 0.7.9 - `java`: 9~b113-1 - `kibana`: 5.0.0-alpha1 - `logstash`: 5.0.0-alpha1 - `mongo`: 3.2.5 - `tomcat`: 7.0.69
- `elasticsearch`: remove EOL 1.3, add 5.0.0-alpha1 (has some seccomp issues; see docker-library/elasticsearch#98) - `ghost`: 0.7.9 - `java`: 9~b113-1 - `kibana`: 5.0.0-alpha1 - `logstash`: 5.0.0-alpha1 - `mongo`: 3.2.5 - `tomcat`: 7.0.69
The saga continues with
|
Ok, we might want to add |
(At least for our tests -- I don't think our default config should reasonably include |
@tianon hi, the error you show from |
I think adjusting I'm not sure yet how to overcome the heap size check properly 😞 |
$ docker run -it --rm --sysctl vm.max_map_count=262144 elasticsearch:5.0 -E es.bootstrap.seccomp=false
invalid value "vm.max_map_count=262144" for flag --sysctl: sysctl 'vm.max_map_count=262144' is not whitelisted
See 'docker run --help'. |
I see, so |
@xificurC I increased Without the
and then just crashes. |
@tobstarr Thanks, these changes make |
Just ran across this as well. Is there a fix or a workaround? I am using the Docker beta app and don't know of a way to adjust |
@jmreicha I am running into the same issue and using the Beta app as well....did you find a workaround to this? |
@owjprice No I didn't spend much time on it, I just reverted back to 2.3 for now. |
I'm able to launch $ docker run -it --rm -e ES_JAVA_OPTS='-Xms1g -Xmx1g' elasticsearch:5 -E bootstrap.ignore_system_bootstrap_checks=true
.... |
I can confirm @tianon 's command works, but container seems to hang after a while. |
- `elasticsearch`: remove EOL 1.3, add 5.0.0-alpha1 (has some seccomp issues; see docker-library/elasticsearch#98) - `ghost`: 0.7.9 - `java`: 9~b113-1 - `kibana`: 5.0.0-alpha1 - `logstash`: 5.0.0-alpha1 - `mongo`: 3.2.5 - `tomcat`: 7.0.69
@tianon , |
|
Increase max_map_count on the Host System (Pls. note not in the Docker) using the following command I have added this to the Dockerfile itself which has Fixed the Problem |
@nguoianphu with Docker Toolbox, your VM is likely boot2docker, so you'll want to add it to |
hey, folks. just chiming an opinion in. Elasticsearch is (or was) and extremely easy storage setup. No weird knowledge required. I'd highly recommend someone from elasticsearch trying to figure out a pragmatic update to ES itself which allows it to work with "listen all" and without require host modifications. Otherwise, downstream users, especially those with limited experience will perceive Elasticsearch as expert-only and/or fail. Being able to quickly start without wizard skills is probably a part of ES' success and something that it should be able to retain. |
There is an error when trying to use latest elastic search. Falling back to 2.3 works. See docker-library/elasticsearch#98 (comment)
I also noticed that a few of the options (e.g. |
@nubunto I think https://www.elastic.co/guide/en/elasticsearch/reference/5.0/es-release-notes.html might be what you're looking for. https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking-changes-5.0.html is probably also useful for what you're looking for. |
Worked for me, thank you very much. First try: (Failure) elasticsearch | [2016-12-12T10:31:36,346][INFO ][o.e.n.Node ] [Fovo3av] starting ... Second try after updating vm.max_map_count: (Success) elasticsearch | [2016-12-12T10:34:54,902][INFO ][o.e.n.Node ] [Fovo3av] initialized |
This is still not solved... For those who "solve" this by modifying host settings: seriously? What is the point of running this in a container if you have to modify host settings? As of right now the master is completely unusable with |
@least-olegs the value in question has to be modified on the host -- it is not scoped to any namespace, and Elasticsearch 5.x is more aggressive about enforcing it than previous versions where. There's not really anything further we can do from the Dockerization itself to solve this. |
There's not really anything further we can do from the Dockerization
itself to solve this.
this is the key sentence. nothing to do in this repo at the moment. If a
core code change to elasticsearch occurred, which would prevent the need of
host modification (at the expense of performance or some other tradeoff),
then we'd change this repo to enable that feature. Until then, nothing to
do.
|
@tianon you are plain wrong. For these reasons:
|
@least-olegs FYI you're in a docker repo complaining about ES's new requirement to a docker person. |
I've just reproduced on Could anyone please explain why is it closed? Host modification can not be a way to run a container. |
Upstream's startup checks in 5.x are now more explicit about the host environment settings. There is nothing we can do from the image to configure those for you, which is why the image documentation now explicitly mentions configuring those bits on your host yourself. The settings in question are not namespaced to containers, and thus cannot be adjusted by a container, or by a |
See also elastic/elasticsearch#4978 (comment) for some notes from upstream on why they've made this change:
|
See #153 for a possible pending fix to this issue (essentially no longer having the image in "production" mode by default). 👍 |
We have merged a fix in #153 so that elasticsearch will run anywhere by default (by not needing to run the bootstrap checks). The minimal set to make it work for clustering is the following: $ docker run -d --name elas elasticsearch -Etransport.host=0.0.0.0 -Ediscovery.zen.minimum_master_nodes=1
$ # note, running it with these flags would require the bootstrap checks to pass (vm.max_map_count, etc) These same configs could also be put in a custom config file to replace what is currently there. This will be available on the Docker Hub once a PR to official-images has been made and merged. (hopefully later today). |
Full log from running it:
(from #96)
The text was updated successfully, but these errors were encountered: