Enterprise Search not working

I have Elastic Search 8.6.2 working and can log into kibana web UI 8.6.2 but I can't get Enterprise Search 8.6.2 to work. Seeing this in the app-server.log it make mention of localhost:5601 which I coming from kibana but the word localhost is not in any of the YML config files. Every thing is installed on the same server and I have replaced localhost with the IP address of the server.

[2023-04-24T22:39:49.489+00:00][95252][4004][app-server][INFO]: [pre-flight] Elasticsearch will be used for authentication
[2023-04-24T22:39:49.495+00:00][95252][4004][app-server][INFO]: Elasticsearch looks healthy and configured correctly to run Enterprise Search
[2023-04-24T22:39:49.496+00:00][95252][4004][app-server][INFO]: Performing pre-flight checks for Kibana running on http://localhost:5601...
[2023-04-24T22:39:49.806+00:00][95252][4004][es][DEBUG]: {
  "request": {
    "url": "http://localhost:5601/api/status",
    "method": "get",
    "headers": {
      "Authorization": "[FILTERED]",
      "Content-Type": "application/json",
      "User-Agent": "Faraday v1.10.2"
    },
    "params": null,
    "body": null
  },
  "exception": "/usr/share/enterprise-search/lib/war/lib/middleware/request_logging_middleware.class:55: Connect to localhost:5601 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) (Faraday::ConnectionFailed)\n",
  "duration": 302.5,
  "stack": [
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/kibana_checks.class:79:in `check_kibana_connection_with_retries!'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/kibana_checks.class:34:in `check_kibana_connection!'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/kibana_checks.class:18:in `block in run!'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/kibana_checks.class:17:in `run!'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/kibana_checks.class:13:in `run!'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo.class:313:in `configure_kibana!'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo.class:271:in `configure!'",
    "/usr/share/enterprise-search/lib/war/config/application.class:20:in `<main>'",
    "/usr/share/enterprise-search/lib/war/config/application.rb:1:in `<main>'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli/command.class:36:in `initialize'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli/command.class:10:in `new'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli/command.class:10:in `run_and_exit'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli.class:148:in `run_supported_command'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli.class:130:in `run_command'",
    "/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli.class:112:in `run!'",
    "bin/enterprise-search-internal:15:in `<main>'"
  ]
}
[2023-04-24T22:39:49.807+00:00][95252][4004][app-server][WARN]: [pre-flight] Failed to connect to Kibana backend. Make sure it is running and healthy.
[2023-04-24T22:39:49.811+00:00][95252][4004][app-server][DEBUG]: [pre-flight] Kibana connection error: /usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/kibana_checks.class:128: Connect to localhost:5601 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) (Faraday::ConnectionFailed)

will you post your cleaned yamls?

Thank you for the quick response
Elastic.yml

# Elastic-search config
cluster.name: elasticsearch
node.name: node
node.attr.rack: r1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
#
network.host: 12.345.67.890
http.port: 9200
#
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
#
xpack.security.http.ssl:
  enabled: true
  keystore.path: /etc/elasticsearch/certs/http.p12

#
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: /etc/elasticsearch/certs/transport.p12
  truststore.path: /etc/elasticsearch/certs/transport.p12
#
cluster.initial_master_nodes: ["server-name"]
#
http.host: 0.0.0.0

Kibana.yml

#
server.port: 5601
#
server.host: "12.345.67.890"
#
#
server.publicBaseUrl: "http://12.345.67.890:5601"
#
elasticsearch.hosts: ["https://12.345.67.890::9200"]
#
elasticsearch.username: "kibana_system"
elasticsearch.password: "xxxxxxxxxxxxxx"
#
elasticsearch.ssl.certificateAuthorities: [ "/etc/kibana/certs/http_ca.crt" ]
#
#
logging:
  appenders:
    file:
      type: file
      fileName: /var/log/kibana/kibana.log
      layout:
        type: json
  root:
    appenders:
      - default
      - file
#
pid.file: /run/kibana/kibana.pid

Enterprise-search.yml

#
secret_management.encryption_keys: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
#
allow_es_settings_modification: true
#
elasticsearch.host: https://server.name.com:9200
elasticsearch.username: elastic
elasticsearch.password: xxxxxxxxxxxxxxxxxxxx
#
elasticsearch.ssl.enabled: true
elasticsearch.ssl.certificate: "/usr/share/enterprise-search/config/certs/elastic.crt"
elasticsearch.ssl.certificate_authority: "/usr/share/enterprise-search/config/certs/ca.crt"
elasticsearch.ssl.key: "/usr/share/enterprise-search/config/certs/elastic.key"
elasticsearch.ssl.key_passphrase: 'xxxxxxxx'
elasticsearch.ssl.verify: false
#
ent_search.ssl.enabled: true
ent_search.ssl.keystore.path: /usr/share/enterprise-search/config/server.name.com.jks
ent_search.ssl.keystore.password: xxxxxxx
ent_search.ssl.keystore.key_password: xxxxxxx
ent_search.external_url: https://server.name.com:3002
#
ent_search.listen_host: 0.0.0.0
#
app_search.engine.total_facet_values_returned.limit: 10000
#
log_directory: /var/log/enterprise-search
#
log_level: debug
#
log_format: default
#
filebeat_log_directory: log
#
enable_stdout_app_logging: true

Hello, Neil

Looking over some of my configs as a comparison, as I have a single-node deploy as well, would you be able to try these settings in the enterprise-search.yml

Change

elasticsearch.host: https://server.name.com:9200

to

elasticsearch.host: https://127.0.0.1:9200

Add these

kibana.host: https://localhost:5601
kibana.external_url: https://server.nam.com:5601

Try bouncing enterprise-search and see if that comes back ok?

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