Did anyone experience the same or has a soluation, what I am doing wrong? I am pretty new to elastic and propably it is easy to solve, but I am kind of at a loss here. I am unable to connect to http://localhost:9200 in the browser IE on OS Windows. It says: Can´t reach this page. The server has restricted/no internet access, does this might do a problem in this case?
cmd is giving me following while trying to connect in the browser via http://localhost:9200 :
[2022-03-02T21:01:32,788][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [SERVERADDRESSNAME] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:51875}
If I try in with curl this command shown in the install documentation:
curl --cacert C:\ElasticStack\elasticsearch-8.0.1\config\certs\http_ca.crt -u elastic https://localhost:9200
As Answer I am getting:
curl: (60) schannel: CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
However if I am using curl with -k infront of the statement:
curl -k --cacert C:\ElasticStack\elasticsearch-8.0.1\config\certs\http_ca.crt -u elastic https://localhost:9200
I am getting in response the normal output, http://localhost:9200 in browser is still not working:
{
"name" : "SERVERADRESSNAME",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Ef3aQ3E3Q7-W6WbJaJVeXA",
"version" : {
"number" : "8.0.1",
"build_flavor" : "default",
"build_type" : "zip",
"build_hash" : "801d9ccc7c2ee0f2cb121bbe22ab5af77a902372",
"build_date" : "2022-02-24T13:55:40.601285296Z",
"build_snapshot" : false,
"lucene_version" : "9.0.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
Side note: In Elasticsearch.yml I had in the beginning network.host: 192.168.0.1, I changed it to 127.0.0.1
Thank you in advance.