Unable to setup kibana

Hello Team,

I am using ansible playbook to run all three Elasticsearch, Kibana and logstash containers in one go.

After running the ansible playbook I can see all three containers are up and running.

Following is the ansible playbook.

- hosts: localhost

  tasks:

  - name: Create network
    docker_network:
      name: elk_network

  - name: Run elastic container
    docker_container:
      name: 'elastic'
      recreate: true
      restart_policy: unless-stopped
      image: 'elasticsearch:7.13.2'
      env:
        discovery.type=single-node
        xpack.security.enabled=false
      published_ports:
        - "0.0.0.0:9200:9200"
      networks:
        - name: "elk_network"

  - name: Run kibana container
    docker_container:
      name: 'kibana'
      recreate: true
      restart_policy: unless-stopped
      image: 'kibana:7.13.2'
      published_ports:
        - "0.0.0.0:5601:5601"
      networks:
        - name: "elk_network"

  - name: Run logstash container
    docker_container:
      name: 'logstash'
      recreate: true
      restart_policy: unless-stopped
      image: 'logstash:7.13.2'
      published_ports:
        - "0.0.0.0:5044:5044"
      volumes:
        - "./conf.d/:/usr/share/logstash/pipeline/conf.d/:ro"
      networks:
        - name: "elk_network"

When I am trying setup a kibana from another server, I am getting following error message.

Kindly suggest on this.

Regard,
Sabil.
Overwriting ILM policy is disabled. Set setup.ilm.overwrite: true for enabling.

Index setup finished.
Loading dashboards (Kibana must be running and reachable)
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails: parsing kibana response: invalid character 'K' looking for beginning of value. Response: Kibana server is not ready yet.

We need more logs from Kibana to suggest anything, can you enable verbose logging (logging.verbose: true) and share the log output? For now it seems that Kibana just cannot connect to Elasticsearch. Are you able to cURL Elasticsearch from Kibana container?

Best,
Oleg

@azasypkin Yes, I am able to curl http://elasticsearch:9200 from Kibana container.

here is the error message I can see in kinbana logs.

{"type":"log","@timestamp":"2021-10-18T11:10:00+00:00","tags":["error","savedobjects-service"],"pid":952,"message":"Unable to retrieve version information from Elasticsearch nodes."}

Thank you.

Sorry, but that's not enough, we need full verbose logs from the moment when Kibana starts. Can you try to capture them and share?

Same issue.
Detailed log :

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