Security autoconfiguration information

I have just installed the newest version of Elasticsearch using the official guide but did not come across 'Security autoconfiguration information' screen. Now when I try to start Elasticsearch using the following command:

curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200

It asks for password for 'elastic' user which I do not have.

It's printed on the screen when you install. Which guide did you follow? Could you please share the link?

I followed this guide.

Nothing appeared on the screen while installing.

This is the command of installation and its output:

$ sudo apt-get install elasticsearch
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  elasticsearch
0 upgraded, 1 newly installed, 0 to remove and 50 not upgraded.
Need to get 0 B/606 MB of archives.
After this operation, 1246 MB of additional disk space will be used.
Selecting previously unselected package elasticsearch.
(Reading database ... 110009 files and directories currently installed.)
Preparing to unpack .../elasticsearch_8.9.0_amd64.deb ...
Unpacking elasticsearch (8.9.0) ...
Setting up elasticsearch (8.9.0) ...
Scanning processes...                                                                                                                                                                         
Scanning linux images...                                                                                                                                                                      

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

And before this, following commands were entered:

1  sudo apt update && sudo apt-get install openjdk-8-jdk
2  wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
3  sudo apt-get install apt-transport-https
4  echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
5  sudo apt-get update

@dadoonet Any thoughts on it?

I just did it on 8.9.0 recently here: Can't start elastic elasticsearch-8.9.0 - #10 by choilee

And the message was printed... So I don't know exactly what happened. What is your OS?

But why did you do this:

sudo apt update && sudo apt-get install openjdk-8-jdk

?

@usman1

You can simply rest the password

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.