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 when running "make local-test-cdc" in module-2 #15

Open
thi3nnq opened this issue May 5, 2024 · 1 comment
Open

Getting error when running "make local-test-cdc" in module-2 #15

thi3nnq opened this issue May 5, 2024 · 1 comment

Comments

@thi3nnq
Copy link

thi3nnq commented May 5, 2024

Screenshot 2024-05-06 at 06 38 59 I'm using mac M1 (macOS Sonoma), I run "make local-start". After that, when I run "make local-test-cdc" I got: " An error occurred: mongo1:30001: [Errno 8] nodename nor servname provided, or not known (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),mongo3:30003: [Errno 8] nodename nor servname provided, or not known (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),mongo2:30002: [Errno 8] nodename nor servname provided, or not known (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: , , ]>".

Can anyone help me fix this error?

@alexandruvesa
Copy link
Contributor

Hello @thi3nnq !
You must do this

Host Configuration

To ensure that your Docker containers can communicate with each other you need to update your /etc/hosts file. Add the following entries to map the hostnames to your local machine:

Docker MongoDB Hosts Configuration

127.0.0.1 mongo1
127.0.0.1 mongo2
127.0.0.1 mongo3

we will update today the README and include these settings

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

2 participants