-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
Hello dear developer. When I use this script to run es docker containers, the health check of es-local-dev keeps failing.
05:14:20 allen@desktop-allen Desktop → curl -fsSL https://elastic.co/start-local | sh
______ _ _ _
| ____| | | | (_)
| |__ | | __ _ ___| |_ _ ___
| __| | |/ _` / __| __| |/ __|
| |____| | (_| \__ \ |_| | (__
|______|_|\__,_|___/\__|_|\___|
-------------------------------------------------
🚀 Run Elasticsearch and Kibana for local testing
-------------------------------------------------
ℹ️ Do not use this script in a production environment
⌛️ Setting up Elasticsearch and Kibana v9.1.5...
- Generated random passwords
- Created the elastic-start-local folder containing the files:
- .env, with settings
- docker-compose.yml, for Docker services
- start/stop/uninstall commands
- Running docker compose up --wait
[+] Running 6/6
✔ Network elastic-start-local_default Created 0.1s
✔ Volume elastic-start-local_dev-kibana Created 0.0s
✔ Volume elastic-start-local_dev-elasticsearch Created 0.0s
✘ Container es-local-dev Error 584.9s
✔ Container kibana-local-settings Created 0.0s
✔ Container kibana-local-dev Created 0.0s
dependency failed to start: container es-local-dev is unhealthy
Error: docker compose up --wait command failed!
sh: line 190: VERSION: unbound variable
But when I execute the health check command manually, it returns 200, which means the service started successfully.
05:27:36 allen@desktop-allen elastic-start-local → curl --silent --head --fail -u elastic:${ES_LOCAL_PASSWORD} http://localhost:9200
HTTP/1.1 200 OK
Content-Length: 540
Connection: keep-alive
Content-Type: application/json
Keep-Alive: timeout=4
Proxy-Connection: keep-alive
X-Elastic-Product: Elasticsearch
Can you help to figure this out?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.