I ran this command as per the docs to verify elasticsearch is running curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200 and got this output
There was no output pasted, just the command itself, but if the sudo apt install elasticsearch failed and you didn't address that, then it's not working.
Can I suggest you go back to step one, and cut and paste every single command and its output. I also note your prompt starts with "(venv)" suggesting you setup some kind of python virtual environment. Thats typically fine, should not impact installing elasticsearch/kibana, but if you are inexperienced linux user it's possible your environment is a little messed up.
Try this too:
$ apt list --installed | grep elasticsearch or $ apt list elasticsearch
Output will contain something like this if Elasticsearch is properly installed:
(venv) corey-james@corey-james-HP-Laptop-14-dq0xxx:~/Arborhub/MyProject$ apt list --installed | grep elasticsearch
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
elasticsearch/stable,now 8.17.4 amd64 [installed]
I can also paste from the terminal, from the beginning of the elasticsearch installation command if you'd like
something very weird about that output ... you pasted both the command and my output into your terminal. Anyways, it was what I said, the file /etc/elasticsearch/certs/http_ca.crt is only readable by the elasticsearch user and those in the elasticsearch group, which probably does not include the (local) linux user corey-james
put a sudo before your curl command and it should work.
I can’t really make that suggestion any simpler.
Do you understand why you got the previous error:
?
It's because you, meaning user= corey-jame, do not have permissions to read the file. So you need run the curl commands with sudo. Or just use the other option, with -k, which doesn’t need sudo and doesn’t need the —cacert option.
These are very basic Linux/shell topics, not really anything directly to do with elasticsearch. Sorry, but you are likely going to need to get much more familiar with Linux/shell topics to get too much further.
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.