Running Kibana on Docker Swarm: Settings for "elasticsearch" were not applied

I'm trying to get Kibana running on Docker Swarm using a compose file. I have a running Elasticsearch instance without XPack. I'm trying to just get the most vanilla installation running with minimal options.

My configuration looks like this:

services:
  kibana:
    image: docker.elastic.co/kibana/kibana:5.6.1
    deploy:
      mode: replicated
      replicas: 1
    ports:
      - "5601:5601"
    environment:
      SERVER_NAME: "My Kibana"
      XPACK_MONITORING_ENABLED: "false"
      XPACK_SECURITY_ENABLED: "false"
      ELASTICSEARCH_USERNAME: ""
      ELASTICSEARCH_PASSWORD: ""
      SERVER_PORT: "5601"
  ELASTICSEARCH_URL: http://10.0.5.10:9200

When I run this my logs show:

{"type":"log","@timestamp":"2017-09-19T11:30:56Z",
 "tags":["warning","config"],"pid":1,
 "message":"Settings for \"elasticsearch\" were not applied, check for spelling errors and ensure the plugin is loaded."}
{"type":"log","@timestamp":"2017-09-19T11:30:56Z",
 "tags":["warning","config"],"pid":1,
 "message":"Settings for \"xpack\" were not applied, check for spelling errors and ensure the plugin is loaded."}
{"type":"log","@timestamp":"2017-09-19T11:30:56Z",
 "tags":["listening","info"],"pid":1,
 "message":"Server running at http://localhost:5601"}
{"type":"log","@timestamp":"2017-09-19T11:30:56Z",
 "tags":["status","ui settings","error"],"pid":1,"state":"red",
 "message":"Status changed from uninitialized to red - UI Settings requires the elasticsearch plugin","prevState":"uninitialized","prevMsg":"uninitialized"}

When I visit the web app I get:

{
    "statusCode": 404,
    "error": "Not Found",
    "message": "Unknown app kibana"
}

I can't find many references to these error messages.

Per Running Kibana on Docker | Kibana User Guide [5.6] | Elastic

X-Pack is pre-installed in this image. With X-Pack installed, Kibana expects to connect to an Elasticsearch cluster that is also running X-Pack.

But I'd hoped I could disable it. In any case, I'm not sure if this is pertinent to the first log error message.

Am I doing something wrong? Should I expect Kibana actually run on Docker out of the box without Xpack?

Per this Github issue, other people are having problems using the official Docker image.

I was able to get the deprecated Docker Hub Docker image working:
https://hub.docker.com/r/library/kibana/

The Github issue you linked to has a workaround, which is to create your own custom image: https://github.com/elastic/kibana-docker/issues/27#issuecomment-296524205

Essentially, the image is composed starting with the official image, but then un-installing the X-Pack plugin from Kibana.

If you're still having issues, I would recommend taking the discussion to that Github issue - it looks like that's the go-to issue.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.