I am trying to set app search on my linux server. All the prerequisites are done and I am at the last step to start it.
It gives the below 2 errors
Failed to connect to Elasticsearch backend.Make sure it is running and healthy.
-PKIX path building failed :sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
The request goes like this when trying to start it, if that can help in answering:
2021-03-24T14:51:05.943+00:00][6313][2002][es][DEBUG]: [pre-flight] {
"request": {
"url": "https://.domain.com:9200",
"method": "get",
"headers": {
"Authorization": "[FILTERED]",
"Content-Type": "application/json",
"User-Agent": "Faraday v0.17.3"
},
"params": null,
"body": null
}
We don't recommend using unofficial installation docs.
The article that you linked has instructions for installing Enterprise Search 7.5.0 (which at that time was what is currently called Workplace Search). It could be that instructions in that article somehow broke your setup.
I wonder if it's the problem with Enterprise Search or Elasticsearch.
Are there any errors in Elasticsearch logs?
What do you see when you access the Elasticsearch endpoint? For local setup it's http://localhost:9200 (you might need to access a different endpoint depending on where Elasticsearch is being run).
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
This SunCertPathBuilderException indicates that a certificate was returned during the handshake that is not trusted. This message is seen on the client side of the connection. The SSLException is seen on the server side of the connection. The CA certificate that signed the returned certificate was not found in the keystore or truststore and needs to be added to trust this certificate.
I don't understand the error, but I think there's a problem with Elasticsearch configuration that prevents Enterprise Search from connecting to it.
Has your Elasticsearch instance been used for anything other than Enterprise Search (in other words, is it not a fresh download)? If yes, does the problem appear if you point Enterprise Search to a fresh Elasticsearch instance?
Could you send the contents of your config/elasticsearch.yml file?
This is a fresh server. We setup the elasticsearch and kibana first. Now we are trying to install app search.
No other dependencies.
Below is the elasticsearch.yml file. For masking purpose I have replaced the actual value by "example" for some values. But otherwise it is as in the server.
This config has many options that are not listed in the Enterprise Search docs.
Looks like Elasticsearch security is not configured correctly and that prevents Enterprise Search from connecting to it.
I'm afraid I won't be able to help with the Elasticsearch configuration. I recommend asking for help on the Elasticsearch forum: Elasticsearch - Discuss the Elastic Stack
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.