Elastic search is running no problem
curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic:password https://127.0.0.1:9200
Response looks good.
But when starting Enterprise Search get error see below. Elastic search and Enterprise Search are on the same stand alone system. While these are warnings and infos it is evedent that enterprise search is making a request to Elasticsearch which is throwing an exeception. The request gets "Failed to connect to Elasticsearch backend"
==========================================================================
enterprise-search.yml
==========================================================================
## ================= Elastic Enterprise Search Configuration ==================
#
secret_management.encryption_keys: [3A16224D695239597DFC19268304E0B58CCA9210C7B65B5DA1C21B10F8CAE9E0]
# ---------------------------------- TLS/SSL ----------------------------------
# Configure TLS/SSL encryption.
#
ent_search.listen_host: 0.0.0.0
ent_search.ssl.enabled: true
ent_search.ssl.keystore.path: "/usr/share/enterprise-search/config/rofccs901a.mayo.edu.jks"
ent_search.ssl.keystore.password: 'Meyers92'
ent_search.ssl.keystore.key_password: 'Meyers92'
# ------------------------------- Hosting & Network ---------------------------
#
ent_search.external_url: https://rofccs901a.mayo.edu:3002
#
# ------------------------------- Elasticsearch -------------------------------
#
#ent_search.auth.default.source: standard
elasticsearch.host: https://127.0.0.1:9200
elasticsearch.username: elastic
elasticsearch.password: 1234567
#
# ---------------------------------- Logging ----------------------------------
#
log_directory: /app/log/enterprise-search
#
log_level:debug
#
log_format: default
====================================================================
ERROR in enterprise log
====================================================================
[2023-03-23T20:20:22.579+00:00][55850][4004][app-server][WARN]: [pre-flight] Failed to connect to Elasticsearch backend. Make sure it is running and healthy.
[2023-03-23T20:20:22.580+00:00][55850][4004][app-server][INFO]: [pre-flight] Error: /usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:179: 127.0.0.1:9200 failed to respond (Faraday::ClientError)
[2023-03-23T20:20:27.594+00:00][55850][4004][es][DEBUG]: {
"request": {
"url": "http://127.0.0.1:9200/",
"method": "get",
"headers": {
"Authorization": "[FILTERED]",
"Content-Type": "application/json",
"x-elastic-product-origin": "enterprise-search",
"User-Agent": "Faraday v1.10.2"
},
"params": null,
"body": null
},
"exception": "/usr/share/enterprise-search/lib/war/lib/middleware/request_logging_middleware.class:55: 127.0.0.1:9200 failed to respond (Faraday::ClientError)\n",
"duration": 6.5,
"stack": [
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch.class:651:in `block in get_raw'",
"/usr/share/enterprise-search/lib/war/lib/apm_helpers.class:41:in `es_action_instrument'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch.class:749:in `instrument'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch.class:650:in `get_raw'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:134:in `check_es_connection_with_retries!'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:32:in `check_es_connection!'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:19:in `block in run!'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:18:in `run!'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:14:in `run!'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo.class:291:in `configure_elasticsearch!'",
"/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo.class:270: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-03-23T20:20:27.596+00:00][55850][4004][app-server][WARN]: [pre-flight] Failed to connect to Elasticsearch backend. Make sure it is running and healthy.