-
Notifications
You must be signed in to change notification settings - Fork 640
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
docker: TheHive fails to connect to elasticsearch (NoNodeAvailableException) #854
Comments
You need to fix this error first as it bombs elastic out: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] Run sysctl -w vm.max.map_count=262144 or update sysctl.conf with the setting for persistence. |
@tonygumbrell You are right in saying that this warning has to be addressed but it is not what brings elasticsearch down in this case. As mentioned, once elasticsearch is configured with
|
Request Type
Bug
Work Environment
Problem Description
Using the provided
docker-compose.yml
file, I don't manage to bring TheHive up.Checking the logs, I see many different errors. In the
thehive
container, I get this error when trying to access TheHive:Then looking at the
elasticsearch
container logs, I can see that the process died:Steps to Reproduce
$ wget https://raw.githubusercontent.com/TheHive-Project/TheHive/master/docker/thehive/docker-compose.yml
$ docker-compose up
docker-compose logs -f thehive
,docker-compose logs -f elasticsearch
,docker-compose logs -f cortex
)Possible Solutions
I got it working by adding this to the
environment
section of thedocker-compose.yml
file for elasticsearch:- discovery.type=single-node
.The text was updated successfully, but these errors were encountered: