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
Unable to include settings for disabled plugins #14967
Comments
cc: @spalger |
@tylersmalley have you tested this with #14745 by chance? |
@spalger, I have not. Will check it out, thanks. |
@spalger, still seeing the error with your branch and the corresponding x-pack branch. |
I'm trying the kibana 6.1.2 docker image and I get that error Is there any solution to that problem? Thank you. |
@AntouanK, what docker image are you using? |
@tylersmalley |
I am using 6.1.2 as well. I remove xpack and set the environment variable to false. In Dockerfile: ENV XPACK_SECURITY_ENABLED false I do this for both Elasticsearch and Kibana. Elasticsearch starts up fine, but Kibana throws the following error: "message":""xpack.monitoring.ui.container.elasticsearch.enabled" setting was not applied. Check for spelling errors and ensure that expected plugins are installed and enabled." Any ideas how to fix this? |
@moetemad what happens if you omit the ENV from the dockerfile? Apart from that, I've essentially done the same as you and it seems to work for me (although I'm setting my own Kibana.yml via k8s as opposed to docker ENV but should be the same effect I believe) |
@eversC I tried setting the security to false via the yaml first, but it did not work. I set it in Elasticsearch and Kibana. No errors were thrown or anything, but Kibana would not load. Is there any other place I have to disable xpack? |
@moetemad, instead of disabling x-pack you can use the OS version. Click the arrow next to the version your interested in: https://www.docker.elastic.co/ For instance: |
@moetemad I believe you're seeing the error because i) xpack plugin is disabled in the image AND ii) you're trying to set config for said disabled plugin I don't think you can do both, so I'd try removing the xpack config ENV (or via yml) you've got set |
@tylersmalley Thank you. Do you know what the base image is for this? I am trying to perform some operations such as addgroup, adduser, etc. in my run.sh but it is not letting me do that. |
@tylersmalley @eversC Is there a way I can find the source file? I am trying to replace the ELASTICSEARCH _URL but it is not picking up the env variable. It remains to be http://elasticsearch:9200. Any ideas on how to fix this? ["error","elasticsearch","admin"],"pid":1,"message":"Request error, retrying\nGET http://elasticsearch:9200/.kibana/doc/config%3A6.1.2 => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"} |
@moetemad re: the env var, might be worth opening a bash shell to the kibana instance and checking it's being set to what you want? re: kibana.yml override, again open a bash shell, and check your yml is present, and in the right place? I believe it should be in just to complicate things, I put my kibana.yml in if you believe everything is in place (env var, kibana.yml) on your kibana instance, and it's still not working, it would be worth raising a new issue -- this seems to have digressed a lot since OP |
@eversC Thanks, I fixed that issue by using a post init in my kubernetes yaml. I have kibana as a docker image and ES as a service on CentOS. The connection is now working and all is good. There is a problem though. Kibana does not seem to pull data from ES. When I hit : http://host-ip:9200/_cat/indices?v I see all indices with green status. But my kibana shows: Couldn't find any Elasticsearch data Any ideas why this is happening? |
As of #12554, we prevent Kibana from starting up when the config includes invalid keys. This aligns with the behavior in ES.
However, the available settings do not include those of disabled plugins.
This is particularly a problem with kibana-docker, where we default
xpack.monitoring.ui.container.elasticsearch.enabled=true
and a user wishes to disable monitoring.Raised here: elastic/kibana-docker#56
The text was updated successfully, but these errors were encountered: