I’m trying to enable elasticsearch. I’ve installed it on the same system running suitecrm using the rpm, and it is successfully running. I’m able to connect to it using the default test method of:
curl --cacert /etc/elasticsearch/certs/http_ca.crt -u admin https://localhost:9200
and even have it working without certs by changing xpack.security.http.ssl: to enabled: false, so I can now successfully test without the self signed certificate:
curl -u admin http://localhost:9200
Yet when I tell SuiteCRM to use elasticsearch, it says “Connection failed” “No alive nodes found in your cluster” when I test it. I’m cutting/pasting the exact same values in SuiteCRM that I use on the commandline (Host, Username, Password) to ensure no typos, but it still doesn’t connect.
How do I start troubleshooting this?
To further troubleshoot, I setup an elasticsearch container exactly following the directions. I can do a test connection to it from the command line of the server SuiteCRM is running on, but get the exact same “No alive nodes” error when trying to enable it in SuiteCRM:
Here is the output of the test from the commandline of the server SuiteCRM is running on connecting to the elasticsearch container running on another host:
curl -X GET http://10.20.30.132:9200
{
“name” : “uU_-bgp”,
“cluster_name” : “docker-cluster”,
“cluster_uuid” : “sKEKh6lxT2KY-uuWXMVz3A”,
“version” : {
“number” : “5.6.10”,
“build_hash” : “b727a60”,
“build_date” : “2018-06-06T15:48:34.860Z”,
“build_snapshot” : false,
“lucene_version” : “6.6.1”
},
“tagline” : “You Know, for Search”
}
There is NO username or password set and I copy/paste the same URL: http://10.20.30.132:9200