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

Getting error code 7 while deploying Elasticsearch docker #9

Closed
pradipsddd opened this issue Mar 21, 2024 · 5 comments
Closed

Getting error code 7 while deploying Elasticsearch docker #9

pradipsddd opened this issue Mar 21, 2024 · 5 comments

Comments

@pradipsddd
Copy link

Hi,
we are tried to deploy OSPFWatcher on below mention OS and docker version and getting error at time of Elasticsearch

OS-AlmaLinux release 8.9 (Midnight Oncilla)
Docker-Docker version 26.0.0, build 2ae903e

root@ospfwatcher docker-elk]# docker-compose up setup
[+] Running 2/0
⠿ Container docker-elk-elasticsearch-1 Created 0.0s
⠿ Container docker-elk-setup-1 Created 0.0s
Attaching to docker-elk-setup-1
docker-elk-setup-1 | [+] Waiting for availability of Elasticsearch. This can take several minutes.
docker-elk-setup-1 | ⠍ Failed to connect to host. Is Elasticsearch healthy?
docker-elk-setup-1 exited with code 7

could you please help to solve this any work around?

@Vadims06
Copy link
Owner

Hi @pradipsddd,
thank you for your request. I think the issue is in docker command. To start docker-compose it's needed to run docker-compose up -d

docker-elk % docker-compose up -d
WARN[0000] mount of type `volume` should not define `bind` option 
[+] Running 0/0
[+] Running 4/5er-elk_elk                Created                                                                                                                                                                 0.1s 
 ⠹ Network docker-elk_elk                Created                                                                                                                                                                 1.2s 
 ✔ Container docker-elk-elasticsearch-1  Started                                                                                                                                                                 0.6s 
 ✔ Container docker-elk-setup-1          Started                                                                                                                                                                 1.1s 
 ✔ Container docker-elk-logstash-1       Started                                                                                                                                                                 1.1s 
 ✔ Container docker-elk-kibana-1         Started

@maheshzagade
Copy link

I have solved this by adding the following line in elasticsearch.yml

xpack.ml.enabled: false

@maheshzagade
Copy link

On which platform this software is tested I mean Linux distribution and OS version, Docker version?
because we getting too many errors

@Vadims06
Copy link
Owner

I have solved this by adding the following line in elasticsearch.yml

xpack.ml.enabled: false

Thank you for sharing. I should include it in README as well. Did you still run docker-compose up setup to boot up ELK stack consisting of three services?.. when I tried to run it, only elasticsearch container started.

@Vadims06
Copy link
Owner

Vadims06 commented Mar 22, 2024

On which platform this software is tested I mean Linux distribution and OS version, Docker version? because we getting too many errors

I used Ubuntu 20.04 Linux for my setup.
Feel free to share your experience to setup it. We can update README appropriately and make it better.

What errors (and what services with) did you also face with errors?
P.S.
ELK stack is optional. Initially ospf watcher can work without it and ospf event can be still visible on Topolograph dashboard.

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