Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: docker compose up --wait command failed! #27

Open
DanBuxton opened this issue Dec 9, 2024 · 7 comments
Open

Error: docker compose up --wait command failed! #27

DanBuxton opened this issue Dec 9, 2024 · 7 comments

Comments

@DanBuxton
Copy link

Sorry if this has been asked before. I'm using Ubuntu 22.04 with 2 cores and 10GB ram.

I get this:

root@CT102:~# sudo curl -fsSL https://elastic.co/start-local | sudo sh

  ______ _           _   _      
 |  ____| |         | | (_)     
 | |__  | | __ _ ___| |_ _  ___ 
 |  __| | |/ _` / __| __| |/ __|
 | |____| | (_| \__ \ |_| | (__ 
 |______|_|\__,_|___/\__|_|\___|
-------------------------------------------------
🚀 Run Elasticsearch and Kibana for local testing
-------------------------------------------------

ℹ️  Do not use this script in a production environment

⌛️ Setting up Elasticsearch and Kibana v8.16.0...

- 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 5/6
 ✔ Network elastic-start-local_default             Created                                                                                                                                                   0.1s 
 ✔ Volume "elastic-start-local_dev-elasticsearch"  Created                                                                                                                                                   0.0s 
 ✔ Volume "elastic-start-local_dev-kibana"         Created                                                                                                                                                   0.0s 
 ⠴ Container es-local-dev                          Starting                                                                                                                                                  0.5s 
 ✔ Container kibana_settings                       Created                                                                                                                                                   0.0s 
 ✔ Container kibana-local-dev                      Created                                                                                                                                                   0.0s 
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting rlimits for ready process: error setting rlimit type 8: operation not permitted: unknown
Error: docker compose up --wait command failed!
An error log has been generated in error-start-local.log file.
If you need assistance, open an issue at https://github.com/elastic/start-local/issues

error-start-local.log has:-

Error: docker compose up --wait command failed!
Docker engine: Docker version 27.3.1, build ce12230
Docker compose: 2.29.7
Distribution: Ubuntu Version: 22.04 (Jammy Jellyfish)
-- Logs of service es-local-dev:
-- Logs of service kibana-local-dev:
-- Logs of service kibana_settings:

Running free -h gives:-

               total        used        free      shared  buff/cache   available
Mem:            10Gi       310Mi       6.9Gi       0.0Ki       2.8Gi       9.7Gi
Swap:          512Mi          0B       512Mi

Am I missing something?

@ezimuel
Copy link
Collaborator

ezimuel commented Dec 10, 2024

@DanBuxton thanks for reporting this. The issue seems to be related with the ulimits usage in docker-compose.yml generated by start-local. I found this issue of another project that seems to be related. I need to investigating more since we don't have other evidences.

@ezimuel
Copy link
Collaborator

ezimuel commented Dec 10, 2024

@DanBuxton I just noticed that you are running start-local as root using sudo. You should remove sudo in the command, just:

curl -fsSL https://elastic.co/start-local | sh

Let me know if you can try, thanks!

@DanBuxton
Copy link
Author

@DanBuxton I just noticed that you are running start-local as root using sudo. You should remove sudo in the command, just:

curl -fsSL https://elastic.co/start-local | sh

Let me know if you can try, thanks!

running without sudo makes no difference.

@DATACREW-ROHITH-VIGNESH

check group named docker is created using command "groups"
if not try creating the group named docker using command "newgrp docker"
This worked for me. Hope this helps make your day better!

@DanBuxton
Copy link
Author

@DATACREW-ROHITH-VIGNESH Thanks for the advice, unfortunately no luck

@ezimuel
Copy link
Collaborator

ezimuel commented Jan 20, 2025

@DanBuxton I just released a new version of start-local with many fixes, see here. Can you try to run it using the usual command:

curl -fsSL https://elastic.co/start-local | sh

Thanks!

@DanBuxton
Copy link
Author

@DanBuxton I just released a new version of start-local with many fixes, see here. Can you try to run it using the usual command:

curl -fsSL https://elastic.co/start-local | sh
Thanks!

No luck I'm afraid. Still get the original error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants