Closed andrewnisbet74 closed 7 years ago
Hi, problems with certificates are notoriously hard to debug, unfortunately. My first line of debugging this issue would be to isolate the problem from your Rails app and any custom code, and use just the raw client with an explicit configuration via a Hash.
Your YAML configuration looks correct, that is how to provide a path to the certificate to the Ruby client, but it would be better to run all that in isolation, and also without the translation from YAML (for example, the client expects keys as Symbols, and I'm not sure how the translations handles them).
Thanks for getting back to me. We are going to create a simple reference implementation using the raw client, once that is working we will reintroduce the Elastic-Model gem, and then the data from the config file. Hopefully this will allow us to better isolate the issue.
Hi @andrewnisbet74, I'm just curious if the problem has been resolved or persists?
Hi @karmi This issue has been resolved, we are using some newer versions of the gems, and it is working properly now. Sorry for not closing this sooner, I will close it now.
Hi, I am trying to get a ruby client working with an Elasticsearch cluster that has shield enabled. Communication with the cluster worked just fine before Shield was set up, but I am having difficulties getting things working now.
The ES client object is instantiated like this
es_config is built from a yml file that looks like this:
When I try to send a query request I see the fallowing in the ES log
On the rails side the client sits and spins until the OOM-Killer nukes it. I have discussed this with Elastic support, and they suggested I create a github issue. I am not really sure how to proceed here, so any guidance that can be provided is much appreciated.
Particulars on our set up
ElasticSearch Server: 2.1.2 Pem file: it was built from a jks cert we used as part of the shield configuration. it was converted to a p12 file then a pem file using openssl.
Ruby: 2.0.0p353 (upgrading will be a challenge at this point) Gems: Rails: 4.2.4 Elasticsearch client: 1.0.15 Elasticsearch-api 1.0.15 Elasticsearch-model: 0.1.8 Elasticsearch-rails: 0.1.8 Elasticsearch-transport: 1.0.15
OS: Ubuntu 14.0.4