./elasticsearch-setup-passwords interactive
curl -u elastic 'https://localhost:9200/_xpack/security/_authenticate?pretty'
// here authentication as elastic works
systemctl restart elasticsearch
// after service restart, authentication as elastic doesn't work anymore (and the same for other users, including kibana_system for example)
curl -u elastic 'https://localhost:9200/_xpack/security/_authenticate?pretty'
Please create a new index and verify that it was correctly created. Then restart the service/container (you probably want to test both top verify you will not lose data) and verify it is still there.
thanks. but now my one node cluster is broken. actually I was following one article to restore my cluster snapshot and I deleted all indices, that's maybe why now all this happens. so I need first to restore the working state of the cluster...
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.