llm-twin-course icon indicating copy to clipboard operation
llm-twin-course copied to clipboard

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

Open thi3nnq opened this issue 1 year ago • 1 comments

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?

thi3nnq avatar May 05 '24 23:05 thi3nnq

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

alexandruvesa avatar May 08 '24 07:05 alexandruvesa