The issue is, when I try to configure Elasticsearch I keep getting this error multiple times, and it goes on indifenetely.
[2023-03-23T12:20:53,039][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [DESKTOP-V23ASFJ] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:59248}
Any ideas as to what might cause it or how I could fix it? Thank you!
I would expect to see that message when something like curl or a web browser tries to issue a request to Elasticsearch. Are you checking an Elasticsearch endpoint? If so, are you using a web browser or are you using curl? If so, the first thing I would check is whether I've used http:// instead of https:// in the URL.
Is anything else interacting with Elasticsearch yet?
I did trye to check elasticsearch through the browser by going to http://localhost:9200 - when the elasticsearch exe is not running, I get the error 'Unable to connect'.
When running the elasticsearch exe the error changes to "The connection was reset". I was also running a jupyter notebook at the time calling on elasticsearch, but it is closed now.
from the documentation, I get the error: action.auto_create_index: .monitoring*,.watches,.triggered_watches,.watcher-history*,.ml* 'action.auto_create_index:' is not recognized as an internal or external command, operable program or batch file.
Update: so I have tried running the elasticsearch exe without any browser or anything else open and it seemed to be working fine, but it then stopped updating on the cmd so I tried checking it by going to https://localhost:9200/
The first thing is to use https://localhost:9200 to connect from the browser, which ought to prompt you for a username and password rather than reporting "the connection was reset." "https" uses a secure, encrypted connection between your browser and the Elasticsearch server that you are running, whereas "http" does not use any encryption, which is why the warning had to do with "plain text."
action.auto_create_index: .monitoring*,.watches,.triggered_watches,.watcher-history*,.ml* is meant to be a line in the configuration file rather than a command, but you likely don't need to put it in your config.
As of now, the cmd has stoped at [INFO ][o.e.i.g.DatabaseNodeService] [DESKTOP-V23ASFJ] successfully loaded geoip database file [GeoLite2-City.mmdb] and there were no more updates
I've tried logging on the https://localhost:9200 to connect to it through the browser, but unsure what username and password I should provide - I have tried the combination of 'elastic' (username) and 'changeme' (password), but the authentification was terminated.
Unfortunately I have shut down the terminal, and the password doesn't seem to show in the elasticsearch_server logs - is there any other way I could recuperate it?
The first one can auto-generate passwords, while the second one lets you pick your password. It may not work if you have already tried the reset-password script from the previous comment.
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.