When running
docker-compose -f setup.yml up
to initially setup the stack, one container will fail, usually setup_apm_server, with the following error:
setup_1 | setup_apm_server | Exiting: fail to create the Kibana loader: Error creating Kibana client: Error creating Kibana client: fail to get the Kibana version: HTTP GET request to /api/status fails: <nil>.
Response: {"statusCode":409,"error":"Conflict","message":"[doc][config:6.6.0]: version conflict, document already exists (current version [1]): [version_conflict_engine_exception] [doc][config:6.6.0]: version conflict, document already exists (current version ... (truncated).
Executing the standard docker-compose up -d to start the stack results in the stack being down, unable to login to Kibana at http://localhost:5601.
If the ELASTIC_PASSWORD env var is (re)set and setup is rerun for that service, e.g.:
docker-compose -f docker-compose.yml -f docker-compose.setup.yml up setup_apm_server
as per the setup.sh file, the container will complete, compose can be executed, and the stack can be pulled up.
This is running with no tags, the standard 6.6.0 currently used if the repo is cloned.
Running on:
ProductName: Mac OS X
ProductVersion: 10.14.1
BuildVersion: 18B75
Docker version 18.09.2, build 6247962