Open ewoks opened 5 years ago
any news?
Does it depend of version?
Hey guys. I have tried changing the tag in the environment to match 7.2.0 however I am getting the same error as ewoks.
The error seems to cascade from this line: https://github.com/elastic/stack-docker/blob/2fb363377ae6abd56ccc250524eca26eaa74c841/scripts/setup-elasticsearch.sh#L41
Basically the newer images seems to be missing unzip
and thus the certs are never unpacked and this cascades to the error you're seeing.
To get it to work just do something like this:
diff --git a/scripts/setup-elasticsearch.sh b/scripts/setup-elasticsearch.sh
index a88222a..0648ea0 100755
--- a/scripts/setup-elasticsearch.sh
+++ b/scripts/setup-elasticsearch.sh
@@ -37,6 +37,10 @@ if [[ -n "$ELASTIC_PASSWORD" ]]; then
echo "CA directory exists, removing..."
rm -rf /config/ssl/ca
fi
+ echo "Install unzip if needed..."
+ if ! command -v unzip &>/dev/null; then
+ yum -qy install unzip
+ fi
echo "Unzip ca files..."
unzip /config/ssl/docker-cluster-ca.zip -d /config/ssl
In order to get 7.2.0 to work for me I had to make the change @sikevux shows above, and these:
cluster.initial_master_nodes
and we also need the value set in it to exactly match the node.name
:Add to docker-compose.yml (line 23)
environment:
- cluster.initial_master_nodes=elasticsearch
Add to elasticsearch.yml (line 4)
node.name: elasticsearch
elasticsearch.hosts
instead of elasticsearch.url
:Change kibana.yml (line 5): old
elasticsearch.url: https://elasticsearch:9200
new
elasticsearch.hosts: ["https://elasticsearch:9200"]
Change setup-elasticsearch.sh (line 10): old
if [[ -d /usr/share/elasticsearch/bin/x-pack ]]; then
new
if [[ -f /usr/share/elasticsearch/bin/x-pack-env ]]; then
I should note that I was only interested in getting elasticsearch and kibana up and running at this point so I removed all of the other services this brings up and didn’t work through any issues you may encounter with them. After making the above changes though I was able to successfully login to the kibana from a browser.
I still get the same error after trying the above changes mentioned by kinzleb and sikevux. It does try to create the keystore and crt files but fails. Did anyone else find a way to get this working?
I tried to update this for 7.3.2 and I get the crt errors too. I tried all of the fixes listed here and it just causes more issues. Is anyone maintaining this? I would love to be able to run this for a POC.
i still get the same error when i install elasticsearch:7.4.1 docker image. it's seem that this current version can not support 7.X . if you want continue use 7.X ,you can delete all about sercurty configure in docker-compose.yaml and other config file. then restart elasticsearch service. i test it's worked.
I need to deploy the more or less compelte ELK stack on one machine, just for testing purposes so this docker-compose.yml here seemed to incldue about everything needed for testing but its for an older 6.x version.
Does anyone have a docker-compose.yml for the 7.x versio navailable for testing purposes?
I need to deploy the more or less compelte ELK stack on one machine, just for testing purposes so this docker-compose.yml here seemed to incldue about everything needed for testing but its for an older 6.x version.
Does anyone have a docker-compose.yml for the 7.x versio navailable for testing purposes?
I have one but need to push it to a github repo. Will add later the link
I ran through the changes in this post, I still can't get it to work @LouisLetcher any chance you have pushed that docker-compose.yml anywhere?
Missing support for Elasticsearch 7.x which is the newest version. Simple update of versions in .ENV file to 7.0.1 renders following error:
ERROR: for elasticsearch Cannot create container for service elasticsearch: invalid mount config for type "bind": bind source path does not exist: /Users/<CurrentUser>/temp/es-docker-full/stack-docker/config/ssl/ca/ca.crt