This repository was archived by the owner on Apr 12, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2022. It is now read-only.
Stuck at setup_logstash ca.cert #101
Copy link
Copy link
Open
Description
It get stuck every time here, any ideas on how to fix or debug this?
Client: Docker Engine - Community
Version: 19.03.2
docker-compose version 1.24.1, build 4667896b
docker-py version: 3.7.3
CPython version: 3.6.8
OpenSSL version: OpenSSL 1.1.0j 20 Nov 2018
$ docker-compose -f setup.yml up --remove-orphans
Removing orphan container "setup_logstash"
Removing orphan container "setup_kibana"
Starting stack-docker_setup_1 ... done
Attaching to stack-docker_setup_1
setup_1 | Found orphan containers (stack-docker_setup_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Recreating setup_elasticsearch ... done
Attaching to setup_elasticsearch
setup_1 | setup_elasticsearch | Determining if x-pack is installed...
setup_1 | setup_elasticsearch | === CREATE Keystore ===
setup_1 | setup_elasticsearch | Elastic password is: Uh68Mb/HP5Nk+7FJE4ov9w==
setup_1 | setup_elasticsearch | Created elasticsearch keystore in /usr/share/elasticsearch/config
setup_1 | setup_elasticsearch | Setting bootstrap.password...
setup_1 | setup_elasticsearch | === CREATE SSL CERTS ===
setup_1 | setup_elasticsearch | Remove old ca zip...
setup_1 | setup_elasticsearch | Creating docker-cluster-ca.zip...
setup_1 | setup_elasticsearch | CA directory exists, removing...
setup_1 | setup_elasticsearch | Unzip ca files...
setup_1 | setup_elasticsearch | Archive: /config/ssl/docker-cluster-ca.zip
setup_1 | setup_elasticsearch | creating: /config/ssl/ca/
setup_1 | setup_elasticsearch | inflating: /config/ssl/ca/ca.crt
setup_1 | setup_elasticsearch | inflating: /config/ssl/ca/ca.key
setup_1 | setup_elasticsearch | Remove old docker-cluster.zip zip...
setup_1 | setup_elasticsearch | Create cluster certs zipfile...
setup_1 | setup_elasticsearch | Unzipping cluster certs zipfile...
setup_1 | setup_elasticsearch | Archive: /config/ssl/docker-cluster.zip
setup_1 | setup_elasticsearch | creating: /config/ssl/docker-cluster/elasticsearch/
setup_1 | setup_elasticsearch | inflating: /config/ssl/docker-cluster/elasticsearch/elasticsearch.crt
setup_1 | setup_elasticsearch | inflating: /config/ssl/docker-cluster/elasticsearch/elasticsearch.key
setup_1 | setup_elasticsearch | creating: /config/ssl/docker-cluster/kibana/
setup_1 | setup_elasticsearch | inflating: /config/ssl/docker-cluster/kibana/kibana.crt
setup_1 | setup_elasticsearch | inflating: /config/ssl/docker-cluster/kibana/kibana.key
setup_1 | setup_elasticsearch | creating: /config/ssl/docker-cluster/logstash/
setup_1 | setup_elasticsearch | inflating: /config/ssl/docker-cluster/logstash/logstash.crt
setup_1 | setup_elasticsearch | inflating: /config/ssl/docker-cluster/logstash/logstash.key
setup_1 | setup_elasticsearch | Move logstash certs to logstash config dir...
setup_1 | setup_elasticsearch | Move kibana certs to kibana config dir...
setup_1 | setup_elasticsearch | Move elasticsearch certs to elasticsearch config dir...
setup_1 | setup_elasticsearch exited with code 0
setup_1 | Found orphan containers (stack-docker_setup_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Starting elasticsearch ... done
Creating setup_logstash ... done
Creating setup_kibana ... done
Attaching to setup_kibana, setup_logstash
setup_1 | setup_kibana | -rw-rw-r-- 1 root root 1200 Sep 24 05:45 /usr/share/kibana/config/ca/ca.crt
setup_1 | setup_logstash | -rw-rw-r-- 1 root root 1200 Sep 24 05:45 /usr/share/logstash/config/ca/ca.crt
Metadata
Metadata
Assignees
Labels
No labels
Activity
AdityaChaudhary commentedon Sep 24, 2019
I faced the same issue. It was due to the shortage of memory.
Run
sysctl -w vm.max_map_count=262144and then try runningdocker-compose -f setup.yml upaxi92 commentedon Sep 26, 2019
I have still 23GB of RAM free, so I don't think thats the Problem?
I have increased the max_map_count like you and still the same problem that it get stuck:
And everytime it finds orphan containers? But I have no containers left...
AdityaChaudhary commentedon Sep 26, 2019
I solved my issue by debugging using custom logs throughout the scripts of this repo. Maybe you can give it a try, if not already done.
axi92 commentedon Oct 1, 2019
Thanks for this, I am stuck here: https://github.com/elastic/stack-docker/blob/master/scripts/setup-logstash.sh#L17
And this is my docker ps
I cant find any elastic container?... But in the log it shows "Starting elasticsearch ... done"
Mariyo commentedon Jan 2, 2020
Same for me, I got stucked here:
docker-compose -p elastic-stack -f setup.yml up --remove-orphansNo elasticsearch container found:
sangwoo-joh commentedon Feb 17, 2020
I'm stuck here too.
I've just check-outed the old stable branch..