-
Notifications
You must be signed in to change notification settings - Fork 288
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
MongoCompass not connecting #5
Comments
use this instead |
@keithics How can we convert to docker-compose? @felipegenef Can you resolve it? I'm facing the same problem. |
@felipegenef, have you tried to add |
Hi, I am facing similar issue. I have setup the mongo replicaset on a windows 11 machine. rs-init.sh
I feel the setup for the mongodb replicaset is correct but there is some issue with windows not able to resolve the connection uri. I tried the below uri from nodejs code as well as composs, but results in getaddrinfo ENOTFOUND test-db2: However, if i pass the directConnection parameter as true it works. But, i wish to pass multiple db instances instead of one. Please advice on the same. I would appreciate the help. Thanks. |
Hello guys! I'm sorry for the late reply; there might have been an update. |
Hi, I face the same problem with docker compose I've added I get error in Compass : connect ECONNREFUSED 127.0.0.1:27017 It works only when I add direct connection : |
I'm getting this error
|
Here is the solution which I found working
rs-init.sh
In your host (local computer) /etc/hosts add this
|
You can also follow this https://dev.to/woovi/best-dx-for-mongodb-replica-set-43lc |
Hey, I'm trying to test an RS locally and connect to it with mongo compass but I'm having a hard time trying to do so. Everything looks fine until i try to make the connection.
Connection URL
docker-compose.yml
rs-init.sh
rs-init.sh
When i "docker exec -it mongo1 mongo" and "rs.status()"
The text was updated successfully, but these errors were encountered: