Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

dotCms is not able to connect to elasticsearch #31

Open
MagedMYoussef opened this issue May 25, 2020 · 6 comments
Open

dotCms is not able to connect to elasticsearch #31

MagedMYoussef opened this issue May 25, 2020 · 6 comments

Comments

@MagedMYoussef
Copy link

I'm facing the following issue while trying to run dotCms docker-compose

The problem seems to be the connection between dotCms and elasticsearch container but I'm not able to find exactly the root cause. Can you please check the below log file and tell me if there's something that needs to be done/changed?

docker-compose.yml: "02-single-node-demo"
log.txt

Thanks!

@katzefudder
Copy link

Just stumbled upon the issue you mentioned @MagedMYoussef
I assume you're using Docker on Win or Mac. If so, make sure to allocate plenty of memory to your running Docker Desktop (6GB is plenty for the https://github.com/dotCMS/docker/tree/master/examples/01-single-node-clean)
Hope that helps

@wt-bryan
Copy link

@katzefudder If you enable WSL2 support, Docker for Windows doesn’t allow you to allow you to allocate a specific amount of max or min memory from the GUI. I was able to get around this issue via the workaround explained here until DotCMS 5.3.5. I’m now seeing the same issue again.

@wt-bryan
Copy link

I switched to DotCMS 5.3.6.1 just now and everything worked fine again.

@tvolkov
Copy link

tvolkov commented Sep 15, 2020

I had similar issue on my Mac when trying to run 01-single-node-clean configuration, i.e. elasticsearch would just crash with
dotcms_elasticsearch_1 exited with code 137 message
Increasing docker desktop memory to 6Gb solved the problem

@TKousadianos
Copy link

hey sorry for the noob question, how do you set the memory to 6Gb?

@wt-bryan
Copy link

In Windows or MacOS? If Windows, if you are non-WSL2, you can right-click on the little whale icon, click on 'Settings', and then I believe it is under 'Resources'. If you are using the WSL2-based engine, I posted a link above, but the TL;DR is that you can set it via command line:
wsl -d docker-desktop sysctl -w vm.max_map_count=262084
Note that 262,084 is the minimum

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

No branches or pull requests

5 participants